PDA

View Full Version : How to find x and y of hilited text. (WXP-Home)



tommytx
05-07-2004, 09:44 PM
Does anyone know how to script the cursor to move to the same location as the hilighted

text.

For example, I need to script a Find command to search for text on the IE browser screen

and once it finds the text, it will automatically hilight the text. That is the easy

part. I need to script the cursor to double click on the text. The only way I can figure

to do that is to determine the x and y coordinates of the hilighted text, then it would

be a simple command to position the cursor to the x and y coordinates of the hilighted

text and then script a double click.

Bottom line, is there any way to determine the x and y coordinates of the highlighted

text. I can do all of the tasks easily with exception of figuring out the x and y of the text in

question.

Thanks

dineshcooper
05-08-2004, 04:54 AM
Hi

Just a thought.....

If you want to double click on the text, that means the text is a link or a mailto. So once you've found the text and hilighted it you could just let the script use that text to navigate to the link or open up outlook if its a mailto (assuming ofcourse that it is a link or mailto).

Cheers