Are you talking about scripting? In which case something like this...
Function GetKB
dim l_ModifierKey
GetKeyboardState , l_ModifierKey
if CBool(CByte(1) And CByte(l_ModifierKey)) then
GetKB = "SHIFT"
' LogMessage "Shift pressed"
elseif CBool(CByte(2) And CByte(l_ModifierKey)) then
' LogMessage "Ctrl pressed"
GetKB = "CTRL"
elseif CBool(CByte(4) And CByte(l_ModifierKey)) then
' LogMessage "Alt pressed"
GetKB = "ALT"
else
' LogMessage "No modifier key pressed."
end if
End Function
-----Original Message-----
From: owner-xsi(at)Softimage.COM [mailto:owner-xsi(at)Softimage.COM] On Behalf
Of todd akita
Sent: Tuesday, March 04, 2008 1:31 AM
To: XSI(at)Softimage.COM
Subject: ctrl-key + menu item
Hey list-
I'm having a moment of amnesia - there was/is (I'm pretty sure) a way
when invoking a command from a menu to detect if the control key was
held down when the command was being invoked.
What was it?
-T
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in
body:
unsubscribe xsi
---
Unsubscribe? Mail Majordomo(at)Softimage.COM with the following text in body:
unsubscribe xsi