August 29, 2003
Version 2.8.0
--Fixed a bug with the default BattleField 1942 launch path
--Fixed a bug with EVE Online not being compatible. (Note: Some have reported that you need to bring up the XU Task bar before you log into the game, this will be addressed in the next patch)
--Added the Scripting Plugin.
The scripting engine is now available, but it is still very buggy. However, we have released it anyway because we need some feedback on what features you would like to be added. Currently, the scripting engine allows for any VBScript (
www.microsoft.com/scripting) commands plus a few XU related ones as follows:
XUScriptHost.KeyDown(vkKey As Integer) 'Presses a key down
XUScriptHost.KeyUp(vkKey As Integer) 'Presses a key up
XUScriptHost.SendKeys(keys As String) 'Sends a string of keys. See Note below for special keys.
XUScriptHost.Sleep(ms As Integer) 'Sleep/Pause command
XUScriptHost.LMouseDown(x As Integer, y As Integer) 'Presses the Left Mouse button Down
XUScriptHost.LMouseUp(x As Integer, y As Integer) 'Releases the Left Mouse Button
XUScriptHost.RMouseDown(x As Integer, y As Integer) 'Right Mouse Button Down
XUScriptHost.RMouseUp(x As Integer, y As Integer) 'Right Mouse Button Up
XUScriptHost.MMouseDown(x As Integer, y As Integer) 'Middle Mouse Button Down
XUScriptHost.MMouseUp(x As Integer, y As Integer) 'Middle Mouse Button Up
XUScriptHost.MouseMove(x As Integer, y As Integer) 'Move the Mouse Pointer
XUScriptHost.GetPixelColor(x As Integer, y As Integer) As Long 'The RGB() color of the pixel as x,y
We will be posting more example code this weekend on how to use the scripts. Also, we will be installing a script install mechanism to help with the installing/uninstalling of scripts.
Note: Here are the available special keys for use with the SendKeys function:
BACKSPACE {BACKSPACE}, {BS}, or {BKSP}
BREAK {BREAK}
CAPS LOCK {CAPSLOCK}
DEL or DELETE {DELETE} or {DEL}
DOWN ARROW {DOWN}
END {END}
ENTER {ENTER} or ~
ESC {ESC}
HELP {HELP}
HOME {HOME}
INS or INSERT {INSERT} or {INS}
LEFT ARROW {LEFT}
NUM LOCK {NUMLOCK}
PAGE DOWN {PGDN}
PAGE UP {PGUP}
PRINT SCREEN {PRTSC}
RIGHT ARROW {RIGHT}
SCROLL LOCK {SCROLLLOCK}
TAB {TAB}
UP ARROW {UP}
F1 {F1}
F2 {F2}
F3 {F3}
F4 {F4}
F5 {F5}
F6 {F6}
F7 {F7}
F8 {F8}
F9 {F9}
F10 {F10}
F11 {F11}
F12 {F12}
F13 {F13}
F14 {F14}
F15 {F15}
F16 {F16}
To send keyboard characters that are comprised of a regular keystroke in combination with a SHIFT, CTRL, or ALT, create a compound string argument that represents the keystroke combination. You do this by preceding the regular keystroke with one or more of the following special characters:
Key Special Character
SHIFT +
CTRL ^
ALT %
Note When used this way, these special characters are not enclosed within a set of braces.
To specify that a combination of SHIFT, CTRL, and ALT should be held down while several other keys are pressed, create a compound string argument with the modified keystrokes enclosed in parentheses. For example, to send the keystroke combination that specifies that the SHIFT key is held down while:
e and c are pressed, send the string argument "+(ec)".
e is pressed, followed by a lone c (with no SHIFT), send the string argument "+ec".