Skip to main content
Known Participant
November 19, 2011
Open for Voting

Photoshop: Ability to use middle mouse button as hand tool

  • November 19, 2011
  • 44 replies
  • 10460 views
CS6: May I suggest to use the middle mouse button as hand tool? So pressing down middle mouse button will drag the image. This will be more convenient because we can drag the image using simply the mouse, instead of having to use the current method of both keyboard+mouse.

44 replies

Inspiring
July 7, 2018
;Here's my Autohotkey script. Enjoy.... U can copy and paste all of it;;;;;;;;;;;;;


#If WinActive("ahk_class Photoshop") or WinActive("ahk_class PSFloatC")
;WinActive is suppose to prevent autohotkeys from interfering with other programs while ;it's on
;PSFloatC is the window that is open when Photoshop is active

XButton1:: ; _______________________alt+controll+z = muose button 3 ;step backwards
sendInput ^!z 
return

XButton2:: ; _______________________shift+controll+z = mouse button 4 ;step forward
sendInput ^Z
return

MButton:: ; ________________________h = middle mouse button ; handtool
sendInput h
return

Up:: ; _____________________________shift+ < = up arrow = increase brush size 
send, +<
return

Down:: ; ___________________________< = down arrow = degrease brush size
send, <
return

Left:: ; ___________________________,  = left arrow = previus brush
send, b
send, ,
return

Right:: ; ___________________________. = right arrow = next brush 
send, b
send, .
return

Insert:: ; __________________________controll+a = insert = select all
send, ^a
return

End:: ; ___________________________controll+shift+alt+e = end = copy visible layers 
send, ^!E 
return

NumpadIns::Alt ; _____________________alt = numpad 0 = alt key

Home:: ; _____________________________controll+shift+i = home = select inverse
send, ^I
return

PgUp:: ; _____________________________controll+shift+d page up = select reselect
send, +^d
return

PgDn:: ; _____________________________controll+d = page down = deselect
send, ^d
return

#IfWinActive

return
Participant
February 9, 2018
Use my enhanced version. It is used in a very useful app called AutoHotKey. Just google it.
Known Participant
November 1, 2017
Teodor, just use the same script but replace the word photoshop with indesign or illustrator. Or even better, use this enhanced script:

GroupAdd, MMButtonEQspace, ahk_exe Photoshop.exe
GroupAdd, MMButtonEQspace, ahk_exe InDesign.exe
GroupAdd, MMButtonEQspace, ahk_exe Illustrator.exe
GroupAdd, MMButtonEQspace, ahk_exe AcroRD32.exe
GroupAdd, MMButtonEQspace, ahk_exe Muse.exe
;GroupAdd, MMButtonEQspace, ahk_exe Acrobat.exe
; And so on for every App I forgot where you want
; to use this trick.

#IfWinActive ahk_group MMButtonEQspace
    MButton::
    Send {Space Down}{LButton Down}
    Keywait, MButton
    Send {LButton Up}{Space Up}
    Return
#IfWinActive
This script will only work with apps that use Space Bar + Left Mouse Button as the hand tool, Of course.
Acrobat Reader already implements the Wheel button pan, but it works better with Space Bar + Left Mouse Button, so I have included it too.
After Effects, Bridge, Fuse and Animate (former Flash) already have it implemented.
Acrobat DC has it implemented but in a different way so feel free to try it by removing the ";"
Known Participant
November 1, 2017
This AutoHotkey script is just what I was looking for!
I had already tried with AutoHotkey but unsuccessfully due to my lack of programming skills.

Still, I have one enhancement to add to the script. Currently it only works in Photoshop itself but not in Third party plugins or even tools like Liquify that have their own window.
I think this one will work for those windows too:

#IfWinActive ahk_exe Photoshop.exe
    MButton::
    Send {Space Down}{LButton Down}
    Keywait, MButton
    Send {LButton Up}{Space Up}
    Return
#IfWinActive

Instead of using the class of the window to identify it, I use the main process where the window is being executed (photoshop.exe).
Note this will affect also windows like open and save, meaning if you have your middle button configured to do something special in Explorer windows, it will not work here, but this is a minor price to pay and imperceptible for almost everybody.

Have a look to my response to Teodor for a more enhanced version of the script valid for all Adobe Apps.
Inspiring
August 27, 2017
Done! Thanks!
Inspiring
November 23, 2016
Brilliant! Just what I've been looking for.
Thank you
Inspiring
May 21, 2016
good This software is usually likewise well-known among the android users. Vidmate for PC you can download cellular applications and video games from the fresh, nice.
Inspiring
March 6, 2016
Do you have any idea how to do that in InDesign and Illustrator ?
Please :S
Inspiring
March 4, 2016
I'm glad to know that!
Inspiring
March 3, 2016
Thanks Veybi. This improves my photoshop editing time so much 🙂