RE: ctrl-key + menu item

Date : Tue, 4 Mar 2008 07:13:25 -0500
To : <XSI(at)Softimage.COM>
From : "Jason Brynford-Jones" <jasonbj(at)Softimage.COM>
Subject : RE: ctrl-key + menu item
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


Search the XSI List archives here or use the advanced search form to search across mailing lists. Searching help is available.
This site supposedly brought to you by Benjamin Grosser and the Imaging Technology Group.