Undo action in Photoshop by pressing ctrl?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Dubs
Posts: 23
Joined: 19 May 2016, 19:55

Undo action in Photoshop by pressing ctrl?

29 May 2016, 20:36

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
User avatar
Xtra
Posts: 2750
Joined: 02 Oct 2015, 12:15

Re: Undo action in Photoshop by pressing ctrl?

29 May 2016, 21:44

Try this: (tested)

Code: Select all

#IfWinActive ahk_class Photoshop
~Ctrl::Send, {Blind}!z
A return is required on multiple line hotkeys.
Dubs
Posts: 23
Joined: 19 May 2016, 19:55

Re: Undo action in Photoshop by pressing ctrl?

29 May 2016, 23:38

Thank you Xtra, worked perfectly.
guest2

Re: Undo action in Photoshop by pressing ctrl?

30 May 2016, 09:52

though I'd add a #IfWinActive at the end

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

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Descolada, Google [Bot], jomaweb, Rohwedder and 293 guests