| View previous topic :: View next topic |
| Author |
Message |
Evisc
Joined: 06 Mar 2006 Posts: 5
|
Posted: Mon Mar 06, 2006 1:44 pm Post subject: Photoshop trouble |
|
|
I'm pretty new in this so bear with me...
I'm trying to assign a new hotkey for an existing, but unchangeable hotkey in PS. It's the alt + [ and alt + ] hotkeys, which I can't use because of my European keyboard. I have written this script, but it doesn’t work.
#IfWinActive ahk_class Photoshop
!PgUp::Send, {ALTDOWN}[{ALTUP}
!PgDn::Send, {ALTDOWN}]{ALTUP}
Any pointers? |
|
| Back to top |
|
 |
Greg
Joined: 22 Dec 2005 Posts: 246
|
Posted: Mon Mar 06, 2006 1:58 pm Post subject: |
|
|
Put a space between Alt and Down.
| Code: | | Send {Alt Down}[{Alt Up} |
|
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Mon Mar 06, 2006 2:32 pm Post subject: |
|
|
Or just try the remapping feature:
!PgUp::![
!PgDn::!]
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Guest
|
Posted: Tue Mar 07, 2006 12:50 am Post subject: |
|
|
Sorry, neither of these suggestions works for me...
The cursor just briefly changes into a colorpicker or something else depending on the tool chosen, which is probably because of the alt key... |
|
| Back to top |
|
 |
evl
Joined: 24 Aug 2005 Posts: 1238
|
Posted: Tue Mar 07, 2006 1:17 am Post subject: |
|
|
PhiLho's script works here.
If you run this script:
And open notepad and press PgUp or PgDn, do you get the square brackets displayed? |
|
| Back to top |
|
 |
Evisc
Joined: 06 Mar 2006 Posts: 5
|
Posted: Tue Mar 07, 2006 6:40 pm Post subject: |
|
|
Yes it works in notepad, it even works when typing text in PS, but it still doesn't work as a hotkey in PS.
It is as though the hotkey alt + [ and alt + ] is deactivated when using any other keyboard language than English...  |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Tue Mar 07, 2006 11:22 pm Post subject: |
|
|
Does these keys have a menu equivalence? You can then simulate that by using SendMessage WM_COMMAND, menuID...
Other ways are possible. What do these keys do? _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Evisc
Joined: 06 Mar 2006 Posts: 5
|
Posted: Tue Mar 07, 2006 11:33 pm Post subject: |
|
|
Unfortunately the function does not have any menu equivalence...
It's a shortcut for switching between layers. A function, which in my humble opinion, should be mapped to the up and down arrow keys by default (or at least should be remappable). |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6721 Location: France (near Paris)
|
Posted: Tue Mar 07, 2006 11:47 pm Post subject: |
|
|
Perhaps somebody with a non-European keyboard can type these keys in the Key history window and report the VK and SC codes, perhaps they can be simulated this way.
Thank you. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
Evisc
Joined: 06 Mar 2006 Posts: 5
|
Posted: Wed Mar 08, 2006 12:34 am Post subject: |
|
|
Shit, tried it but it didn't work... I had such high hopes for that method:(
Thanks anyway! |
|
| Back to top |
|
 |
Lemming
Joined: 20 Dec 2005 Posts: 150 Location: Malaysia
|
Posted: Wed Mar 08, 2006 6:54 am Post subject: Re: Photoshop trouble |
|
|
It's probably because Photoshop itself uses Alt-PgUp and PgDn for scrolling thru an image. At least it does for my version (Photoshop CS). You could try remapping another pair of keys.
Note that PS does have a whole bunch of hotkeys, so you might want to check its manual or helpfile to ensure there are no clashes.
-Lemming
| Evisc wrote: | I'm pretty new in this so bear with me...
I'm trying to assign a new hotkey for an existing, but unchangeable hotkey in PS. It's the alt + [ and alt + ] hotkeys, which I can't use because of my European keyboard. I have written this script, but it doesn’t work.
#IfWinActive ahk_class Photoshop
!PgUp::Send, {ALTDOWN}[{ALTUP}
!PgDn::Send, {ALTDOWN}]{ALTUP}
Any pointers? |
|
|
| Back to top |
|
 |
Evisc
Joined: 06 Mar 2006 Posts: 5
|
Posted: Wed Mar 08, 2006 11:48 am Post subject: |
|
|
I've tried using other keys and combinations that shouldn't clash with Photoshop’s own hotkeys, but I still can't get it to work...
Thanks for the suggestion though... |
|
| Back to top |
|
 |
kapege.de
Joined: 07 Feb 2005 Posts: 186 Location: Munich, Germany
|
Posted: Wed Mar 08, 2006 1:54 pm Post subject: |
|
|
PS is a nasty program like Word. Try to close it with Alt-F4... You have to hold the keys down for about 2 seconds before PS reacts.
Every send-action from AHK has to have "sleep"s between. And so on. _________________ Peter
Wisenheiming for beginners: KaPeGe (German only, sorry) |
|
| Back to top |
|
 |
|