keyboard problem

hello
when I write in listener :
----------
kbb = getKBChar()
case kbb of
(
"a": print "ok"
)
-----------
it is ok , but when I want to run these lines in a ".ms" it don't work...
Anybody can explain ? Thanks.

Comments

Comment viewing options

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

not good one

something like...
while not keyboard.controlPressed do OK
..will lock the script to wait and do nothing until you press Control key. But their only 4 keys monitored (Ctrl, Alt, Shift, Esc) and its a cripple solution at all.

my recent MAXScripts RSS (archive here)

titane357's picture

Thanks Anubis, it was a bad

Thanks Anubis, it was a bad idea... (in max)

titane357's picture

ok, understand = I need to

ok, understand = I need to click in the listener...
Is there a way in maxscript to wait a key to be pressed and call a tool accordind to the pressed key ?

Comment viewing options

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