Additional keyboard support?

Mar 25, 2009 at 4:10 PM
Is there any way I can press the space bar?

I can't find it as a special key in Core.WindowsAPI.KeyboardInput.SpecialKeys. Is there any other option available?

Thanks,
-Konstantin
Mar 25, 2009 at 4:20 PM
Oops, it seems
'-'. '+', '/', '*'
are also needed and are missing from the special keys enumeration.
Mar 27, 2009 at 1:25 AM
Edited Mar 27, 2009 at 1:25 AM
In your special Keys enum, please include the hex code for Space key.... It will look like the method below...

This link will give you all the details you need like +,-,/,* and so on...
http://delphi.about.com/od/objectpascalide/l/blvkc.htm

let me know if you need any help on this

public enum SpecialKeys
        {

            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
        }
Mar 27, 2009 at 2:10 PM
Even better why not just use the Key enum from .Net available at System.Windows.Input for details see - http://msdn.microsoft.com/en-us/library/system.windows.input.key.aspx