Jump to content

Ho do I copy selected text


ToyleY
 Share

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
Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...