Meth0dz

Untitled

Oct 10th, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv
  2. SendMode Input
  3. SetWorkingDir %A_ScriptDir%
  4. #SingleInstance force
  5.  
  6. Needle := "Can't open clipboard for writing"
  7. while (1 = 1)
  8. {
  9.     IfWinExist, RGCAdminBotv2.9.1.exe
  10.     {
  11.         WinActivate, RGCAdminBotv2.9.1.exe
  12.         WinGetText, OutPutVar, RGCAdminBotv2.9.1.exe
  13.         if ( ! ErrorLevel )
  14.         {
  15.             ; MsgBox % OutPutVar . " " . InStr(OutPutVar,Needle)
  16.             if ( InStr(OutPutVar,Needle))
  17.             {
  18.                 ; MsgBox Found
  19.                 WinClose, RGCAdminBotv2.9.1.exe
  20.             }
  21.         }
  22.     }
  23.     IfWinNotExist, Ranked Gaming Client
  24.     {
  25.         WinWait, Ranked Gaming Client,,60
  26.         if ( ErrorLevel )
  27.         {
  28.             process, Close, rgc.exe
  29.             Sleep 2000
  30.             Send ^p
  31.         }
  32.     }
  33.     Sleep 10000
  34. }
Add Comment
Please, Sign In to add comment