yellowpower Posted November 28, 2010 Share Posted November 28, 2010 After I perform the action of copying "^C" is it possible to save the content into a variable e.g. send("^C") $mycopy= those that are copied thanks Link to comment Share on other sites More sharing options...
JohnOne Posted November 28, 2010 Share Posted November 28, 2010 send("^c") $mycopy = ClipGet() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Bowmore Posted November 28, 2010 Share Posted November 28, 2010 Just one further tip, in addition to what JohnOne gave you. If you find that you are not reliably getting the correct information from the clipboard it may be necessary to add a small delay between copying the data and retrieving it from the clipboard. For example: send("^c") sleep(200) $mycopy = ClipGet() "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning."- Rick Cook Link to comment Share on other sites More sharing options...
JohnOne Posted November 28, 2010 Share Posted November 28, 2010 Yes, best to have some sort of check Func _Copy() ClipPut("") Send("^c") Sleep(10) $var = ClipGet() If Not ($var == "") Then Return $var EndIf Return False EndFunc AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now