AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

IfWin(Not)Exist/Active using tray icon instead of name

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Davin
Guest





PostPosted: Thu Jul 15, 2004 12:58 am    Post subject: IfWin(Not)Exist/Active using tray icon instead of name Reply with quote

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





PostPosted: Thu Jul 15, 2004 12:59 am    Post subject: Reply with quote

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

PostPosted: Thu Jul 15, 2004 1:29 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group