Searching the right keys
Posted: 19 May 2018, 20:48
I want to turn on my autohotkey on 3 and 4, and deactivate them on different keys (1,2,4,5,f,tab,Xbutton1)
Current script:
LButton::
lbutton_count++
If (lbutton_count = 1)
{
Send {4}
Sleep, 690
Send {LButton}
}
If (lbutton_count = 2)
{
Send {3}
Sleep, 690
Send {LButton}
}
If (lbutton_count = 2)
{
lbutton_count := 0
}
return
PgDn::Suspend
Current script:
LButton::
lbutton_count++
If (lbutton_count = 1)
{
Send {4}
Sleep, 690
Send {LButton}
}
If (lbutton_count = 2)
{
Send {3}
Sleep, 690
Send {LButton}
}
If (lbutton_count = 2)
{
lbutton_count := 0
}
return
PgDn::Suspend