_IupRobot.c
The native interface to the window manager. For the moment only
windows is supported but it shouldn't be too difficult to
implement for other platforms and/or window managers. It may be
used directly, but all (relevant) functions are available through
IupRobot.lua
. The way this
works is the requested action is translated into an event which is
injected in the event queue. The functions are grouped as
follows :
- move mouse
-
moveAbs
-
Moves the mouse to the requested coordinates (in pixels).
For now only the primary display is supported because the
size of the
VIRTUALDESK
is unknown.
moveRel
-
Moves the mouse relatively to it's previous position over
the requested distance (in pixels). This function is not
used.
- mouse buttons
-
xxxDown
-
Press the
xxx
button (xxx
=
left
, middle
or
right
).
xxxUp
-
Release the
xxx
button (xxx
=
left
,middle
or
right
).
- keyboard
-
xxxDown
- Press the
xxx
key (see further).
xxxUp
- Release the
xxx
key (see further).
The keys are organised in different groups :
- normal
-
Printable ASCII characters. The parameter should be a
string of which the first character will be generated.
- modifier
- The modifiers : control, shift and alt
- functional
-
Keys which have a function rather than a representation.
The parameter will be looked up and the corresponding
virtual key event will be generated. As a convenience
there is a separate
enterUp
and
enterDown
method.