ScriptSpot

Forum topic · General Scripting

Hotkeys / Keyboard + MaxScript

By Matyrix · 2010-03-11

Description

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 (3)

Matyrix · 2010-03-12

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 · 2010-03-12

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...

Marco Brunetta · 2010-03-12

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.