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.
- #SingleInstance force
- trackerDziala := false
- Loop
- {
- IfWinExist, Hearthstone ahk_class UnityWndClass
- {
- if(!trackerDziala)
- {
- IfWinNotExist, Hearthstone Deck Tracker
- {
- trackerDziala := true
- Run, HearthstoneDeckTracker.exe, C:\Users\Krzysiek\AppData\Local\HearthstoneDeckTracker
- Sleep, 5000
- }
- }
- }
- IfWinNotExist, Hearthstone ahk_class UnityWndClass
- {
- if(trackerDziala)
- {
- IfWinExist, Hearthstone Deck Tracker
- {
- WinClose, Hearthstone Deck Tracker
- trackerDziala := false
- }
- }
- }
- Sleep 100
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement