Jump to content
Sign in to follow this  
NeoFoX

Put selected text into Clipboard.

Recommended Posts

NeoFoX

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
monoceres

Easiest way I could think of:

HotKeySet("§","copy")

while 1
    sleep(121)
WEnd


Func copy()
    Send("^c")
EndFunc

:)


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites
NeoFoX

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
hiepxuan2008

I'm also in this case 

Share this post


Link to post
Share on other sites
water

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 (NEW 2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-01-27 - Version 1.3.3.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

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  

×