DS4Windows icon indicating copy to clipboard operation
DS4Windows copied to clipboard

[Question] Possible to cycle through keys or stop a macro?

Open Rast1234 opened this issue 3 years ago • 3 comments

Hello! I'm trying to create binds for Worms Armageddon. In this game, to change grenade fuse timer, player has to press a number key (1 2 3 4 5) to select seconds before it goes off.

Is there a way to bind a button or two to loop through required keys? Eg. repeatedly pressing [UP] outputs 1, 2, 3, 4, 5 sequentially and loops, pressing [DOWN] outputs 5, 4, 3, 2, 1.

I tried macros and found out there's no way to stop a running one. I'd be happy to have a macro which is cycling through 12345 while i hold a key and stops when i release the key but it's not going to happen at all as i see in another issue, right?

Something like that can be beneficial for old shooters or RPGs where you have different items on numeric (or other) keys and want to loop through, but game doesn't have scroll keybinds for that. For example, SystemShock uses all number keys, most of F keys and some other features are bound to random keys which are OK to be cycled together because they all switch what's on display.

Right now the only solution i see is to use shift modifier and bind separate keys as usual.

Rast1234 avatar Jan 25 '23 23:01 Rast1234

I do not know of a way to try to configure a profile like that in DS4Windows. Using a shift modifier might be the only reasonable way to have access to that many number keys although it is not easy to set up. Also, it is very limiting. I played System Shock 2 when using antimicro and I think I had to configure multiple Action Sets in order to have access to enough keys to make a good profile; it worked out pretty well.

On a related note, I actually implemented a test version of cycle binding in my test mapper. Rather than being bound per button, a cycle binding would be a profile wide binding that button bindings would then manipulate and move to another step. There is no access to create such a binding in the GUI currently so a user would have to edit the JSON profile manually.

Ryochan7 avatar Jan 27 '23 19:01 Ryochan7

Probably this is too niche thing anyway, i've seen people doing this with AutoHotKey scripts for similar tasks. Having a cycling input will require some sort of state, to remember which value is next... and this is maybe too much for a button mapping solution

Rast1234 avatar Jan 31 '23 19:01 Rast1234

Not niche at all, I currently am trying to set up ds4 windows on The Finals and wanted to incorporate a rb lb cycle. Something like Rb presses 2 if Rb pressed again presses 3 if Rb pressed again 4 and if Lb then 3 again. It would be nice to be able to script stuff like this for binds

jerome102 avatar Mar 08 '23 01:03 jerome102