Code: Select all
Loop
{
GetKeyState, KeyState, s
If (KeyState = "D")
{
Send, {ShiftDown}
}
else If (KeyState = "U")
{
Send {ShiftUp}
}
}
return
Code: Select all
Loop
{
GetKeyState, KeyState, s
If (KeyState = "D")
{
Send, {ShiftDown}
}
else If (KeyState = "U")
{
Send {ShiftUp}
}
}
return
Code: Select all
sleep, 60000*30
run, programname.exe
Code: Select all
!y::
WinGetTitle, Title, a ;a = active window
MsgBox The active window is "%Title%".