I want to create a command that presses and releases the P key when I press & hold the CapsLock key. I want it to do the same when I release the CapsLock Key. The command is triggered by pressing the CapsLock Key, either the real one or a virtual one activated by vjoy. This is what I have:
The P Key is pressed & released
Start Loop while Capslock is Pressed
End Loop
The P Key is pressed & released
Capslock keypress is set to be passed through to the program I need the macro for.
This script works great, then it just stops working after a while. CapsLock is still passed through, but the voiceattack macro is not triggered even when the real Capslock key is pressed. It doesn't even show up in the list of executed commands unless I restart the profile. All my other VA macros work fine.
Any ideas what might be the issue?