Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- betterWinActivate(win) {
- Loop 2
- {
- WinRestore, %win%
- WinWaitActive, %win%, , 2
- if (!ErrorLevel)
- return 1
- WinActivate, %win%
- WinWaitActive, %win%, , 2
- if (!ErrorLevel)
- return 1
- }
- return 0
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement