AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

clipboard copy problem

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
mrfanman



Joined: 28 Jun 2008
Posts: 2

PostPosted: Sat Jun 28, 2008 3:14 pm    Post subject: clipboard copy problem Reply with quote

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
View user's profile Send private message
Dra_Gon



Joined: 25 May 2007
Posts: 313

PostPosted: Sat Jun 28, 2008 7:17 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
sinkfaze



Joined: 18 Mar 2008
Posts: 139

PostPosted: Sat Jun 28, 2008 9:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Red Hat Boy



Joined: 10 Apr 2008
Posts: 112

PostPosted: Sun Jun 29, 2008 2:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
mrfanman



Joined: 28 Jun 2008
Posts: 2

PostPosted: Tue Jul 01, 2008 10:28 am    Post subject: Reply with quote

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. Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group