AutoHotKey Script for everybody who works in SolidWorks, Adobe Illustrator and Indesign

I made this AutoHotKey script for those who don`t want to break it`s brain and fingers each time you switch between these applications.

It remaps Adobe pan and zoom to be compatible with Word, Explorer for zoom (Cntr+Wheel for zoom instead of original Alt+Wheel) and Middle Mouse Button for panning like in SW.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.

; #Warn  ; Enable warnings to assist with detecting common errors.

SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.

SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

GroupAdd, AdobeGroup, ahk_class illustrator ; Add illustrator to the group

GroupAdd, AdobeGroup, ahk_class indesign ; Add indesign to the group

#IfWinActive ahk_group AdobeGroup

{

; zooming by Cntr+Mouse wheel instead of Alt+Mouse Wheel

^wheeldown::!wheeldown

^wheelup::!wheelup

;panning by MidleMouseButton

~MButton::

Send, {Space Down}{LButton Down}

while GetKeyState("MButton")

  {

  }

Send,{Space Up}{LButton Up}

return

esc::v ;change esc to select (v)

CapsLock::esc ;change CapsLock to esc

}

File is attached for convenience.

SolidworksGeneral