Copyright 6 Vista 7 new! Languages 8 Glovepie scripts 9

Download 489 Kb.
Size489 Kb.
1   ...   10   11   12   13   14   15   16   17   ...   30

Multiple Keyboards

You can read from multiple keyboards with GlovePIE, if you have Windows XP. You will probably need extra USB keyboards. Multiple keyboards are rare, and not especially useful. You can’t write to multiple keyboards, because I haven’t seen any programs other than mine that can tell which keyboard you used.
Just put a number after the word keyboard, like this:
midi.BassDrum1 = keyboard2.Enter
It uses RawInput instead of DirectInput for reading multiple keyboards, so sometimes you can get better or worse results just by changing one of your “keyboard”s to a “keyboard1” so that it uses RawInput instead. You only need to mention keyboard1 once in your script to force it to use RawInput. RawInput will conflict with some exclusive-mode DirectInput software.
You can tell how many keyboards there are with Keyboard.Count. You can tell whether a keyboard exists with Keyboard2.Exists.

Keys that can’t be used

F Lock

The (stupid bloody) F Lock key can’t be read or simulated. It doesn’t send information to the computer when pressed. It just changes what the other keys do.

My Documents

The My Documents key doesn’t seem to have a scan-code or an AppCommand, so it is not useable with GlovePIE.


The Messenger key doesn’t seem to work with GlovePIE.

Sleep, LogOff, Power

The Sleep, LogOff and Power keys shouldn’t be used because they turn everything off. Which kind of makes responding to them pointless. But the Sleep key does actually work in GlovePIE.

Acer Laptop special keys

Most of the Acer Laptop special keys don’t work, or only work sometimes. Including the envelope, Saturn, P, and e special keys; the media keys (FB, FF, MediaStop, PlayPause, VOL-, VOL+); the increase/decrease brightness keys, and the ?, Fn+F2, Fn+F3, Fn+F4, Fn+F5, Fn+F6, and Fn+F7. On the other hand, the Mute key (Fn+F8) works, but only triggers for a short while once you release it. The other VolumeUp and VolumeDown keys work fine (Fn+Up, Fn+Down), unlike their VOL- and VOL+ equivalents.

Keys that sort of work

You can use the multimedia keys, and application keys, but they may not work as well as other keys. You can’t usually tell how long they are held down. You can’t tell how long the Pause key was held down either.

Unicode Characters

You can also simulate Unicode characters. This allows you to make typing programs for other languages, or to type special symbols or letters.
The possible values are the word “Unicode” followed by the four hexadecimal digits for that character. See for tables. For example, to type the Greek letter alpha when the user presses the joystick button:
key.Unicode03B1 = joystick.button1
This may not work on all programs or on all operating systems.

The TypeUnicode command also send a string of characters by the same method. Although those characters sent by TypeUnicode can currently only be Ansi characters since GlovePIE strings are still Ansi. But they will be sent via the same Unicode messages.

Number Keys

The main number keys, with the symbols above them (eg. 1!, 2@, 3#, 4$ ) are named:

one”, “two”, “three”, “four”, etc.

Key.One = Joystick.Button1
The other number keys, on the numeric keypad, are named NumPad1, NumPad2, NumPad3, NumPad4, etc.
Most other keys are named according to what they have written on them.

Top Row


F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24

PrintScreen, SysReq, Pause, Break, ScrollLock
NOTE: Pause should not be confused with the new Play and Pause keys for music players. This Pause is the original Pause key that has been on every keyboard since the beginning. The new Pause key is called MediaPause.
This Pause key (and coincidently also the MediaPause one) doesn’t usually tell you when it is released. Which means GlovePIE will guess.
SysReq and Break used to be separate keys. Then the Break key got moved onto NumLock. Then the Break key got moved again onto Pause. Then the SysReq got moved onto PrintScreen. But the computer still regards them as separate keys. Break is Ctrl+Pause and SysReq is Alt+PrintScreen.

Number Row

Console, One, Two, Three, Four, Five, Six, Seven, Eight, Nine, Zero, Minus, Equals, Backslash, Backspace

Qwerty Row

Tab, Q, W, E, R, T, Y, U, I, O, P, LeftBracket, RightBracket, Backslash

Next Row

CapsLock, A, S, D, F, G, H, J, K, L, Semicolon, Apostrophe, Enter

Next Row

LeftShift, Z, X, C, V, B, N, M, Comma, Dot, Slash, RightShift

Space Bar Row

LeftCtrl, LeftWindows, LeftAlt, Space, RightAlt, RightWindows, AppMenu, RightCtrl
The AppMenu key is the pointless key with a picture of a menu that works like the right mouse button.

Don’t assume keyboards have a RightWindows keys. New ones only have LeftWindows.

Cursor Pad

NOTE!!!! The End key is tricky because it is also part of the GlovePIE language. Using Key.End is probably least confusing.
Home, End, PageUp, PageDown, Insert, Delete

Up, Down, Left, Right

Numeric Key Pad

NumLock, Divide, Multiply, NumPadMinus

NumPad7, NumPad8, NumPad9, NumPadPlus

NumPad4, NumPad5, NumPad6, NumPadPlus

NumPad1, NumPad2, NumPad3, NumPadEnter

NumPad0, NumPadDot, NumPadEnter

Share with your friends:
1   ...   10   11   12   13   14   15   16   17   ...   30

The database is protected by copyright © 2019
send message

    Main page