• 沒有找到結果。

3. INTEGRATION GIB WITH HCI

3.1.4 Identifiers

The control commands can be classified as some sections according to their operation functions: “Selection commands,” “Setting commands, “Mouse action commands,”

“Keyboard action commands,” “File action commands” and “System action commands,” and will be described in the following sections.

3.1.4.2 Command parameter Square:

The “square” object is a graphical rectangle drawn by the user from the direction left-up to right-down at static desired location. The variable of square is associated with locations (integer, integer).

Coordinate:

The “coordinate” object is a graphical rectangle grid, which is auto-generated by the system, and drawn by the user from direction left-up to right-down at static desired location. The variable of each grid in the “coordinate” is associated with locations (integer, integer).

Stage:

The “stage” is a file that stores group sets of squares.

Grid:

The “grid” is a file that stores group sets of grids squares.

Number:

The “number” operand is an integer and used with commands “coordinate” or “loop.”

Text:

The “text” operand is a text string. It is used with command “sendkey” for emulating typing on the keyboard.

3.1.4.3 Connector Then:

The connector “then” is used for conjunction with statement x and statement y, and is delimited from one statement to others.

3.1.4.4 Terminator Times:

The terminator “times” is used as the end of loop command.

Separator Comma:

The separator “,” separates the coordinate x and y of grid.

3.1.4.5 Operators To:

The “to” operator is used for conjunction with the action or assignment commands. It is strictly used for commands “move,” “dragsquare” and “dragcoordinate,” for use with right operands of data “square x” and “coordinate x,” and for use with left operands of data

“square x” and “coordinate x”.

By:

The “by” operator is used for conjunction with the assignment commands. It is strictly used for commands “move,” “drag,” “dragsquare,” “dragcoordinate,” “click,”

“clicksquare” and “clickcoordinate,” for use with right operands of data “distance” and

“clicktype,” and for use with left operands of data “square x,” “coordinate x,” “direction”

and “pattern”.

Loop:

The “loop” operator is used for executing repeatedly pre-spoken commands for “munber”

times. Its left operand is always a command, and its right operand is always a “number”.

3.1.4.6 Constant parameters clickType:

The types of “clicktype” include: leftclick, rightclick and doubleclick. This “clicktype”

type is used for triggering a mouse click.

Distance:

The types of “distance” include: very short, short, normal, long and very long. This distance type is used for restricting the moving “distance” of mouse cursor.

Direction:

The types of “direction” include: east, west, south, and north, northeast, northwest,

southeast and southwest. This “direction” type is used for setting the moving direction of mouse cursor.

Pattern:

The types of geometric moving “pattern” include: triangle, square, pentagon, hexagon, octagon, curves, zigzag, and spiral. This “pattern” type is used for setting the moving manner of mouse cursor.

Speed:

The types of “speed” include: very slow, slow, normal, fast and very fast. This “speed”

type is used for restricting the moving speed of mouse cursor.

Boolean:

The types of “boolean” include: true and false. This “boolean” type is used for setting the command “setdrop”.

3.1.4.7 Selection commands selectApplication:

The “selectApplication” command is used for selecting an application program into the GIB system to execute.

selectStage:

The “selectStage” command is used for selecting a stage file and loading all its defined squares into the executing application.

selectGrid:

The “selectGrid” command is used for selecting a grid file and loading all its defined grids into the running application.

3.1.4.8 Setting commands setDragSpeed:

The “setdragspeed” command is used for setting the mouse cursor to move speed according to the parameter “speed”.

setDistance:

The “setDistance” command is used for setting the mouse cursor moving distance according to the parameter “distance”.

setDrop:

The “setDrop” command is used for disabling the drop of drag command according to the parameter “boolean”.

showGrid:

The “showGrid” command is used to show or hide defined grids according to the parameter “boolean”.

3.1.4.9 Mouse action commands Move:

The “Move” command is used for controlling the mouse cursor moving to the specified location, according to the parameters “direction” and “distance”. If the “distance” is omitted, it would follow the setting parameter via command “setDistance”

Drag:

The “Drag” command is used for dragging the mouse cursor moving to the specified location, according to the parameters “direction” and “distance”.

dragSquare:

The “dragsquare” command is used for dragging the specified square x moving to the specified location square y or coordinate x, according to the parameters

“direction” ,”distance” and “pattern”.

dragCoordinate:

The “dragCoordinate” command is used for dragging the specified coordinate x moving to the specified location coordinate y or square x, according to the parameters “direction,”

“distance” and “pattern”.

Click:

The “Click” command is used for triggering a mouse click under the current mouse position, according to the parameter “clicktype”.

clickSquare:

The “clickSquare” command is used for moving cursor to the specified square location first and then triggering a mouse click under the current position according to the parameter “clicktype”.

clickCoordinate:

The “clickCoordinate” command is first used for moving cursor to the specified coordinate location and secondly triggering a mouse click under the current coordinate position according to the parameter “clicktype”.

3.1.4.10 Keyboard action commands sendKey:

The “sendKey” command is used for emulating keyboard stroke, and is limited to the combination of number 0 to 9 and character “a” to “z”.

clearText:

The “clearText” command is used for emulating keyboard <Backspace> stroke once.

3.1.4.11 System action commands Send:

The “Send” command is a stand-along command and used for sending all the spoken commands to lexical translator, in order to analyze and process spoken commands.

clearConsole:

The “clearConsole” command is a stand-along command, and used for clearing all the spoken commands in the input command buffer.

undoPhrase:

The “undoPhrase” command is a stand-along command and used for deleting the preceding spoken command stored in the input command buffer.

storeCursor:

The “storeCursor” command is a stand-along command and used for storing the current cursor position into position buffer.

recoverCursor:

The “recoverCursor” command is a stand-along command and used for moving cursor to the previous stored position of mouse cursor from position buffer.

captureIt:

The “captureIt” command is a stand-along command and used for capturing the most front application program windows into the GIB interface system.

相關文件