That's how it looks like rn:
Code: Select all
$vk07:: ; Long press (> 0.5 sec) on * substitutes the dot multiply
KeyWait, vk07, T0.5 ; Wait no more than 0.5 sec for key release (also suppress auto-repeat)
If ErrorLevel { ; timeout, so long press
Send !{f4}
KeyWait, vk07
} Else ; otherwise...
Run "C:\Users\Artem\AppData\Local\Playnite\Playnite.FullscreenApp.exe"
Return
However, it only opens the exe right away, no matter if I shortpress or longpress. But, if I replace the vk07 with letter z, for example, it works as it should and the long press doesn't trigger the opening of an exe.
How can I make it work for the gamepad?