It works half the time; I think the problem is the BlockInput function. I don't want to be able to move my mouse during the script execution, as that seems to mess up the script.
Any help is appreciated.
Code: Select all
+\::
{
BlockInput, On
SetKeyDelay, 0, -1
send {f1}
SetDefaultMouseSpeed, 0,
SetMouseDelay, 0, -1
CoordMode Mouse, relative
Mouseclick, left, 635, 445
SetKeyDelay, 0, -1
send {f5}
SetDefaultMouseSpeed, 0
SetMouseDelay, 0, -1
CoordMode Mouse, relative
Mouseclick, left, 635, 445
SetMouseDelay, 0, -1
SetDefaultMouseSpeed, 0
SetMouseDelay, 0, -1
CoordMode Mouse, relative
Mouseclick, left, 635, 445
SetDefaultMouseSpeed, 0
SetMouseDelay, 0, -1
CoordMode Mouse, relative
Mouseclick, left, 635, 445
SetKeyDelay, 0, -1
send {f1}
SetDefaultMouseSpeed, 0
SetMouseDelay, 0, -1
CoordMode Mouse, relative
Mouseclick, left, 590, 445
sleep 1, -1
click
BlockInput, off
}
return