03-13-2024, 10:51 AM
Hello,
I need to make a code that checks if a certain key is pressed and while it is pressed it does certain actions.
In AHK I use the following code and it works:
LShift::
While (GetKeyState("LShift", "P")) {
sendevent {F5}
Sleep 100
}
return
I would like to do this in QM, I tried using vk1=wait(0 K (VK_SHIFT)) but it only detects if it has been pressed and does not check if the key remains pressed.
Thanks
I need to make a code that checks if a certain key is pressed and while it is pressed it does certain actions.
In AHK I use the following code and it works:
LShift::
While (GetKeyState("LShift", "P")) {
sendevent {F5}
Sleep 100
}
return
I would like to do this in QM, I tried using vk1=wait(0 K (VK_SHIFT)) but it only detects if it has been pressed and does not check if the key remains pressed.
Thanks