AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New, needing a Middle mouse emulator

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
3dmodeler



Joined: 15 Mar 2008
Posts: 3

PostPosted: Sat Mar 15, 2008 3:41 am    Post subject: New, needing a Middle mouse emulator Reply with quote

I have found a couple of scripts in the help forum that create emulated clicks that require you to re-hit the hotkey to release the mouse button.

I use 3dsMax extensively and it's taking its RSI toll on my clicking fingers. Particularly the MMB, worsened by the mere fact that so few mice have three full sized buttons these days.

What I really want to do I am not sure AHK can even do at all.

3dsMax utilizes the MMB along with other keys for viewport movement.

MMB +drag alone pans view
MMB + CTRL + ALT+drag zooms view
MMB + ALT+drag rotates view


First, I suppose, is it possible to create a direct MMB emulator- a hotkey that only while depressed performs the click middle down function, and performs click middle up immediately on key release? If so, is it possible to modify that active hotkey with CTRL and ALT, or do three separate hotkey scripts need to be written?


Mark
Back to top
View user's profile Send private message
Lurker1457



Joined: 10 Mar 2008
Posts: 11

PostPosted: Sat Mar 15, 2008 4:05 am    Post subject: Reply with quote

I do a bunch of stuff in Cinema 4D and I use AHK to save myself from keycombo headaches...
Code:
,:: SendPlay {blind}{LAlt down}{MButton Down}
, Up:: SendPlay {blind}{MButton Up}{LAlt up}
.::MButton
/:: SendPlay {blind}{LCtrl down}{LAlt down}{MButton Down}
/ Up:: SendPlay {blind}{MButton Up}{LAlt up}{LCtrl up}

This is a modification of the hotkeys I use... it makes the comma, period, and slash keys into the 3 movement hotkeys
Back to top
View user's profile Send private message
3dmodeler



Joined: 15 Mar 2008
Posts: 3

PostPosted: Sat Mar 15, 2008 4:10 am    Post subject: Reply with quote

LOI

After posting I found the following thread:

http://www.autohotkey.com/forum/viewtopic.php?t=19724&start=0&postdays=0&postorder=asc&highlight=middle+mouse

simply

m::Mbutton

is all that is needed, no click, click down, click up or anything of the sort needed, and it is modifable by ctrl and alt.

Evidently a case of trying too hard on my part.

I applied #z for my own ease of use


Mark
Back to top
View user's profile Send private message
3dmodeler



Joined: 15 Mar 2008
Posts: 3

PostPosted: Sat Mar 15, 2008 9:33 pm    Post subject: Reply with quote

n/m

got it. Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group