If it works ok but the syntax is not correct .
#ifwinexist is for hotkeys
Quote:
Creates context-sensitive hotkeys and hotstrings. Such hotkeys perform a different action (or none at all) depending on the type of window that is active or exists.
ifwinexist
Quote:
Checks if the specified window exists.
You could use SetTitleMatchmode 2 so you do not need the exact title to match .
I would have used a loop with winwait instead of settimer but that is my view .....if your code works so no need to change ...
