LButton is hotkey for loop but how to ignore Lbutton(that repeatedly press) when loop is running?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
raiderrevenge2287
Posts: 4
Joined: 11 Apr 2018, 04:02

LButton is hotkey for loop but how to ignore Lbutton(that repeatedly press) when loop is running?

14 Apr 2018, 17:14

hi i want help agian
before im asking i try google but cant find anything to help with my problem

so i want to use Lbutton(is hotkey) to trigger loop while hold xbutton1 (i got this part work well)
But how do i ignore lbutton that repeatedly press when loop is running?(please imagine that Lbutton = fire an ak47 fullauto but the key send down in loop do the same so ak47 stop fire anymore if not ignore lbutton)

here is my current code (i use the same template from my last topic)
please help me out

Code: Select all

#InstallMouseHook
#NoEnv
#MaxHotkeysPerInterval 99999999999999999999999
SendMode Input

_auto := true 
~LButton::autorandomfire1()  

autorandomfire1()
{
global _auto
if _auto  
{ 
Loop
{

if GetKeyState("XButton1", "P") 

{ 
; i just want to ignore whatever that press lbutton from now on untill loop is break
{Send {/ down}

if not GetKeyState("xButton1" , "P")
{Send {/ up}

}

}

}
else 
break
} } }

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Anput, Google [Bot], JoeWinograd, Nerafius and 88 guests