Jump to content
Macro Express Forums

Move pointer to selected text on web page


Recommended Posts

Is there a way to move the mouse pointer to the selected text on a web page? (text selected with Ctrl-F).


Moving to the cursor position works great in Word, Excel, etc. but I can't get it to work on a web page, even when the pointer has been "cursorized" using the Caret Browsing mode of IE8.


Any ideas? TIA.

Link to comment
Share on other sites

  • 4 weeks later...

Yes, it can be done, but it requires clever/flaky coding. The technique I use is to search every pixel along a line, or within an area, for the colour of the selected text.

I also do same, just looking for a more solid approach. My application involves selected text at the same general region on the page, so a line scan works for me.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...