AutoHotkey Community

It is currently May 26th, 2012, 6:21 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3
Author Message
 Post subject:
PostPosted: November 17th, 2005, 10:48 am 
Offline

Joined: November 15th, 2005, 3:47 pm
Posts: 5
Am looking for some kind of script that will take over Max strange way of steering and replace it with the way you steer in Maya.

I used to Work in maya and haw started to use Max more and more, but
its hard to get a nice workflow with 2 diffrent way of steering.

I want to Convert:
Ctrl + Alt + MMB To Alt + RMB
Ctrl + MMB To Alt + MMB
Alt + MMB To Alt + Lmb

I haw tryed you skript and cant get shift-lmb to function as mmb.
And what do the "a" tagent?

I think that i can work this around, but how does i isolate the keys ondly to Max?
am a totaly noob to coding :roll:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2005, 2:02 pm 
Offline

Joined: November 15th, 2005, 3:47 pm
Posts: 5
This is what a want to do, the ondly one that works are Rotate.
What are im doing wrong? Please help me

;Rotate "Works"
;alt-LMB to function as alt-MMB
!LButton::
if WinActive("ahk_class 3DSMAX")
Send, !{MButton down}
return
!LButton up:: Send, !{MButton up}

;Pan
;alt-MMB to function as MMB
!MButton::
if WinActive("ahk_class 3DSMAX")
Send, {MButton down}
return
!MButton up:: Send, {MButton up}

;Zoom
;alt-RMB to function as alt-ctrl-MMB
!RButton::
if WinActive("ahk_class 3DSMAX")
Send, !^{MButton up}
return
!RButton up:: Send, !^{MButton up}


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2005, 6:47 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
I think you need to put a $ symbol in front of those two non-functioning hotkeys since they are triggered by and send the MMB.

Take a look in the manual at "hotkey basics" in the index tab and it gives more explanation of the $ prefix and others.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2005, 7:04 pm 
Thanks


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2005, 9:10 pm 
Quote:
The $ prefix is equivalent to having specified #UseHook somewhere above the definition of this hotkey.


Do i need to haw a UseHook?

Is this how you meant?

;Pan
;alt-MMB to function as MMB
$!MButton::
if WinActive("ahk_class 3DSMAX")
{
Send, {MButton down}
return
$!MButton up:: Send, {MButton up}
}


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2005, 9:12 pm 
I still dont get the skript to work


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2005, 9:14 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
You should certainly try adding #InstallKeybdHook to the beginning of your script. And yes, that's the correct placement for the $ symbol.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 17th, 2005, 9:20 pm 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
I just noticed that the line:
Code:
$!MButton up:: Send, {MButton up}

...won't get executed since it is after your Return. Try putting the Return after that line instead of before it. Also once the hotkey has been clicked once, it will stay active. You have to use the other hotkey method if you want to enable and disable hotkeys under certain conditions.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2005, 12:13 am 
Do you haw a soution for enable and disable hotkeys under certain conditions? Due to my bad code knowledge i dont realy now what to do.

Am realy grateful for help


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2005, 12:49 am 
Offline

Joined: August 24th, 2005, 5:17 pm
Posts: 1237
[edit - see below]

Does your existing code work now? Turning on and off the hotkey shouldn't make much difference to whether it works or not, just that it won't trigger at times when you might not want it.

Quote:
Hotkey, KeyName [, Label, Options]


So you would use something like:
Code:
$!MButton::
if WinActive("ahk_class 3DSMAX")
{
Send, {MButton down}
Hotkey, $!MButton up, Label, On
}
Return

Label:
Send, {MButton up}
Hotkey, $!MButton up, Label, Off
Return


If your code's not working, try to be more specific about what happens - I don't have the program to test it out.


Edit: I'm pretty sure it's not working as I was trying it out in internet explorer. Sorry I'm not sure why exatly. Best thing to do is start a new thread in the help forum so it gets more attention.

This was what I tried last for alt and middle button:
Code:
#persistent
#InstallKeybdHook
#InstallMouseHook
return

*$!MButton::
MouseClick, Middle,,,,, D
Hotkey, *!MButton up, Label, On
Return

Label:
MouseClick, Middle,,,,, U
Hotkey, *!MButton up, Label, Off
Return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 18th, 2005, 5:01 pm 
ok, i will do that.

Thanks for the tip :D


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2009, 11:28 am 
Offline

Joined: February 14th, 2009, 9:52 am
Posts: 10
could you maybe post your solution for this. i have the exact same problems with remapping my mouse for 3ds max.

thank you

marco


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2009, 8:48 pm 
Offline

Joined: September 12th, 2005, 2:12 am
Posts: 190
It will probably need to be tweaked for the latest version of 3dsmax:

http://3dfolio.com/tools-tabletmax.php

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 14th, 2009, 9:07 pm 
Offline

Joined: February 14th, 2009, 9:52 am
Posts: 10
thank you very much, i´ll check it out. i am a 90% wacom user, too :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: September 8th, 2010, 1:33 pm 
Hi!
I'm trying to change Kahz script to make navigation in 3ds max more like a Modo.
The only change i need to do is to set Alt+Shift+LButton for pan.
But when i change +LButton:: to !+LButton:: it stops working at all!
Please help me!


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 45 posts ]  Go to page Previous  1, 2, 3

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Bing [Bot], rbrtryn, SKAN and 60 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group