#SingleInstance Force
~lbutton::
;adding the Tilde, will not affects the left mutton.
send !
~alt::
if pressesCount > 0
{
pressesCount += 1
return
}
pressesCount = 1
SetTimer, WaitKey, 518
return
WaitKey:
SetTimer, WaitKey, off
if pressesCount = 1
{
Gosub singleClick
}
else if pressesCount = 2
{
Gosub doubleClick
}
else if pressesCount >3
{
Gosub trebleClick
}
pressesCount = 0
return
;**************************************************************************
singleClick:
send !
return
;**************************************************************************
doubleClick:
reload
return
;**************************************************************************
trebleClick:
loop 3
{
sleep,100
click
}
msgbox,,,检测到三击,就要关闭窗口,1
send !{F4}
return
;**************************************************************************
广告可以用火绒屏蔽