--- In [email protected], Paul Moore <[EMAIL PROTECTED]> wrote: > > "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))
str=nh.getline(nh.getcaretline) is much more elegant, don't you think? ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/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/
