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 

Windows live messenger ( msn) - window names

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
menaphus



Joined: 28 Nov 2008
Posts: 111
Location: United Kingdom

PostPosted: Wed Mar 18, 2009 9:51 pm    Post subject: Windows live messenger ( msn) - window names Reply with quote

I am desinging a simple program that replaces abbreviations with the full words when typed, all abbreviations and expanded results are user defined.
What I seek help with is this-
Windows live messenger chat windows have different names ( named after the contact you are chatting with)
How would I go about using winactive to see if there is a chat box open when all of the chat boxes are named differently?
_________________
Adam
http://moourl.com/8w0tx
Back to top
View user's profile Send private message Send e-mail Visit poster's website
menaphus



Joined: 28 Nov 2008
Posts: 111
Location: United Kingdom

PostPosted: Thu Mar 19, 2009 3:28 pm    Post subject: Reply with quote

Some help please someone?
_________________
Adam
http://moourl.com/8w0tx
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Wicked - Guest
Guest





PostPosted: Thu Mar 19, 2009 8:29 pm    Post subject: Reply with quote

Should be very simple. You can find which process a window belongs to. If the PID of the window is the same as the PID of MsnMsgr.Exe, it's an messenger window.

Get what I mean?
Back to top
Wicked - Guest
Guest





PostPosted: Thu Mar 19, 2009 8:41 pm    Post subject: Reply with quote

This script will check and tell you if the current active window (when you press ^+s) belongs to MsnMsgr.Exe

Code:
^+s::
WinGetTitle, Current_Window, A
WinGet, Window_PID, PID, %Current_Window%
Process, Exist, MsnMsgr.Exe
Process_ID := ErrorLevel
If (Window_PID == Process_ID)
   MsgBox, This window belongs to MsnMsgr.Exe
Else
   MsgBox, This window does not belong to MsnMsgr.Exe
Return
Back to top
menaphus



Joined: 28 Nov 2008
Posts: 111
Location: United Kingdom

PostPosted: Fri Mar 20, 2009 5:29 pm    Post subject: Reply with quote

Wicked - Guest wrote:
This script will check and tell you if the current active window (when you press ^+s) belongs to MsnMsgr.Exe

Code:
^+s::
WinGetTitle, Current_Window, A
WinGet, Window_PID, PID, %Current_Window%
Process, Exist, MsnMsgr.Exe
Process_ID := ErrorLevel
If (Window_PID == Process_ID)
   MsgBox, This window belongs to MsnMsgr.Exe
Else
   MsgBox, This window does not belong to MsnMsgr.Exe
Return


Many thanks Very Happy
_________________
Adam
http://moourl.com/8w0tx
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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