AutoHotkey Community

It is currently May 27th, 2012, 11:15 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 13 posts ] 
Author Message
 Post subject: Photoshop trouble
PostPosted: March 6th, 2006, 1:44 pm 
Offline

Joined: March 6th, 2006, 1:36 pm
Posts: 5
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2006, 1:58 pm 
Offline

Joined: December 22nd, 2005, 7:43 pm
Posts: 245
Put a space between Alt and Down.

Code:
Send {Alt Down}[{Alt Up}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 6th, 2006, 2:32 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Or just try the remapping feature:
!PgUp::![
!PgDn::!]

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2006, 12:50 am 
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...


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2006, 1:17 am 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2006, 6:40 pm 
Offline

Joined: March 6th, 2006, 1:36 pm
Posts: 5
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... :?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2006, 11:22 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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?

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2006, 11:33 pm 
Offline

Joined: March 6th, 2006, 1:36 pm
Posts: 5
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).


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 7th, 2006, 11:47 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
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.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2006, 12:34 am 
Offline

Joined: March 6th, 2006, 1:36 pm
Posts: 5
Shit, tried it but it didn't work... I had such high hopes for that method:(

Thanks anyway!


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Photoshop trouble
PostPosted: March 8th, 2006, 6:54 am 
Offline

Joined: December 20th, 2005, 4:15 am
Posts: 165
Location: Malaysia
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2006, 11:48 am 
Offline

Joined: March 6th, 2006, 1:36 pm
Posts: 5
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...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: March 8th, 2006, 1:54 pm 
Offline

Joined: February 7th, 2005, 11:11 am
Posts: 192
Location: Munich, Germany
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)


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: BrandonHotkey and 11 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