| View previous topic :: View next topic |
| Author |
Message |
trenton_xavier
Joined: 16 Jun 2008 Posts: 82 Location: Pittsburgh, Pennsylvania, USA
|
Posted: Fri Aug 08, 2008 4:17 pm Post subject: |
|
|
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 |
|
 |
trenton_xavier
Joined: 16 Jun 2008 Posts: 82 Location: Pittsburgh, Pennsylvania, USA
|
Posted: Fri Aug 08, 2008 7:00 pm Post subject: really weird |
|
|
| 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 |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Fri Aug 08, 2008 7:17 pm Post subject: |
|
|
This could be related to the AHK bug, nobody is around to fix  |
|
| Back to top |
|
 |
trenton_xavier
Joined: 16 Jun 2008 Posts: 82 Location: Pittsburgh, Pennsylvania, USA
|
Posted: Fri Aug 08, 2008 8:23 pm Post subject: |
|
|
| I see, thanks Laszlo. |
|
| Back to top |
|
 |
Maddog_ Guest
|
Posted: Thu Apr 16, 2009 4:18 pm Post subject: |
|
|
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
|
Posted: Thu Apr 16, 2009 4:35 pm Post subject: |
|
|
| 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 |
|
 |
fogus
Joined: 28 Mar 2007 Posts: 83
|
Posted: Mon May 18, 2009 9:42 pm Post subject: |
|
|
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 |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Mon May 18, 2009 10:51 pm Post subject: |
|
|
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 |
|
 |
fogus
Joined: 28 Mar 2007 Posts: 83
|
Posted: Tue May 19, 2009 5:47 am Post subject: |
|
|
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 |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Tue May 19, 2009 1:36 pm Post subject: |
|
|
| 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 |
|
 |
ribbet.1
Joined: 20 Feb 2007 Posts: 197 Location: D.C.
|
Posted: Thu Jun 04, 2009 6:49 pm Post subject: |
|
|
| 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 |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Thu Jun 04, 2009 7:54 pm Post subject: |
|
|
| What happens when you press the hotkeys, like CapsLock+C? |
|
| Back to top |
|
 |
ribbet.1
Joined: 20 Feb 2007 Posts: 197 Location: D.C.
|
Posted: Thu Jun 04, 2009 9:03 pm Post subject: |
|
|
Highlighted text is replaced with a "C," alternating between lower and higher case.  |
|
| Back to top |
|
 |
Laszlo
Joined: 14 Feb 2005 Posts: 4710 Location: Boulder, CO
|
Posted: Thu Jun 04, 2009 9:09 pm Post subject: |
|
|
| 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 |
|
 |
ribbet.1
Joined: 20 Feb 2007 Posts: 197 Location: D.C.
|
Posted: Thu Jun 04, 2009 11:15 pm Post subject: |
|
|
| 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 |
|
 |
|