Advertisement
EzFlow997

Sea_Permission_8666 Script

Dec 19th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Autohotkey 0.80 KB | Source Code | 0 0
  1. #SingleInstance Force
  2. SetKeyDelay, -1
  3. SetMouseDelay, -1
  4. SetBatchLines, -1
  5. SetTitleMatchMode, 2
  6. SendMode Input
  7.  
  8. CoordMode, ToolTip, Relative
  9. CoordMode, Pixel, Relative
  10. CoordMode, Mouse, Relative
  11.  
  12. WinActivate, 1te
  13.     if WinActive("1te"){
  14.         WinMaximize, 1te
  15.     }
  16.     else{
  17.         msgbox, game not open
  18.         exitapp
  19.     }
  20. return
  21.  
  22. $p::
  23.     cycles := 0
  24.     Loop{
  25.         PixelSearch, GPx, GPy, 560, 980, 1360, 1000, 0x01AD38, 0, Fast
  26.         if(ErrorLevel == 0){
  27.             cycles2 := 0
  28.             Loop, {
  29.                 PixelSearch, GPx2, GPy2, GPx, GPy, GPx, GPy, 0x01AD37, 0, Fast
  30.                 if(ErrorLevel == 0){
  31.                     Click
  32.                     break
  33.                 }
  34.                 if(cycles2 > 500){
  35.                     break
  36.                 }
  37.                 cycles += 1
  38.             }
  39.         }
  40.         if(cycles > 500){ // create some kind of condition to time the loop out in case of failure
  41.             break
  42.         }
  43.         cycles += 1
  44.     }
  45. return
  46.  
  47. $m:: exitapp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement