Code: Select all
Loop {
if (GetKeyState("XButton1"))
{
while getkeystate("XButton1")
{
count++
sleep 50
}
if count>5
Send, {MButton}
count=0
}
}
return
I'm new to this.
![Razz :P](./images/smilies/icon_razz.gif)
Code: Select all
Loop {
if (GetKeyState("XButton1"))
{
while getkeystate("XButton1")
{
count++
sleep 50
}
if count>5
Send, {MButton}
count=0
}
}
return
Code: Select all
delay := 200 ;200ms
return
xbutton1::
start := a_tickcount + delay
while (GetKeyState("xbutton1","P")) {
if (a_tickcount > start) {
Send, {MButton}
break
}
}
return
Code: Select all
delay := 200 ;200ms
return
xbutton1::
start := a_tickcount + delay
while (GetKeyState("xbutton1","P")) {
if (a_tickcount > start) {
start := 0 ;can re use this variable instead of making a new one
Send, {MButton}
break
}
}
if (start > 0) ;if we held long enough start would still be a large value
send {xbutton1}
return