Photoshop: Ability to use middle mouse button as hand tool

  • 17
  • Idea
  • Updated 5 months ago
  • (Edited)
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.
Photo of Allen W

Allen W

  • 86 Posts
  • 10 Reply Likes

Posted 7 years ago

  • 17
Photo of Jonathan Foucher

Jonathan Foucher

  • 1 Post
  • 2 Reply Likes
I used Photoshop today for the first time in years (before mice had middle buttons!) and I can't believe it doesn't support middle mouse button dragging. This has been standard on every imaging software since about 2004, even 3D design software.
Photo of iMatt

iMatt

  • 122 Posts
  • 11 Reply Likes
If you have a Wacom tablet you can remap the MMB to behave as the hand tool.
Photo of Allen W

Allen W

  • 86 Posts
  • 10 Reply Likes
didn't make it into cs6. maybe possible in cs7?
Photo of Ehab Nabil

Ehab Nabil

  • 4 Posts
  • 3 Reply Likes
I signed up in here just to request this feature, and not even in CS6 or 7, i want it in CS5 that i currently have.

Using 3Ds Max and AutoCad all 24/7 and then switching to Photoshop and my brain can't stop holding Center-Click to Pan.

I looked every where in the Shortcuts menu trying to set CS5 to pan by holding center-click but couldn't find any way to do it, and i looked every where on the internet for how to do that even with a script or something but couldn't find any.

This really needs to be available soon as an update for CS5, before my brain explodes. 0.o
Photo of Soul Cake Duck

Soul Cake Duck

  • 1 Post
  • 1 Reply Like
I'll put it this way. There are free open source softwares that have better and more up to date movement schemes.

Tell you what, how come your whole "key shortcuts" scheme is so rigid? Rename it to "input mapping", have it catch events(MOUSE_UP etc) from all input devices, done. Heck, do it in reverse, have it list input events first, and what it invokes in the second column. No more empty lines. Add a "new event" button, users clicks on it, you catch the event, let the user select an action associated with it.

No more meddling in this regard for you, more freedom for us, less headache for everyone.
Photo of undifini ixixel

undifini ixixel

  • 1 Post
  • 0 Reply Likes
If you have a gaming mouse you can rebind the middle mouse button to "h+left mouse button" and move that way. I have a razer mamba 2012 and was abled to rebind the key in the synapse software. It's still really BS that Adobe doesn't properly integrate a feature that even the most basic free programms have...
Photo of Allen W

Allen W

  • 86 Posts
  • 10 Reply Likes
maybe adobe is too busy working on other ways to get users to subscribe to their yearly creative cloud, than to bother with any real convenience improvements for users
Photo of Ehab Nabil

Ehab Nabil

  • 4 Posts
  • 3 Reply Likes
I found an easy way to do it using an application named AutoHotKey, using a script to make the middle mouse button work as holding Space+LMB. :)

Here is the script i wrote if any one would want to use it, and i even made it able to toggle the script On/Off using the 'Scroll Lock' key.

SetScrollLockState, Off
Suspend, On

~ScrollLock::
Suspend, Toggle

MButton::
Send {Space Down}
Send {LButton Down}
KeyWait, MButton
Send {LButton Up}
Send {Space Up}
Return

I hope you guys find it useful as it did for me. :)
Photo of Veybi Iccanobif

Veybi Iccanobif

  • 2 Posts
  • 1 Reply Like
Here is a similar scrip:

#IfWinActive ahk_class Photoshop
MButton::
Send {Space Down}{LButton Down}
Keywait, MButton
Send {LButton Up}{Space Up}
Return
#IfWinActive

This script only works when Photoshop is the active windows, and restores the previous tool selected.

It was based on a scrip by Carrozza, but correcting the "send" order.
Enjoy
Photo of Veybi Iccanobif

Veybi Iccanobif

  • 2 Posts
  • 1 Reply Like
I'm glad to know that!
Photo of Nick Pound

Nick Pound

  • 1 Post
  • 0 Reply Likes
Brilliant! Just what I've been looking for.
Thank you
Photo of Andreia Calaretu

Andreia Calaretu

  • 1 Post
  • 0 Reply Likes
Done! Thanks!
Photo of Dan Drryaev

Dan Drryaev

  • 1 Post
  • 0 Reply Likes
where do I put the script?
Photo of Juan C Walls

Juan C Walls

  • 11 Posts
  • 2 Reply Likes
Use my enhanced version. It is used in a very useful app called AutoHotKey. Just google it.
Photo of JezE

JezE

  • 5 Posts
  • 0 Reply Likes
Can someone please explain what to do with these scripts (what file type to save them as, where to put them and how they get executed) - I have never created one for Photoshop before.

Many thanks.
Photo of JezE

JezE

  • 5 Posts
  • 0 Reply Likes
I've just tried copy / pasting those two scripts from Ehab and Veybi and saving them as a pan.jsx file, putting that into a script folder and going to Scripts Events Manager under "File" Menu and they both give errors......

Any ideas - I really want to solve this issue :)

Thanks.
Photo of JezE

JezE

  • 5 Posts
  • 0 Reply Likes
It's okay - I've gotten there :)

Thanks to Veybi, that is exactly what I wanted to do (i.e. pan in PS with MMB but then also restore the MMB for other applications).

For others who are very new to scripting, what is being discussed here is AutoHotKey - and the creation of a file with the AHK extension.

:)
Photo of Ehab Nabil

Ehab Nabil

  • 4 Posts
  • 3 Reply Likes
Yeah JezE, i already mentioned in my post that the script is for an application Named AutoHotKey. :)

And both Scripts that i and Veybi posted are the same, it is just that mine gets turned on and off using Scroll Lock key while Veybi's works only when photoshop is running.

:)
Photo of JezE

JezE

  • 5 Posts
  • 0 Reply Likes
Thanks Ehab, I was overdosed on searching for the solution and overlooked the fact that you'd already mentioned AutoHotkey :)

Your version works like a charm - there's no going back :)

And quite honestly, I'm really surprised that Photoshop doesn't make use of the MMB, but hey, I'm still on CS6 (no CC for me).

All the best.
Photo of Teodor Andonov

Teodor Andonov

  • 1 Post
  • 0 Reply Likes
Do you have any idea how to do that in InDesign and Illustrator ?
Please :S
(Edited)
Photo of Art of Walls

Art of Walls

  • 11 Posts
  • 0 Reply Likes
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 ";"
Photo of Art of Walls

Art of Walls

  • 11 Posts
  • 0 Reply Likes
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.
(Edited)
Photo of Pasi Puu

Pasi Puu

  • 1 Post
  • 0 Reply Likes
;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
(Edited)
Photo of Hoang Duong

Hoang Duong

  • 1 Post
  • 0 Reply Likes
Hey guys, I have problem with the script. When I'm using Rectang or Lasso, pressing MMB also picking the next point. Do you have any idea to fix it?
Photo of Ehab Nabil

Ehab Nabil

  • 4 Posts
  • 3 Reply Likes
Hello there,

Well, i noticed that because the autohotkey send both space and left-mouse presses at the same time it makes photoshop think that you pressed the left key for adding another point when using lasso tool...

To help fix this i added a small delay between the space press and the left-mouse press and also for the press release after...

That so it feels like when you press space and then press left-mouse in order, to pan, and then when you release the left-mouse first then release the space bar after.
And as usual it starts off and you turn it on/off using scroll lock key.


SetScrollLockState, Off
Suspend, On

~ScrollLock::
   Suspend, Toggle

MButton::
Send {Space Down}
Sleep 30
Send {LButton Down}
KeyWait, MButton
Send {LButton Up}
Sleep 30
Send {Space Up}
Return