Page 1 of 1

Undo action in Photoshop by pressing ctrl?

Posted: 29 May 2016, 20:36
by Dubs
To undo an action in Photoshop you have to press Ctrl+Alt+Z. Is there any way to map all three keys to the Ctrl button only?
This is what I've got so far. I need help on the keys.

#IfWinActive ahk_class Photoshop
$Ctrl::
return

I want to tie the above into my existing AutoHotkey script below. I'm confused by what exactly requires a 'return'??

Code: Select all

#IfWinActive ahk_class HoneyviewClassX
$Alt::n
$n::Alt
$Ctrl::b
$b::Ctrl

#IfWinActive ahk_class ATL:ExplorerFrame
$Alt::Ctrl
$Ctrl::Alt

#IfWinActive ahk_class Notepad++
$Alt::Ctrl
$Ctrl::Alt

Re: Undo action in Photoshop by pressing ctrl?

Posted: 29 May 2016, 21:44
by Xtra
Try this: (tested)

Code: Select all

#IfWinActive ahk_class Photoshop
~Ctrl::Send, {Blind}!z
A return is required on multiple line hotkeys.

Re: Undo action in Photoshop by pressing ctrl?

Posted: 29 May 2016, 23:38
by Dubs
Thank you Xtra, worked perfectly.

Re: Undo action in Photoshop by pressing ctrl?

Posted: 30 May 2016, 09:52
by guest2
though I'd add a #IfWinActive at the end

#IfWinActive ahk_class Notepad++
;your code goes here
#IfWinActive