Notifications
Clear all
[Closed] keystrokes in dot net
Nov 04, 2014 3:44 pm
In c# the simplest way that you can do this is by:
(Keyboard.IsKeyDown(Key.RightCtrl)
http://msdn.microsoft.com/en-us/library/system.windows.input.keyboard.iskeydown.aspx
http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx
If you are using dotNet with maxscript you can do this.
myControl = dotNetClass "system.windows.forms.control"
if myControl.modifierKeys == myControl.modifierKeys.Control do print"CTRL is Pressed"
http://msdn.microsoft.com/en-us/library/system.windows.forms.control.modifierkeys(v=vs.110).aspx