| View previous topic :: View next topic |
| Author |
Message |
mrfanman
Joined: 28 Jun 2008 Posts: 2
|
Posted: Sat Jun 28, 2008 3:14 pm Post subject: clipboard copy problem |
|
|
hey People. I am am trying to make a program that can copy and paste multiple things. You bind something in your clipboard to a number 1-9 then paste it. eg:
| Code: | ^1::
clipboard =
send ^c
ClipWait
string1 := Clipboard
return
!1::
clipboard =
clipboard := string1
return |
Then you just paste it where you like it. It works like i want it with plain text in notepad. But now with files in explorer. I realized that once i change the clipboard the paste function in the r-click menu is gray. I am wondering if that is why i cant paste multiple thing and how can i fix it.
Tx a lot for your time. |
|
| Back to top |
|
 |
Dra_Gon
Joined: 25 May 2007 Posts: 313
|
Posted: Sat Jun 28, 2008 7:17 pm Post subject: |
|
|
You could make it so you're not using the actual clipboard at all.
When you do your copy put the contents into a variable {myClip1...2...etc} then you simple "paste" from those. AFAIK, the normal clipboard can't handle multiple clips without help from an outside program.
In a way, you can use the the clipboard in this:
Have a monitor for the clipboard so that it automatically dumps it's contents into one of your clip-variables where it will be stored until you have need of it. Maybe a little side dialog which will tell you that "myClip1" has something in it and so on. When you want a particular clip, do your thing with the Ctrl+1 {or whichever} which would put that clip into the clipboard for the pasting.
Hope this helps!
Ciao,
Dra'Gon _________________
For a good laugh {hopefully} >> megamatts.50megs.com
My WritersCafe profile>>
http://www.writerscafe.org/writers/BlueDragonFire/ |
|
| Back to top |
|
 |
sinkfaze
Joined: 18 Mar 2008 Posts: 139
|
Posted: Sat Jun 28, 2008 9:08 pm Post subject: |
|
|
It may not be the most optimal solution, but have you tried the Deluxe Clipboard? _________________ Have trouble searching the site for information? Try Quick Search for Autohotkey. |
|
| Back to top |
|
 |
Red Hat Boy
Joined: 10 Apr 2008 Posts: 112
|
Posted: Sun Jun 29, 2008 2:20 am Post subject: |
|
|
Hmm...I don't know how well this relates to what you're trying to do, but I did something similar in one of my scripts:
| Code: | :*:a/a::
InputBox, CustomString1, Custom String 1, Input custom string 1, , 400, 85
return
:*:a'a::
Send %CustomString1%
return
:*:b/b::
InputBox, CustomString2, Custom String 2, Input custom string 2, , 400, 85
return
:*:b'b::
Send %CustomString2%
return
:*:c/c::
InputBox, CustomString3, Custom String 3, Input custom string 3, , 400, 85
return
:*:c'c::
Send %CustomString3%
return |
_________________ I slit the sheet, the sheet I slit,
and on the slitted sheet I sit. ;~} |
|
| Back to top |
|
 |
mrfanman
Joined: 28 Jun 2008 Posts: 2
|
Posted: Tue Jul 01, 2008 10:28 am Post subject: |
|
|
Ok Thank you people. I got the text copy the way i want it now. Would be great to get the file copy like it too. But i dont realy care about that now.  |
|
| Back to top |
|
 |
|