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
} } }