Code: Select all
F6::
Macro1:
Loop
{
WinGet, WinList, List, ahk_class "[b]class[/b]"
Loop % WinList
{
Sleep, 1015
ControlSend, , {c Down},% "ahk_id " WinList%a_index%
Sleep, 94
ControlSend, , {c Up},% "ahk_id " WinList%a_index%
Sleep, 3187
Start := A_TickCount
Loop, 1000
{
ControlSend, , {Right Down},% "ahk_id " WinList%a_index%
Sleep, 150
ControlSend, , {Right Up},% "ahk_id " WinList%a_index%
Sleep, 110
If(A_TickCount - Start >= 12000)
Break
}
ControlSend, , {c Down},% "ahk_id " WinList%a_index%
Sleep, 110
ControlSend, , {c Up},% "ahk_id " WinList%a_index%
Sleep, 1969
ControlSend, , {PgDn Down},% "ahk_id " WinList%a_index%
Sleep, 78
ControlSend, , {PgDn Up},% "ahk_id " WinList%a_index%
Sleep, 1375
Start := A_TickCount
Loop
{
ControlSend, , {Left Down},% "ahk_id " WinList%a_index%
If(A_TickCount - Start >= 12000)
Break
}
ControlSend, , {Left Up},% "ahk_id " WinList%a_index%
Sleep, 500
}
}
Return