Combo Stops Working

Ask gaming related questions (AHK v1.1 and older)
3rne5t0
Posts: 48
Joined: 16 Jun 2018, 01:36

Combo Stops Working

18 Apr 2022, 03:36

Code: Select all

#IfWinActive ahk_exe League of Legends.exe
SetBatchLines, -1

~Space::
{
  send, '
  click, right
  sleep 10
  send, '
}
return
i have this little Script going on, my problem is when i hold down spacebar and press q or 1 then let go q or 1 the script stops working still unless i release spacebar and press again. I want to have this working as long as i press spacebar bud still able to press otherkeys meanwhile. thy for help
Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Combo Stops Working

18 Apr 2022, 03:41

Hallo,
try:

Code: Select all

#IfWinActive ahk_exe League of Legends.exe
SetBatchLines, -1

~Space::
While, GetKeyState("Space","P")
{
  send, '
  click, right
  sleep 10
  send, '
}
return
3rne5t0
Posts: 48
Joined: 16 Jun 2018, 01:36

Re: Combo Stops Working

18 Apr 2022, 03:50

Cool thy it works. Other question is there also a possibility to pause it while presseing q then relaunch after release?
Rohwedder
Posts: 7774
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Combo Stops Working

18 Apr 2022, 04:27

This?:

Code: Select all

#IfWinActive ahk_exe League of Legends.exe
SetBatchLines, -1
q::KeyWait, q
~Space::
While, GetKeyState("Space","P")
{
  send, '
  click, right
  sleep 10
  send, '
}
return
Depends on what is meant by "it" in "to pause it".
3rne5t0
Posts: 48
Joined: 16 Jun 2018, 01:36

Re: Combo Stops Working

21 Apr 2022, 03:26

thy btw

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 109 guests