Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- DetectHiddenWindows, on
- ; Set this to whatever the current gunz2 title is. It will probably change as the game gets updated.
- Gunz2Title := "Gunz the Second Duel 1.0.0.49066"
- ;Gunz the Second Duel 1.0.0.49066
- ; If we found the gunz2 window maximize it and make it active
- IfWinExist %Gunz2Title%
- {
- WinActivate
- }
- ; Didn't find the window
- Else
- {
- Msgbox, Didn't find Gunz2 window. Make sure title is correct!
- Sleep, 4000
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement