Code: Select all
^XButton2::
While GetKeyState("^XButton2","p")
{
send {g down}
sleep 100
send {g up}
}
return
------------
the "^" sign suppose to be CTRL but nothing happens when I hold down the CTRL plus the mousebutton. it's very frustrating
![🙂](http://cdn.jsdelivr.net/emojione/assets/3.1/png/64/1f642.png)
Code: Select all
^XButton2::
While GetKeyState("^XButton2","p")
{
send {g down}
sleep 100
send {g up}
}
return
Code: Select all
#SingleInstance Force
^XButton2::
SetTimer, SendG, 100
KeyWait, XButton2
SetTimer, SendG, Off
return
SendG:
Send, g
Return
Code: Select all
SetKeyDelay, 1, 100
Code: Select all
^XButton1::
MsgBox, It works!
Return
Code: Select all
^XButton1::
While GetKeyState("XButton1", "P" ) AND GetKeyState("Ctrl", "P" )
{
Send g
Sleep 100
}
Return
Interesting, I did the same at first, but it didn't work at all, now it does most of the time.RussF wrote: ↑10 Mar 2022, 14:51Try:RussCode: Select all
^XButton1:: While GetKeyState("XButton1", "P" ) AND GetKeyState("Ctrl", "P" ) { Send g Sleep 100 } Return
Users browsing this forum: peter_ahk and 358 guests