need help for spacekey in ps

Get help with using AutoHotkey and its commands and hotkeys
zhanglei1371
Posts: 19
Joined: 05 Aug 2014, 02:01

need help for spacekey in ps

09 Oct 2017, 00:41

Recently I met a puzzle in using photoshop6 .
As I had made a key map with space:

Code: Select all

space::send {space}
space & h::send {left}
but I found that in ps I cant use space to scrab.I try to use

Code: Select all

~space::return
,but found other programe was involved.Such as ppt,if I use space as hotkey,it wont work normally.
Last edited by zhanglei1371 on 09 Oct 2017, 05:37, edited 1 time in total.
BoBo
Posts: 2519
Joined: 13 May 2014, 17:15

Re: need help for spacekey in ps

09 Oct 2017, 01:06

#IfWinActive ?
zhanglei1371
Posts: 19
Joined: 05 Aug 2014, 02:01

Re: need help for spacekey in ps

09 Oct 2017, 05:36

well,the test code is below:

Code: Select all

;==========global=======
$Space::send {Space}
Space & h::send {Left}
Space & j::send {Down}
Space & k::send {up}
Space & l::send {Right}
;==========ps=======
#If WinActive("ahk_class Photoshop")  
~space::return
#if
;=====================
I found that if I use space & h in notepad,then a space will generate,which was i dont want to see.
But if I want have the function that press space to move a picture in photoshop,What I can do except using "~space::return"?
Seems that "~space::return" will involve other programe if I use space & h.
So how to solve this problem?
Thx.
scriptor2016
Posts: 504
Joined: 21 Dec 2015, 02:34

Re: need help for spacekey in ps

10 Oct 2017, 08:40

I think this is all you need:

Code: Select all

#IfWinActive, ahk_class Photoshop
Space & h::send {Left}
Space & j::send {Down}
Space & k::send {up}
Space & l::send {Right}
return

Return to “Ask For Help”

Who is online

Users browsing this forum: asad41163, Bing [Bot], DMDComposer, Dumitas, Google [Bot], ilhom, Odlanir, ScrapeyMcDataface and 189 guests