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 

Photoshop trouble

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



Joined: 06 Mar 2006
Posts: 5

PostPosted: Mon Mar 06, 2006 1:44 pm    Post subject: Photoshop trouble Reply with quote

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



Joined: 22 Dec 2005
Posts: 246

PostPosted: Mon Mar 06, 2006 1:58 pm    Post subject: Reply with quote

Put a space between Alt and Down.

Code:
Send {Alt Down}[{Alt Up}
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Mon Mar 06, 2006 2:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Guest






PostPosted: Tue Mar 07, 2006 12:50 am    Post subject: Reply with quote

Sorry, neither of these suggestions works for me... Sad
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

PostPosted: Tue Mar 07, 2006 1:17 am    Post subject: Reply with quote

PhiLho's script works here.

If you run this script:

Code:

PgUp::[
PgDn::]


And open notepad and press PgUp or PgDn, do you get the square brackets displayed?
Back to top
View user's profile Send private message
Evisc



Joined: 06 Mar 2006
Posts: 5

PostPosted: Tue Mar 07, 2006 6:40 pm    Post subject: Reply with quote

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... Confused
Back to top
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Tue Mar 07, 2006 11:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Evisc



Joined: 06 Mar 2006
Posts: 5

PostPosted: Tue Mar 07, 2006 11:33 pm    Post subject: Reply with quote

Unfortunately the function does not have any menu equivalence... Sad
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
View user's profile Send private message
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Tue Mar 07, 2006 11:47 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Evisc



Joined: 06 Mar 2006
Posts: 5

PostPosted: Wed Mar 08, 2006 12:34 am    Post subject: Reply with quote

Shit, tried it but it didn't work... I had such high hopes for that method:(

Thanks anyway!
Back to top
View user's profile Send private message
Lemming



Joined: 20 Dec 2005
Posts: 150
Location: Malaysia

PostPosted: Wed Mar 08, 2006 6:54 am    Post subject: Re: Photoshop trouble Reply with quote

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



Joined: 06 Mar 2006
Posts: 5

PostPosted: Wed Mar 08, 2006 11:48 am    Post subject: Reply with quote

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



Joined: 07 Feb 2005
Posts: 186
Location: Munich, Germany

PostPosted: Wed Mar 08, 2006 1:54 pm    Post subject: Reply with quote

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