File: conf-server.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 (575 lines) | stat: -rw-r--r-- 23,022 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
<!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>Configuration file format: Server mode</h1>

	<h2>Configuration file examples</h2>

	</p>
        <p>You may find some predefined <a href="conf-server-ex.html">configuration files</a> in cfg-data/Server-mode and 
        cfg-data/Bemused-emulation directories. 
        After investigation of these configuration files You became more familiar with its format.
	
	<h2>Format description</h2>

<p><b>Comments</b><p>Line starting with a <b>%</b> considered as a comment line.       
<ul type="disc"><pre class="screen">
<span><strong class="command">%This is comment</strong></span>
</pre>
</ul>

<p>Long command can be splitted into the several lines. You have to put backslash (<b>\</b>) as the <b>last</b>
character to continue a command to the next line.       
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Exec(echo "this is first line");\</strong></span>
<span><strong class="command">  Exec(echo "this is second line");</strong></span>
</pre>
</ul>

<br>
<p><h3>Parameters section</h3> 

<p><b>AutoRepeat=false</b> <p>
Auto repeat feature (as on PC keyboard - about 10 events per second). Usefull for mouse emulation, for example.
Default value is false.
<p><b>Baudrate=19200</b> <p>Baudrate to use; default value is 19200. Used mainly in AT mode.

<p><b>Device=bluetooth:19</b> <p>Connect string. Default value is bluetooth:19.<p>
If anyRemote works as server correct value for <b>Device</b> could be:
<ul type="disc">
<pre>
<li><b>Device=bluetooth:"channel"</b>or just <b>Device=bluetooth</b> (to choose first available channel).
<li><b>Device=socket:"port"</b> or 
<li><b>Device=ilirc:/path/to/socket_file</b>
<li><b>Device=local:/dev/ircommX</b>
<li><b>Device=stdin</b>
</pre>
</ul>

<p><b>Log=true|false|debug</b> 
<p>Print or not to print logging info to the file <i>$HOME/.anyRemote/anyremote.log</i>, default value is false.
Use <i>Log=debug</i> for verbose logging.
<p>By default all logging informationin will be stored in <i>$HOME/.anyRemote/anyremote.log</i> file.
This could be altered by setting <i>AR_TMPDIR</i> environment variable. 
If <i>AR_TMPDIR</i> environment variable is set then logging information will be printed to 
<i>${AR_TMPDIR}/anyremote.log.${USER}</i>

<p><b>Screen=true</b> 
<p>Send or don't send any commands (Set(status,...), Set(title,...), etc.) to the phone. 
Default value is false, so You must set it to true if plans to use anyRemote in Server mode.

<p><b>GuiAppName="application name"</b>
<p><b>GuiAppBinary="name of executable"</b>
<p><b>GuiAppRun="command do determine is application running or not; must returns OK or NOK"</b>
<p><b>GuiAppIcon="icon name"</b>
<p><b>GuiAppType=Application|Custom|Example</b>
<p>These parameters are used by GUI frontends only. 

<ul type="disc"><pre class="screen">
<span><strong class="command">GuiAppName=Amarok</strong></span>
<span><strong class="command">GuiAppBinary=amarok</strong></span>
<span><strong class="command">GuiAppRun=echo 'A=`dcop | grep amarok`; if [ "x$A" == "x" ]; then echo NOK; else echo OK; fi' | bash -f -s</strong></span>
<span><strong class="command">GuiAppIcon=amarok.png</strong></span>
<span><strong class="command">GuiAppType=Application</strong></span>
</pre>
</ul>
</p>

<br>
<p><h3>[Aliases] section</h3> 
<p>Format:
<p><b>Key_Code=New_alias</b>
<ul type="disc"><pre class="screen">
<span><strong class="command">1=One</strong></span>
<span><strong class="command">49=One</strong></span>
</pre>
</ul>
</p>
and then use "One" in <b>[Keys]</b> section instead of "1" or "49":
<ul type="disc"><pre class="screen">
<span><strong class="command">[Keys]</strong></span>
<span><strong class="command">One=Exec(echo "Hello world!");</strong></span>
<span><strong class="command">...</strong></span>
</pre>
</ul>

<br>
<p><h3>[Keys] section</h3>
<p> A short example:
<ul type="disc"><pre class="screen">
<span><strong class="command">[Keys]</strong></span>
<span><strong class="command">(Init)=Exec(kdialog --msgbox "Initialized");</strong></span>
<span><strong class="command">(Connect)=Exec(kdialog --msgbox "Connected")</strong></span>
<span><strong class="command">(Disconnect)=Exec(kdialog --msgbox "Disconnected")</strong></span>
<span><strong class="command">1=Exec(kdialog --msgbox 1)</strong></span>
<span><strong class="command">2=Exec(kdialog --msgbox 2)</strong></span>
<span><strong class="command">3=Exec(kdialog --msgbox 3)</strong></span>
<span><strong class="command">4=Exec(kdialog --msgbox 4)</strong></span>
<span><strong class="command">5=Exec(kdialog --msgbox 5)</strong></span>
<span><strong class="command">[End]</strong></span>
</pre>
</ul>
 
<p>Format:
<p><b>Key_Codes=Command1;Command2;Command3;....</b>
<p>Where <b>CommandX</b> could be:
<ul>
<li>Exec(...);</li>
<li><a href="emulate.html">Emulate(...);</a></li>
<li>Exit;</li>
<li>SetMode(...); <i>deprecated, use Make(mode,....)</i></li>
<li>Macro(...);</li>
<li><a href="make.html">Make(...);</a></li>
<li><a href="set.html">Set(...);</a></li>
<li><a href="set.html">ExecAndSet(...);</a></li>
<li>Timer(...);</li>
<li>Load(...);</li>
<li>Include(...);</li>
<li>Send(...);</li>
<li>ExecAndSend(...);</li>
<li>Get(...);</li>
</ul>

<p><b>Exec() command</b>

<ul type="disc"><pre class="screen">
<span><strong class="command">1=Exec(kdialog --msgbox 1)</strong></span>
<span><strong class="command">2=Exec(kdialog --msgbox 2)</strong></span>
</pre>
</ul>
<p></p>

<p>It is possible to define multi-key commands
<ul type="disc"><pre class="screen">
<span><strong class="command">3 1=Exec(kdialog --msgbox 3_1)</strong></span>
<span><strong class="command">3 2=Exec(kdialog --msgbox 3_2)</strong></span>
<span><strong class="command">3 3 1=Exec(kdialog --msgbox 3_3_1)</strong></span>
</pre>
</ul>
<p></p>

<p>It is not good idea to define:
<ul type="disc"><pre class="screen">
<span><strong class="command">3 3=Exec(kdialog --msgbox 3_3)</strong></span>
<span><strong class="command">3 3 1=Exec(kdialog --msgbox 3_3_1)</strong></span>
</pre>
</ul>
<p></p>
<p>simultaneously, since only one command will works (which one - depends on search order). 

<p>It is possible to group keymappings in so-called "mode" to set more than one command to the key:

<ul type="disc"><pre class="screen">
<span><strong class="command">1=Exec(kdialog --msgbox 1)</strong></span>
<span><strong class="command">2=Exec(kdialog --msgbox 2)</strong></span>
<span><strong class="command">[Mode]=1</strong></span>
<span><strong class="command">1=Exec(kdialog --msgbox 1_in_Mode_1)</strong></span>
<span><strong class="command">2=Exec(kdialog --msgbox 2_in_Mode_1)</strong></span>
<span><strong class="command">[ModeEnd]</strong></span>
<span><strong class="command">[Mode]=2</strong></span>
<span><strong class="command">1=Exec(kdialog --msgbox 1_in_Mode_2)</strong></span>
<span><strong class="command">2=Exec(kdialog --msgbox 2_in_Mode_2)</strong></span>
<span><strong class="command">[ModeEnd]</strong></span>
</pre>
</ul>
<p>
If current mode is not default mode <i>(see <b>SetMode()</b> command)</i>, then firstly key 
will be searched in current mode and if not found then it will be searched in default mode.
As a result it needs to use (EnterMode) and (ExitMode) <a href="conf-server.html#sec-events">"events"</a> very carefully in default mode. 
</p>

<p>It is possible to write quite complex commands inside <b>Exec()</b>, for example:
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Exec(echo 'D=`dcop | grep digikam`; if [ "x$D" == "x" ]; then digikam& else dcop $D MainApplication-Interface quit;' | bash -f -s)</strong></span>
</pre>
</ul>

<p><b>Macro() command</b>
<p>This command used to create new keymapping:
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Macro(Macro1)</strong></span>
<span><strong class="command">Macro1=Exec(kdialog --msgbox 1);Exec(kdialog --msgbox 2)</strong></span>
</pre>
</ul>

<p>Macro() command can contain condition:
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Macro(Macro2, if [ -f /tmp/file_name ]; then true; else false; fi; echo $?)</strong></span>
<span><strong class="command">Macro2=Exec(kdialog --msgbox "Condition is OK")</strong></span>
</pre>
</ul>
<p>Conditional Macro() will be execute only if a result of execution of command is equal to string "<b>0</b>". 
<p><b>Note</b>: In shells result code of command execution stored in <b>$?</b> environment variable.

<p>
<b>Set()</b>
<center>
<table style="text-align: left; width: 80%;" border="0" cellpadding="10" cellspacing="1">
  <tbody>
    <tr>
      <td style="vertical-align: center; text-align: left width=50%;">

These commands used to control and customize GUI of Java client. See detailed description <a href="set.html">here.</a>
<p>It is possible to change: 

<ul type="disc">
<pre>
<li>caption of screen 
<li>title and status fields
<li>arrange icons from predefined <a href="set-icons.html">icon set</a>, 
<li>change background and foreground color,
<li>change font size
<li>change icon layouts (skins)
<li>use internal vibrator of the phone
<li>set fullscreen mode
<li>set debug mode 
<li><a href="set-text.html">show text</a>  on the screen of cell phone
<li><a href="set-list.html">show list</a> on the screen of cell phone
<li>add custom <a href="set-menu.html">menus</a>
</pre>
</ul>
     </td>
      <td style="vertical-align: top; text-align: center; width=25%;"><img src="data/client-test.png" align="center" border="1"></td>
      <td style="vertical-align: top; text-align: center; width=25%;"><img src="data/file-manager2.png" align="center" border="1"></td>
    </tr>
     
  </tbody>
</table>
</center>

<b>ExecAndSet()</b> 
<p>Format: ExecAndSet(tag,command) 
<p>This command similar to the Set(), but uses the output of command specified as a string to set GUI 
elements of Java client specified in tag field. See detailed description <a href="set.html">here.</a>
<ul type="disc"><pre class="screen">
<span><strong class="command">5=ExecAndSet(title,dcop amarok player nowPlaying);</strong></span>
<span><strong class="command">6=ExecAndSet(status,date)</strong></span>
</pre>
</ul>
<p></p>

<b>Timer()</b>
<p>Format: Timer(key, timeout, maxTimes) or
<p>Timer(key, cancel|pause|continue)
<p>This command sets/removes a timer for the <b>key</b> specified. A command sequence, associated with this 
<b>key</b> will be executed periodically. 
<p>For example, the following commands run 'dcop amarok player nowPlaying' command 2 times with timeout equal to 5 sec 
and set result to the title field of Java client:
<ul type="disc"><pre class="screen">
<span><strong class="command">7=Timer(TimerCmd, 5, 2)</strong></span>
<span><strong class="command">TimerCmd=ExecAndSet(title, dcop amarok player nowPlaying)</strong></span>
</pre>
</ul>

<p>The following command run 'date' command every 10 sec and set result to 
the status field of Java client:
<ul type="disc"><pre class="screen">
<span><strong class="command">8=Timer(Timer2, 10, 0)</strong></span>
<span><strong class="command">Timer2=ExecAndSet(status, date)</strong></span>
</pre>
</ul>
<p>It is impossible to have two active timer commands with the same <b>key</b>.
</p>

To delete existing timer use the following command:
<ul type="disc"><pre class="screen">
<span><strong class="command">9=Timer(TimerName,cancel)</strong></span>
</pre>
</ul>
Also, see <a href="set.html#data-caching">note</a> about data caching.
<p></p>

<p><b>Load() command</b>
<p>This command used to load commands from file and execute them:
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Load(file_name.cmds)</strong></span>
</pre>
</ul>

<p><b>Include() command</b>
<p>This command used to include definitions from external configuration file:
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Include(xmms.cfg))</strong></span>
</pre>
</ul>
Only [Keys], [Aliases] and [Alarms] sections will be loaded (Parameters section will not be loaded). 
Definitions from included file will not rewrite existing definitions if any. 
<p>

<b>Send()</b> 
<p>Format: Send(string, string_value) 
<p>or Send(byte, byte_value1, byte_value2,...) 
<p>Send to the Java client specified string or sequence of bytes. This command is used in Bemused server emulation.
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Send(string, simple_string)</strong></span>
</pre>
</ul>
<p>byte_valueX is string representation of 1 - 255 values. Send(byte, ...)  command sends to the Java client 
specified bytes of data, one by one. Mainly this command is used to Bemused server emulation.
<ul type="disc"><pre class="screen">
<span><strong class="command">2=Send(bytes,35,42,0)</strong></span>
</pre>
</ul>
<p></p>

<b>ExecAndSend()</b> 
<p>Format: ExecAndSend(tag,command) 
<p>This command similar to the Send(tag, ...), but uses the output of command specified as a string to send. So, 
it is possible to execute dynamically created command.
This command is used in Bemused server emulation. 
<ul type="disc"><pre class="screen">
<span><strong class="command">3=ExecAndSend(string,date)</strong></span>
<span><strong class="command">4=Exec(echo "Set(title,dynamic title)">/tmp/command.txt);ExecAndSend(string,cat /tmp/command.txt)</strong></span>
</pre>
</ul>
<p></p>

<div><a name="sec-get"></a></div>
<b>Get()</b> 
<p>Format: Get(screeen_size|cover_size|model) or 
<p>Get(is_exists,16|32,_icon_name_)
<p>This command used to retrieve from phone some information.
<ul type="disc"><pre class="screen">
<span><strong class="command">3=Get(screeen_size)</strong></span>
<span><strong class="command">4=Get(model)</strong></span>
<span><strong class="command">5=Get(is_exists,16,next)</strong></span>
<span><strong class="command">6=Get(cover_size)</strong></span>
</pre>
</ul>
Get(screeen_size) used to get screen size of cell phone. As a response to this command two replies will be send: 
SizeX(width,) and SizeY(height,). SizeX(width,) reply will be the first one.
<p>Get(model) used to get "microedition.platform" property of Java client. For many phones this property contains 
manufacturer and model number (like "SonyEricssonK750i/R1CA021" for SE-K750). As a response to this command Model(,_string_)
reply will be send.
<p>Get(is_exists,...) used to determine was icon with given name and size uploaded to phone or not. As a response to this command IconExists(_icon_name_,) or 
IconNotExists(_icon_name_,) reply will be send.
<p>Get(cover_size) used to determine maximalsize of cover image which can be shown by <b>Set(cover, ...)</b> command. As a response to this command one reply will be send: 
CoverSize(_size_,)
<p></p>

<b>Make()</b> 
<p>Format: Make(flush|disconnect|mode|remote|var[,....])
<p>This command used control local state of anyRemote.
<ul type="disc"><pre class="screen">
<span><strong class="command">0=Make(flush)</strong></span>
<span><strong class="command">1=Make(mode,mode_2)</strong></span>
<span><strong class="command">2=Make(remote,on)</strong></span>
<span><strong class="command">3=Make(var,my_var,date)</strong></span>
</pre>
</ul>
See detailed description <a href="make.html">here</a>.
<p></p>

<b>Exit</b> 
<p>Exit command used to exit from application.

<ul type="disc"><pre class="screen">
<span><strong class="command">#=Exit;</strong></span>
</pre>
</ul>
<p></p>

<b>SetMode()</b> 
<p>Change current keymapping group (do not mix this with AT/Server mode !).
<p>
<ul type="disc"><pre class="screen">
<span><strong class="command">*=SetMode(xmms)</strong></span>
<span><strong class="command">1=Exec(kdialog --msgbox "1 is pressed")</strong></span>
<span><strong class="command">[Mode]=xmms</strong></span>
<span><strong class="command">1=Exec(xmmsctrl play)</strong></span>
<span><strong class="command">[ModeEnd]</strong></span>
</pre>
</ul>
Alse see description of (EnterMode) and (ExitMode) event handlers below.
<p></p>

<br>
<div><a name="sec-events"></a></div>
<p><h3>There are several "events" could be triggered:</h3>

<p>(Init) event will be fired when anyRemote is initialized:
<ul type="disc"><pre class="screen">
<span><strong class="command">(Init)=Exec(kdialog --msgbox "Initialized")</strong></span>
</pre>
</ul>
<p></p>

<p>(Exit) event will be fired when anyRemote is exiting:
<ul type="disc"><pre class="screen">
<span><strong class="command">(Exit)=Exec(rm -f /tmp/tmp.log)</strong></span>
</pre>
</ul>
<p></p>

<div><a name="sec-connect"></a></div>
<p>(Connect) event will be fired when connection established:
<ul type="disc"><pre class="screen">
<span><strong class="command">(Connect)=Exec(kdialog --msgbox "Connected now")</strong></span>
</pre>
</ul>
<p></p>

<p>(Disconnect) event will be fired when connection is lost:
<ul type="disc"><pre class="screen">
<span><strong class="command">(Disconnect)=Exec(kdialog --msgbox Disconnected)</strong></span>
</pre>
</ul>
<p></p>

<p> Auto-lock example:
<ul type="disc"><pre class="screen">
<span><strong class="command">(Connect)=Exec(killall kdesktop_lock)</strong></span>
<span><strong class="command">(Disconnect)=Exec(kdesktop_lock --forcelock)</strong></span>
</pre>
</ul>

<p> Incoming call handling. Possibly works for some of JSR-82 capabled phones. But it works at least for 
SE-K750 and Motorola RIZR Z3.
<ul type="disc"><pre class="screen">
<span><strong class="command">(InCall)=Exec(kdialog --msgbox "Incoming call")</strong></span>
</pre>
</ul>
<p></p>

<p> End of call handling. Not sure it will works for all JSR-82 capabled phones. But it works at least for 
SE-K750 and Motorola RIZR Z3.
<ul type="disc"><pre class="screen">
<span><strong class="command">(EndCall)=Exec(kdialog --msgbox "Call ends")</strong></span>
</pre>
</ul>
<p></p>

<p> Auto-mute example (amixer utility should be installed):
<ul type="disc"><pre class="screen">
<span><strong class="command">(InCall)=Exec(amixer sset Master,0 mute);Make(remote,off)</strong></span>
<span><strong class="command">(EndCall)=Make(remote,on);Exec(amixer sset Master,0 unmute)</strong></span>
</pre>
</ul>

<p>If mode is changed by SetMode() then (ExitMode) event for current keymapping group and (EnterMode) event for 
the new keymapping group will be fired:
<ul type="disc"><pre class="screen">
<span><strong class="command">*=SetMode(XMMS)</strong></span>
<span><strong class="command">(ExitMode)=Exec(kdialog --msgbox "Exiting from current mode")</strong></span>
<span><strong class="command">[Mode]=XMMS</strong></span>
<span><strong class="command">% Do some initialization steps</strong></span>
<span><strong class="command">(EnterMode)=Exec(kdialog --msgbox "Enter to XMMS mode");Exec(xmms)</strong></span>
<span><strong class="command">% Do some cleanup steps</strong></span>
<span><strong class="command">(ExitMode)=Exec(kdialog --msgbox "Exiting from XMMS mode");Exec(killall xmms)</strong></span>
<span><strong class="command">[ModeEnd]</strong></span>
</pre>
</ul>
<p></p>

<br>
<div><a name="sec-vsubstitution"></a></div>
<p><h3>Variable substitution:</h3>

<p>In Exec(), ExecAndSet(), Make(var,...), Load(), Include() commands is it possible to use several predefined internal "variables".

<p>Current mode be substituted instead of $(Mode):
<ul type="disc"><pre class="screen">
<span><strong class="command">3=SetMode(xmms);Exec(kdialog --msgbox "New mode is $(Mode)")</strong></span>
</pre>
</ul>
<p></p>

<p>Directory in which resides used configuration file will be substituted instead of $(CfgDir):
<ul type="disc"><pre class="screen">
<span><strong class="command">3=ExecAndSet(list,replace,Cfg Files,ls -1 $(CfgDir))</strong></span>
</pre>
</ul>
<p></p>

<p>There are $(Param) and $(Index) variables defined in handling command issued from Java Client <a href="set-menu.html">menus</a>.
Use <b>$$</b> inside braces to specify parametrized commands.
<ul type="disc"><pre class="screen">
<span><strong class="command">Choose($$)=Exec(xmmsctrl track $(Index));Exec(kdialog --msgbox "Selected track is $(Param)")</strong></span>
</pre>
</ul>
<p></p>

<p>In addition to the predifined internal variables it is possible to define custom internal variables with 
<a href="make.html">Make(var,....)</a> syntax.

<br>
<h3>[Alarms] section</h3> 
<p> Format:
<p><b>Alarm_file=command1;command2;...</b>

<p>When file Alarm_file will be created, then command1, command2 ... will be executed.
<ul type="disc"><pre class="screen">
<span><strong class="command">/tmp/alarm1=Set(status,"xmms was stopped")</strong></span>
</pre>
</ul>
<p></p>
        
</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>

<p class="section">Server mode</p>
<ul>
<li><a href="setup-server.html">Setup: server mode</a></li>
<li><a href="conf-server.html">Configurational file format: server mode</a></li>
<li><a href="conf-server-ex.html">Configurational file examples: server mode</a></li>
<li><a href="set.html">Set() command</a></li>
<li><a href="make.html">Make() command</a></li>
<li><a href="emulate.html">Emulate() command</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>