Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Similar function GetKeyState AHK
#1
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


Forum Jump:


Users browsing this thread: 1 Guest(s)