Advertisement
ShimizuAise

Click-At-MS(Wuwa)

Jun 5th, 2024
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv
  2. #KeyHistory 0
  3. ListLines Off
  4. SetBatchLines, -1
  5. SetKeyDelay, 0
  6. ; RUN THIS AS  ADMIN OTHERWISE WUWA WILL NOT REGISTER THE CLICK
  7.  
  8. ; 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.
  9. global target_hh := 14
  10. global target_mm := 57
  11. global target_ss := 30
  12. global target_ms := 500
  13.  
  14.  
  15. ; Use the GET-Info.ahk script to get your coordinates for the click.
  16. global button_X_Position := 641
  17. global button_Y_Position := 1328
  18.  
  19. Loop {
  20.     sleep 10
  21.     if ((A_Hour >= target_hh) && (A_Min >= target_mm) && (A_Sec >= target_ss) && (A_MSec >= target_ms)) {
  22.         Click, %button_X_Position% %button_Y_Position%
  23.         sleep 120
  24.         ToolTip CLICKED
  25.         sleep 2100
  26.         ExitApp
  27.     }
  28.     else {
  29.         ToolTip %A_Hour%`n %A_Min%`n %A_Sec%`n %A_MSec%
  30.     }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement