
#NoEnv
#SingleInstance force
#IfWinActive ahk_class illustrator
MButton::
Send {r} ;SELECT ROTATION TOOL
MouseGetPos, xPos, yPos ;RECORD THE MOUSE XY POSITION
MouseMove, 800, 600, 0 ;PLACE THE MOUSE AT THE CENTER OF THE SCREEN
Send +{A}
Send {Shift down}{LButton down}
Send {LButton up}{Shift up}
MouseMove, xPos, yPos, 0
Send {^Click} ;CTRL-LEFTCLICK
Send {control down}
Send {a}
Send {control up}
Send {LButton down}
Return
*MButton up::
Send {LButton Up}
Send {control down}
Send ^+{a}
Send {control up}
Send {B}
Return