need help with my code Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
anas

need help with my code  Topic is solved

15 Jul 2018, 15:41

hello, i need a little help with my code

Code: Select all

CapsLock::
loop
{
      while GetKeyState("LShift","P"){
	 Pause 
			}
	
      send, {b DOWN}
      sleep, 50
      send, {b UP}
  
}
return



Basically i want an infinite loop to keep "b" pressed, but when i HOLD (not press) LShift the loop will PAUSE (not break).


So "b" is repeating in the loop -> hold LShift -> the loop pause -> Unhold LShift -> the loop work again


any ideas ? thanks
Qysh
Posts: 143
Joined: 24 Apr 2018, 09:16

Re: need help with my code

17 Jul 2018, 07:00

Code: Select all

CapsLock::
loop
{
      while GetKeyState("LShift","P"){
	 Sleep, 50
			}
	
      send, {b DOWN}
      sleep, 50
      send, {b UP}
  
}
return

Return to “Ask For Help”

Who is online

Users browsing this forum: 8dx6, Google [Bot], helloguys, jkeks, Jovannb, keyking12, Odlanir, WuffTheCoder and 254 guests