Jump to content
Sign in to follow this  
NeoFoX

Put selected text into Clipboard.

Recommended Posts

Well, it's been some time since I last started a Topic here :)

I had an idea for a new program, but before trying to begin with it I wanted to figure out how and if it's possible to put/get a selected text into the Clipput() function.

(This would like this: Clipput(Area.Selected))

You know, when you select something you hit the CTRL+C button and it's in at the clipboard. Well I was wondering if that was possible with AutoIT, because I want to use an other key combination then CTRL+C (and I thought that you can't 'copy' the CTRL+C combination witht AutoIT, just like the CTRL+ALT+DEL combination isn't catchable)...

If someone knows how-to or can say it isn't possible, thank you!

Greetz,

Neo


[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

Share this post


Link to post
Share on other sites

HotKeySet("{ESC}","terminate")
HotKeySet("!c","copy")

while 1
    sleep(121)
WEnd

Func copy()
    Send("^c")
    MsgBox(1,"test",ClipGet())
EndFunc

Func Terminate()
    Exit 0
EndFunc

Look at that, that isn't working the way I want you know :) it has to be every time different when you select something.

This just shows the thing you allready have coppied in your clipboard.

Greetz,

Neo


[center][font="Arial"]--- The Neo and Only --- [/font][font="Arial"]--Projects---[/font]Image to Text converterText to ASCII converter[/center]

Share this post


Link to post
Share on other sites

Please do not necro 4 year old threads.

If you open a new thread you will get more attention and help!


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-12-03 - Version 1.4.11.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2019-03-02 - Version 1.3.5.0) - Download - General Help & Support - Example Scripts - Wiki
Outlook Tools (2019-01-22 - Version 0.1.0.0) - Download - General Help & Support
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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