Posts: 197
Threads: 60
Joined: Dec 2013
Hi,
My macro needs to:
1. ctrl-f to find some keyword in firefox
2. once the keyword is found, I need to get the xy coordinates of the found text
Thanks for reading.
Posts: 12,051
Threads: 140
Joined: Dec 2002
Get coordinates of selected text? This is probably possible in Internet Explorer, but not in Firefox. QM cannot access full Firefox DOM like Javascript in Firefox.
Posts: 197
Threads: 60
Joined: Dec 2013
When I press escape after finding the text, I can press the context menu (the button beside the windows button) and the context menu pops up where the text is, so could I find the caret's xy that way?
Posts: 12,051
Threads: 140
Joined: Dec 2002
Macro
Macro2217
int w=wait(10 WV win("" "MozillaDropShadowWindowClass")) ;;wait for a Firefox menu window
int x y
GetWinXY w x y
mou x y
Posts: 197
Threads: 60
Joined: Dec 2013
Thanks. I modified it slightly and it gave the up-left corner x y for the context menu, but it is unreliable because its position shifts when the cursor is at the bottom of the screen. i'm reading your other code for accessible objects - sounds very promising!