Advertisement
Guest User

Untitled

a guest
Mar 19th, 2014
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. ; #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
  5. DetectHiddenWindows, on
  6.  
  7. ; Set this to whatever the current gunz2 title is. It will probably change as the game gets updated.
  8. Gunz2Title := "Gunz the Second Duel 1.0.0.49066"
  9.  
  10. ;Gunz the Second Duel 1.0.0.49066
  11.  
  12.  
  13. ; If we found the gunz2 window maximize it and make it active
  14. IfWinExist %Gunz2Title%
  15. {
  16.     WinActivate
  17. }
  18.  
  19. ; Didn't find the window
  20. Else
  21. {
  22.     Msgbox, Didn't find Gunz2 window. Make sure title is correct!
  23.     Sleep, 4000    
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement