Jump to content
Sign in to follow this  
ToyleY

Ho do I copy selected text

Recommended Posts

When you select some text (left mouse click and drag a blue box over text) how do I identify what has been selected?

I have seen this ConsoleWrite($oIE.document.selection.createRange.text & @CR)

but is there a general purpose one for any selected text (not just in IE)?

Ta

ToyleY :)

Edited by ToyleY

Share this post


Link to post
Share on other sites

I think I found something that might work from kalayaan - posted in June 2004

$OldClip = ClipGet() ; the original contents of the clipboard

Send("^c") ; copy the current highlighted text to clipboard

--> do stuff then restore original contents

Nice and simple - :)

Edited by ToyleY

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...