"brucexs" <[EMAIL PROTECTED]> writes:
> You need win.mainhandlefrompoint to ensure you get the note window,
> not the embedded edit control. handfrompoint can return a child
> window.
Ah, I didn't try that. Thanks.
>> Any suggestions? Also, I'd need to get the *line* clicked on,
>
> You can work from where the text caret is. Use note plugin to get
> the character position of the caret then the line of that character
> position.
Sounds good.
The following script looks like it works fine for me:
nh=win.mainhandlefrompoint(xmouse,ymouse)
str=note.getline(nh,note.getcaretline(nh))
messagebox("OK", str, "Note line")
Thanks for the help.
Paul.
--
Progress isn't made by early risers. It's made by lazy men trying to
find easier ways to do something. -- Robert Heinlein
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/2pRQfA/bOaOAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/