I'm trying to setup some hotkeys so I can use my tablet and stylus for Zbrush in a left handed setup more easily.
Basically, I want to start emulating my mouse and modifier navigation with the arrow keys.
so far what I have works. right mouse for orbit, middle for pan.
I am trying to figure out how to add a modifier key (ctrl) to the right mouse click and hold so while I hover the stylus and move it the zoom function works.
I need:
left arrow key = ctrl+right mouse hold
Thanks!
Here's my code so far:
#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.
#IfWinActive, ahk_class ZBrush
#MaxHotkeysPerInterval 200
Numpad0::f ;frame
Up::Space
; Use the Down Arrow as middle mouse button
Down:: ;Down Arrow Button
click Down middle ;click middle mousebutton and hold
keywait, Down ; wait until key is released.
click Up middle ; release middle mousebutton
; Use the Right Arrow Button as right mouse button
Right:: ;right Arrow Button
click Down right ;click right mousebutton and hold
keywait, Right ; wait unitl key is released
click Up right ; release right mousebutton
return
Alt
in your solution; is that what you wanted instead ofCtrl
? – EJE