| View previous topic :: View next topic |
| Author |
Message |
menaphus
Joined: 28 Nov 2008 Posts: 111 Location: United Kingdom
|
Posted: Wed Mar 18, 2009 9:51 pm Post subject: Windows live messenger ( msn) - window names |
|
|
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 |
|
 |
menaphus
Joined: 28 Nov 2008 Posts: 111 Location: United Kingdom
|
Posted: Thu Mar 19, 2009 3:28 pm Post subject: |
|
|
Some help please someone? _________________ Adam
http://moourl.com/8w0tx
 |
|
| Back to top |
|
 |
Wicked - Guest Guest
|
Posted: Thu Mar 19, 2009 8:29 pm Post subject: |
|
|
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
|
Posted: Thu Mar 19, 2009 8:41 pm Post subject: |
|
|
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
|
Posted: Fri Mar 20, 2009 5:29 pm Post subject: |
|
|
| 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  _________________ Adam
http://moourl.com/8w0tx
 |
|
| Back to top |
|
 |
|