AutoHotkey Community

It is currently May 26th, 2012, 7:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 56 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject:
PostPosted: August 8th, 2008, 5:17 pm 
Offline

Joined: June 16th, 2008, 12:26 pm
Posts: 82
Location: Pittsburgh, Pennsylvania, USA
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject: really weird
PostPosted: August 8th, 2008, 8:00 pm 
Offline

Joined: June 16th, 2008, 12:26 pm
Posts: 82
Location: Pittsburgh, Pennsylvania, USA
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!


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 8th, 2008, 8:17 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
This could be related to the AHK bug, nobody is around to fix :cry:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: August 8th, 2008, 9:23 pm 
Offline

Joined: June 16th, 2008, 12:26 pm
Posts: 82
Location: Pittsburgh, Pennsylvania, USA
I see, thanks Laszlo.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 5:18 pm 
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!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 16th, 2009, 5:35 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 10:42 pm 
Offline

Joined: March 28th, 2007, 4:18 pm
Posts: 84
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 18th, 2009, 11:51 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 19th, 2009, 6:47 am 
Offline

Joined: March 28th, 2007, 4:18 pm
Posts: 84
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 19th, 2009, 2:36 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2009, 7:49 pm 
Offline

Joined: February 20th, 2007, 1:37 pm
Posts: 198
Location: D.C.
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2009, 8:54 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
What happens when you press the hotkeys, like CapsLock+C?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2009, 10:03 pm 
Offline

Joined: February 20th, 2007, 1:37 pm
Posts: 198
Location: D.C.
Highlighted text is replaced with a "C," alternating between lower and higher case. :-)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 4th, 2009, 10:09 pm 
Offline

Joined: February 14th, 2005, 4:05 pm
Posts: 4710
Location: Boulder, CO
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 5th, 2009, 12:15 am 
Offline

Joined: February 20th, 2007, 1:37 pm
Posts: 198
Location: D.C.
Well I thought I had tried replacing them with something else before and it didn't work, but now it does. Thanks again Lazlo!


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 56 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: Scratch, Xx7 and 18 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group