Hotkeys / Keyboard + MaxScript

Hello,

I need to use hotkeys to control my script. So my question is: How can i create an event/events for hotkeys?
For example: 'When i push the "S" button: MessageBox "You pushed the S button" ...'

Thanks your answer(s) in advance!

Matyrix

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Matyrix's picture

Thanks the answers! I will

Thanks the answers! I will try the mentioned solutions.
But as you said Anubis, maybe the dotNet contains better solutions, i will search for them.

Anubis's picture

MaxScript don't give you

MaxScript don't give you access to all hotkeys. You can use Alt, Shift, Control and Escape, plus mouse buttons (in mouse tools). To use other hotkey you need to create macroScript and assign a hotkey, but you ask for event handler so maybe dotNet will help in this issue...

my recent MAXScripts RSS (archive here)

Marco Brunetta's picture

You can simply create a

You can simply create a macroscript that does whatever you want the key to do, and the assign that macroscript to that key trough the user interface configuration.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.