Shoutbox

get chat window cursor position - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: get chat window cursor position (/showthread.php?tid=72995)

get chat window cursor position by deAd on 03-25-2007 at 02:24 AM

Is it possible to get the cursor position in the chat window input box, like Plus! does to create the Quick Icons window?


RE: get chat window cursor position by matty on 03-25-2007 at 02:36 AM

GetCaretPos()


RE: get chat window cursor position by deAd on 03-25-2007 at 02:37 AM

That works on the windowless control?


RE: get chat window cursor position by matty on 03-25-2007 at 02:39 AM

You will likely need to use ActiveAccessibility to get the handle of the Edit box. Then use GetCaretPos().


RE: get chat window cursor position by deAd on 03-25-2007 at 02:40 AM

The edit box has no handle, it's windowless...


RE: get chat window cursor position by matty on 03-25-2007 at 02:51 AM

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.