File: make.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 (168 lines) | stat: -rw-r--r-- 6,165 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
<!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>Make(...) command</h1>

	</p>This command used to control local state of anyRemote.
        <p>
	
	<h2>Format description</h2>

<p>Make(exit|flush|disconnect|mode|none|remote|var[,....])
<p>Several examples:
<ul type="disc"><pre class="screen">
<span><strong class="command">0=Make(flush)</strong></span>
<span><strong class="command">1=Make(disconnect)</strong></span>
<span><strong class="command">2=Make(mode,mode_2)</strong></span>
<span><strong class="command">3=Make(remote,on)</strong></span>
<span><strong class="command">4=Make(var,my_var,date)</strong></span>
</pre>
</ul>

<br>
<b>Make(flush)</b> 
<p>This command used to flush all configuration information.
<ul type="disc"><pre class="screen">
<span><strong class="command">0=Make(flush)</strong></span>
</pre>
</ul>
It is guarantied what current command sequence will be executed till the end. This means what in the following command sequence both 
commands will be executed:
<ul type="disc"><pre class="screen">
<span><strong class="command">0=Make(flush);Set(title,all data flushed);</strong></span>
</pre>
</ul>
The typical use-case for <b>Make(flush)</b> is the following:
<ul type="disc"><pre class="screen">
<span><strong class="command">0=Make(flush);Include(/path/to/another/configurational/file);</strong></span>
</pre>
</ul>

<br>
<b>Make(disconnect)</b> 
<p>This command used to close connection to the device. In server mode after 5 seconds anyRemote
will be able to receive incoming connection. In AT mode anyRemote will try to reconnect to the pnone
after timeout specified by <b>RetrySecs</b> parameter (default value is 1 minute).
<ul type="disc"><pre class="screen">
<span><strong class="command">1=Make(disconnect)</strong></span>
</pre>
</ul>

<br>
<b>Make(exit)</b> 
<p>This command used to stop anyRemote and exit. It is a synonym to the "Exit" command.
<ul type="disc"><pre class="screen">
<span><strong class="command">#=Make(exit)</strong></span>
</pre>
</ul>

<br>
<b>Make(mode,...)</b> 
<p>Format: Make(mode,_mode_name_)
<p>Change current mode. It is synonym of SetMode(_mode_name_) command. 
As a side effect <b>(ExitMode)</b> and <b>(EnterMode)</b> <a href="conf-server.html#sec-events">"events"</a> can be executed.
<ul type="disc"><pre class="screen">
<span><strong class="command">2=Make(mode,_new_mode_)</strong></span>
</pre>
</ul>

<br>
<b>Make(remote,...)</b> 
<p>Format: Make(remote,on|off)
<p>Switch on/off command processing without disconnection from the phone.
<ul type="disc"><pre class="screen">
<span><strong class="command">2=Exec(amixer -c 0 sset Master,0 mute);Make(remote,off)</strong></span>
</pre>
</ul>

Take a look to the order of commands above. <b>Make(remote,off)</b> command is the last one. If You change order to 
<ul type="disc"><pre class="screen">
<span><strong class="command">2=Make(remote,off);Exec(amixer -c 0 sset Master,0 mute)</strong></span>
</pre>
</ul>
then Exec(amixer -c 0 sset Master,0 mute) will not be executed because "remote control" functionality will be 
switched off before it.

<br>
<br>
<b>Make(var,...)</b> 
<p>Format: Make(var,_var_name_,_command_to_execute_) or
<p>Format: Make(var,_var_name_,by_value,_value_) or
<p>Sets internal variable. To access to the previously set internal variable use $(_var_name_) syntax.
<ul type="disc"><pre class="screen">
<span><strong class="command">2=Make(mode,my_var1,echo "Hello")</strong></span>
<span><strong class="command">3=Make(mode,my_var2,by_value,world!)</strong></span>
<span><strong class="command">4=Exec(echo "Value is: $(my_var1) $(my_var2))</strong></span>
</pre>
</ul>
<p><b>Note</b>: There are collision of <b>$(_var_name_)</b> syntax and shell command substitution 
syntax <b>$(...)</b>. So, do not call Your internal variables with names which can be treated as shell commands.
<br>

<br>
<b>Make(none)</b> 
<p>Dummy command, does nothing.
<ul type="disc"><pre class="screen">
<span><strong class="command">0=Make(none)</strong></span>
</pre>
</ul>

</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>