What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » get chat window cursor position

get chat window cursor position
Author: Message:
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
O.P. get chat window cursor position
Is it possible to get the cursor position in the chat window input box, like Plus! does to create the Quick Icons window?
03-25-2007 02:24 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: get chat window cursor position
GetCaretPos()
03-25-2007 02:36 AM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
O.P. RE: get chat window cursor position
That works on the windowless control?
03-25-2007 02:37 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: get chat window cursor position
You will likely need to use ActiveAccessibility to get the handle of the Edit box. Then use GetCaretPos().
03-25-2007 02:39 AM
Profile E-Mail PM Find Quote Report
deAd
Scripting Contest Winner
*****

Avatar

Posts: 1060
Reputation: 28
– / Male / Flag
Joined: Jan 2006
O.P. RE: get chat window cursor position
The edit box has no handle, it's windowless...
03-25-2007 02:40 AM
Profile PM Find Quote Report
matty
Scripting Guru
*****


Posts: 8336
Reputation: 109
39 / Male / Flag
Joined: Dec 2002
Status: Away
RE: get chat window cursor position
quote:
Originally posted by deAd
The edit box has no handle, it's windowless...
ActiveAccessibility will be able to get one.

However I forgot that GetCaretPos() is an API and not a message that needs to be sent to a specific control.
03-25-2007 02:51 AM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On