someone_

Buffbot

May 20th, 2015
271
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Sleep 5000
  2. Found := ""
  3.  
  4. WinGet,active,id,A
  5. Loop
  6. {
  7.     WinGet,tera,list,ahk_class LaunchUnrealUWindowsClient
  8.     Loop, %tera%
  9.     {
  10.         WinGetTitle,teratitle, % "ahk_id " tera%A_Index%
  11.         if (teratitle = "TERA") and (tera%A_Index% = active)
  12.         {
  13.             MsgBox Successfully found an active Tera window.
  14.             Found = Yes
  15.             break
  16.         }
  17.     }
  18.     if (Found = "Yes")
  19.     {
  20.         break
  21.     }
  22.     Sleep 5000
  23. }
  24.  
  25. F7::
  26. ControlSend,,{1}, % "ahk_id " active
  27. Sleep 1500
  28. ControlSend,,{2}, % "ahk_id " active
  29. Sleep 1500
  30. ControlSend,,{3}, % "ahk_id " active
  31. Sleep 1500
  32. ControlSend,,{4}, % "ahk_id " active
  33. Sleep 1500
  34. ControlSend,,{5}, % "ahk_id " active
  35. return
RAW Paste Data