SpaceBar key missing from SpecialKeys enum. Add it yourself....

Mar 11, 2009 at 6:35 AM

I did a minor change in WindowPlacement.cs to add Special Key for the SpaceBar key in the SpecialKeys enum as follow (the change has been highlighted in bold in last line). Hope its useful for guys who want to control the Control key through white. :) . This is a very basic thing, I thought, missing from white:

WindowPlacement.cs

 

public enum SpecialKeys

 

 

{

 

 

//http://pinvoke.net/default.aspx/user32/SendInput.html, http://delphi.about.com/od/objectpascalide/l/blvkc.htm

 

 

SHIFT = 0x10,

 

 

CONTROL = 0x11,

 

 

ALT = 0x12,

 

 

LEFT_ALT = 0xA4,

 

 

RIGHT_ALT = 0xA5,

 

 

RETURN = 0x0D,

 

 

RIGHT = 0x27,

 

 

BACKSPACE = 0x08,

 

 

LEFT = 0x25,

 

 

ESCAPE = 0x1B,

 

 

TAB = 0x09,

 

 

HOME = 0x24,

 

 

END = 0x23,

 

 

UP = 0x26,

 

 

DOWN = 0x28,

 

 

INSERT = 0x2D,

 

 

DELETE = 0x2E,

 

 

CAPS = 0x14,

 

 

F1 = 0x70,

 

 

F2 = 0x71,

 

 

F3 = 0x72,

 

 

F4 = 0x73,

 

 

F5 = 0x74,

 

 

F6 = 0x75,

 

 

F7 = 0x76,

 

 

F8 = 0x77,

 

 

F9 = 0x78,

 

 

F10 = 0x79,

 

 

F11 = 0x7A,

 

 

F12 = 0x7B,

 

 

PAGEUP = 0x21,

 

 

PAGEDOWN = 0x22,

 

 

PRINT = 0x2A,

 

 

PRINTSCREEN = 0x2C,

 

 

SPACE = 0x20,

 

}