I've been trying to get this script to run in the background but with 0 luck.
Code: Select all
if !GetKeyState("Numlock","T") ; whether capslock is on or off
{
tooltip ; if off, don't show tooltip at all.
}
else
{ ; if on
CoordMode, ToolTip, Screen
tooltip My AHK is active, 0, 0
WinActivate, Program name
sleep 500
WinWaitActive, Program name
sleep 1000
MouseClick, left, 1675, 45
sleep 1000
MouseClick, left, 810 ,370
sleep 1500
MouseClick, left, 990 ,808
sleep 1500
MouseClick, right, 835 ,515
sleep 500
MouseClick, left, 825 ,620
sleep 1000
Send {Escape Down}
sleep 50
Send {Escape Up}
sleep 1500
MouseClick, left, 1600, 710
sleep 1000
Send {Space Down}
sleep 50
Send {Space Up}
sleep 52000
return
}
return