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 

Deluxe Clipboard
Goto page Previous  1, 2, 3, 4  Next
 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
trenton_xavier



Joined: 16 Jun 2008
Posts: 82
Location: Pittsburgh, Pennsylvania, USA

PostPosted: Fri Aug 08, 2008 4:17 pm    Post subject: Reply with quote

Nope, didn't have anything else on the clipboard and yes it was while pasting into Word(2007). The copying was not done within Word however.

The weird thing was that it was during a pasting of 4 pictures. The first two were fine, then the third was wrong, and the fourth was right. The third one was not the first, second, or fourth, rather it was from the previous set of four(which had a script reload in between).

Hasn't happened again though, but maybe it was just something with Word.
Back to top
View user's profile Send private message AIM Address
trenton_xavier



Joined: 16 Jun 2008
Posts: 82
Location: Pittsburgh, Pennsylvania, USA

PostPosted: Fri Aug 08, 2008 7:00 pm    Post subject: really weird Reply with quote

Ok, now its getting weird. On the third paste, instead of a right/wrong picture it pasted the actual code of the current sub-routine of my script!
Back to top
View user's profile Send private message AIM Address
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Fri Aug 08, 2008 7:17 pm    Post subject: Reply with quote

This could be related to the AHK bug, nobody is around to fix Crying or Very sad
Back to top
View user's profile Send private message
trenton_xavier



Joined: 16 Jun 2008
Posts: 82
Location: Pittsburgh, Pennsylvania, USA

PostPosted: Fri Aug 08, 2008 8:23 pm    Post subject: Reply with quote

I see, thanks Laszlo.
Back to top
View user's profile Send private message AIM Address
Maddog_
Guest





PostPosted: Thu Apr 16, 2009 4:18 pm    Post subject: Reply with quote

Since I don't have the apps key on my laptop, I've remapped caps lock to serve as the apps key:

Code:
CapsLock::
Send ,{AppsKey}
return


But it interferes with the capslock shortcuts of this script.

Is there any way to use caps lock for both purposes?

thanks!
Back to top
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Thu Apr 16, 2009 4:35 pm    Post subject: Reply with quote

It should not interfere. The only difference you should see with "CapsLock & key" hotkeys is that the sole CapsLock hotkey only fires, when the CapsLock key is released (AHK waits for potential other keys to detect "Capslock & key" type hotkeys).
Back to top
View user's profile Send private message
fogus



Joined: 28 Mar 2007
Posts: 83

PostPosted: Mon May 18, 2009 9:42 pm    Post subject: Reply with quote

I would like to have a script that just allowed me to use, say Alt+1 through Alt+0 (i.e., the ten digits) as individual clipboards. Can this script do this? Can an example be provided of how I could get this to work?
_________________
~fogus
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Mon May 18, 2009 10:51 pm    Post subject: Reply with quote

The script in the first post “Provides unlimited number of private, named clipboards”. If you want Ctrl-Alt-1 to copy selection to the #1 internal clipboard-store, Alt-1 to paste it, it is a much simpler task:
Code:
i = 0
Loop 10 {
   Hotkey ^!%i%, Copy      ; set up Ctrl-Alt-num hotkeys
   Hotkey  !%i%, Paste     ; set up Alt-num hotkeys
   i++
}
Return

Copy:
   i := SubStr(A_ThisHotkey,0)
   temp := ClipBoardAll    ; save original clipboard
   ClipBoard  =
   Send ^c                 ; copy new data to clipboard
   ClipWait 2, 1           ; wait up to 2 seconds or until clipboard contains data
   Clip%i% := ClipBoardAll ; set numbered clipboard
   ClipBoard := temp       ; restore global clipboard
Return

Paste:
   i := SubStr(A_ThisHotkey,0)
   temp := ClipBoardAll    ; save original clipboard
   ClipBoard := Clip%i%    ; copy stored data to clipboard
   Sleep 250               ; give it some time
   Send ^v                 ; paste clipboard
   ClipBoard := temp       ; restore global clipboard
Return
Back to top
View user's profile Send private message
fogus



Joined: 28 Mar 2007
Posts: 83

PostPosted: Tue May 19, 2009 5:47 am    Post subject: Reply with quote

Does that need to run in a separate dedicated script file from my regular hotkey script?

I am also having problems with starting up multiple scripts at boot. Sometimes only two of my three start up.
_________________
~fogus
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Tue May 19, 2009 1:36 pm    Post subject: Reply with quote

Include the first 6 lines of the script of the last post to the auto-execute part (in the beginning) of your main script, the two subroutines go somewhere among your subroutines (after the Return terminating the auto-execute section).
Back to top
View user's profile Send private message
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Thu Jun 04, 2009 6:49 pm    Post subject: Reply with quote

The updated version isn't working for me. The old one is. I am running the latest AHK on an XP SP3 machine. I copied the script from Lazlo's first post. Can somebody confirm this is the correct and complete script? It is doing nothing.
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Thu Jun 04, 2009 7:54 pm    Post subject: Reply with quote

What happens when you press the hotkeys, like CapsLock+C?
Back to top
View user's profile Send private message
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Thu Jun 04, 2009 9:03 pm    Post subject: Reply with quote

Highlighted text is replaced with a "C," alternating between lower and higher case. Smile
Back to top
View user's profile Send private message
Laszlo



Joined: 14 Feb 2005
Posts: 4710
Location: Boulder, CO

PostPosted: Thu Jun 04, 2009 9:09 pm    Post subject: Reply with quote

Your system does not seem to support CapsLock key combinations. Just replace the hotkeys to something you like and works, e.g. ^!c, ^!v ... for Ctrl+Alt+c type triggers.
Back to top
View user's profile Send private message
ribbet.1



Joined: 20 Feb 2007
Posts: 197
Location: D.C.

PostPosted: Thu Jun 04, 2009 11:15 pm    Post subject: Reply with quote

Well I thought I had tried replacing them with something else before and it didn't work, but now it does. Thanks again Lazlo!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 3 of 4

 
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