Right now I am using this
Code: Select all
~q::
{
PixelSearch, Px, Py, 1795, 1044, 1795, 1044, 0x6A300B, 3, Fast
if (ErrorLevel=1)
{
Send, 7
Send, 3
}
PixelSearch, Px, Py, 133, 1040, 133, 1041, 0x130D54, 3, Fast
if (ErrorLevel=1)
{
Send, 2
Send, 6
}
}
Return
What I want to do is add the ability for this to trigger a press of the "8" key once every 9 seconds. I would be able to spam Q for the above code to trigger, but while spamming Q, once every 9 seconds a Q press will also be allowed to send the "8" key once, but for 9 seconds after it will not 8 when pressed.
[Mod edit: Moved topic to v1 help, based on posted code.]