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
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