Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv
- #KeyHistory 0
- ListLines Off
- SetBatchLines, -1
- SetKeyDelay, 0
- ; RUN THIS AS ADMIN OTHERWISE WUWA WILL NOT REGISTER THE CLICK
- ; This is based on your PC's internal time. Make sure it is sync'ed to global clock. You can confirm your current time through the Get-Info.ahk script.
- global target_hh := 14
- global target_mm := 57
- global target_ss := 30
- global target_ms := 500
- ; Use the GET-Info.ahk script to get your coordinates for the click.
- global button_X_Position := 641
- global button_Y_Position := 1328
- Loop {
- sleep 10
- if ((A_Hour >= target_hh) && (A_Min >= target_mm) && (A_Sec >= target_ss) && (A_MSec >= target_ms)) {
- Click, %button_X_Position% %button_Y_Position%
- sleep 120
- ToolTip CLICKED
- sleep 2100
- ExitApp
- }
- else {
- ToolTip %A_Hour%`n %A_Min%`n %A_Sec%`n %A_MSec%
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement