File: emulate.html

package info (click to toggle)
anyremote 4.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,236 kB
  • ctags: 819
  • sloc: ansic: 5,234; sh: 985; python: 86; makefile: 77
file content (104 lines) | stat: -rw-r--r-- 4,206 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <head>
    <link rel="stylesheet" type="text/css" href="data/default.css">
    <title>anyRemote - control PC with Bluetooth cell phone</title>
    <link rel="stylesheet" type="text/css" href="data/default.css">
    <link rel="icon" href="data/anyRemote32.png" type="image/png">
    <link rel="shortcut icon" href="data/anyRemote16.png" type="image/png" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="description" content="anyRemote project page - Bluetooth remote control tool">
  </head>


<body><div id="body">

	<h1>Emulate(...) command</h1>

	</p>This command used to emulate keyboard and mouse events.
        <p>
	
	<h2>Format description</h2>

<p>Emulate([_emulation_command_[,_params_]]....)
<p>Several examples:
<ul type="disc"><pre class="screen">
<span><strong class="command">0=Emulate(key,1)</strong></span>
<span><strong class="command">1=Emulate(mouse,3)</strong></span>
<span><strong class="command">2=Emulate(mousedown,1,mousermove,100,100,mouseup,1)</strong></span>
<span><strong class="command">3=Emulate(keydown,Control_L,key,c,keyup,Control_L)</strong></span>
</pre>
</ul>

<p>Emulation command can be the following:
<ul type="disc">
<pre>
<li>key, _key_          - emulate press and release button _key_ on keyboard</li>
<li>keyup, _key_        - emulate only release of button _key_ on keyboard</li>
<li>keydown, _key_      - emulate only press of button _key_ on keyboard</li>
<li>mouse, _button_     - emulate press and release of mouse button _button_ (1,2,3...)</li>
<li>mouseup, _button_   - emulate only release of mouse button _button_ (1,2,3...)</li>
<li>mousedown, _button_ - emulate only press of mouse button _button_ (1,2,3...)</li>
<li>mousedblclick       - emulate double click by left mouse button</li>
<li>mousemove,_x_,_y_   - emulate mouse moving to coordinates (_x_,_y_)</li>
<li>mousermove,_x_,_y_  - emulate mouse moving form current location by coordinates (_x_,_y_)</li>
<li>sleep,_msec_        - sleeps _msec_ microseconds before processing next emulation command</li>
</pre>
</ul>

<p>In single Emulate(...) command it is possible to use several emulation command:
<ul type="disc"><pre class="screen">
<span><strong class="command">3=Emulate(keydown,Control_L,key,c,keyup,Control_L)</strong></span>
</pre>
</ul>

Symbolic values for keys to emulate could be obtained from <b>/usr/X11/include/X11/keysymdef.h</b> file.
It needs to discard <b>XK_</b> prefix from keysym definition to use it in Emulate(...) command.
Mouse buttons (1-3) are numbered  from left to right.
</div>

<div id="sidebar">
<p class="section">Information</p>
<ul>
<li><a href="index.html">About</a></li>
<li><a href="dload.html">Download</a></li>
<li><a href="pre.html">Prerequisites</a></li>
<li><a href="docs.html">Documentation</a></li>
<li><a href="frontend.html">FrontEnds</a></li>
</ul>

<p class="section">Documentation</p>
<ul>
<li><a href="pre-setup.html">Before install</a></li>
<li><a href="install.html">Compilation and installation</a></li>
<li><a href="mode.html">Which mode to choose ?</a></li>
<li><a href="use.html">How to use anyRemote</a></li>
<li><a href="setup-server.html">Setup: Server mode</a></li>
<li><a href="setup-at.html">Setup: AT mode</a></li>
<li><a href="conf-server.html">Configurational file format: Server Mode</a></li>
<li><a href="conf-at.html">Configurational file format: AT Mode</a></li>
<li><a href="dcop.html">DCOP support</a></li>
<li><a href="web.html">Web interface</a></li>
<li><a href="faq.html">FAQ</a></li>
</ul>

</div>

<div id="hdr">
<div id="logo"><a href="index.html"><img src="data/anyRemote.png" alt="Home"></a></div>
<!--div id="banner"><img src="data/anyRemote.png" alt=""></div-->
<p class="none"></p>
<div id="hdrNav">
<a href="index.html">About</a> · 
<a href="dload.html">Download</a> · 
<a href="docs.html">Documentation</a> · 
<a href="frontend.html">FrontEnds</a> · 
<a href="contacts.html">Contacts</a> · 
</div>
</div>

<div id="copyright">
Maintained by <a href="mailto:anyremote&#64;mail&#46;ru">anyRemote</a><br>
</div>

</body></html>