| View previous topic :: View next topic |
| Author |
Message |
Davin Guest
|
Posted: Thu Jul 15, 2004 12:58 am Post subject: IfWin(Not)Exist/Active using tray icon instead of name |
|
|
This one is a little obscure, but I think that in some cases it would help the script be *absolutely sure* that the intended window is the correct one. (prevents partial match foo, like reading a website about the game you're playing and having the web browser match instead!)
Basicly, you specify the filepath to to an *.ico file (you may have to extract it from the .exe). If the name, AND the icon matches, then the condition returns true. |
|
| Back to top |
|
 |
Davin Guest
|
Posted: Thu Jul 15, 2004 12:59 am Post subject: |
|
|
| Also the name "tray icon" might be a little misleading, I meant to say "task bar icon". |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10463
|
Posted: Thu Jul 15, 2004 1:29 am Post subject: |
|
|
| Instead, it's better to use WinGetClass or to activate the window using WinActivate ahk_class ClassName. That will ensure the right type of window is activated. |
|
| Back to top |
|
 |
|