need help with my code Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
anas

need help with my code

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  Topic is solved

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 (v1)”

Who is online

Users browsing this forum: Bing [Bot], Descolada and 106 guests