PDA

View Full Version : Is that posibly to use keyboard shift and control at the same time to run something!


fajar
07-16-2009, 10:18 PM
Hay guys all I just want to ask, is that posible to use keyboard.control and keyboar shift to run something after al keyboard assigned

=====================================================================
)
rollout kop ""
(
button btn1 "X" post:[0,0] width: 50 height:50

on btn1 pressed do
if keyboard.controlPressed then
(
bla..bla..
)
else
if keyboard.shiftPressed then
(
bla..bla..
)
else
if keyboard.altPressed then
(
bla..bla..
)
else
if keyboard.escPressed then
(
bla..bla..
)
else
if keyboard.controlPressed and keyboard.shiftpressed then
(
bla..bla..
)
)
createDialog kop
)
=====================================================================

is that posible to run something if keyboard control and shift pressed!!? I already tried the script on my on compi but I found if all keyboard already assign, the combination of it can't running the function, is that I do something wrong? or something I must do to make it work!! like register the button maybe? or something missing here!

denisT
07-16-2009, 10:31 PM
Hay guys all I just want to ask, is that posible to use keyboard.control and keyboar shift to run something after al keyboard assigned

=====================================================================
)
rollout kop ""
(
button btn1 "X" post:[0,0] width: 50 height:50

on btn1 pressed do
if keyboard.controlPressed and not keyboard.shiftPressed then
(
bla..bla..
)
else
if keyboard.shiftPressed and not keyboard.controlPressed then
(
bla..bla..
)
else
if keyboard.altPressed then
(
bla..bla..
)
else
if keyboard.escPressed then
(
bla..bla..
)
else
if keyboard.controlPressed and keyboard.shiftpressed then
(
bla..bla..
)
)
createDialog kop
)
=====================================================================

is that posible to run something if keyboard control and shift pressed!!? I already tried the script on my on compi but I found if all keyboard already assign, the combination of it can't running the function, is that I do something wrong? or something I must do to make it work!! like register the button maybe? or something missing here!


now it's posible...

or call "if keyboard.controlPressed and keyboard.shiftpressed then" first...

fajar
07-16-2009, 11:17 PM
Thanks den..now I know .. maxscript is always pain make me dizzy even this small problem!! to tell you to know I'm not from programmer background!! so AND NOT bla...bla...bla is the key!! maxscript....maxscript!! hehehe...


thank for the answer and advise!!

CGTalk Moderation
07-16-2009, 11:17 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.