<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>anyRemote · Control your computer with your phone</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> <meta name="description" content="anyRemote project page - Bluetooth remote control tool" /> <link rel="stylesheet" href="data/master.css" type="text/css" media="all" title="Default Style" charset="utf-8" /> <script src="data/effects.js" type="text/javascript" charset="utf-8"></script> <link rel="alternate" title="Feed" href="data/feed.xml" type="application/rss+xml" /> <link rel="icon" href="data/logo-favicon.png" type="image/png" /> <link rel="shortcut icon" href="data/logo-favicon.png" type="image/png" /> </head> <body id="docs"> <a class="skip" name="top"> </a> <a class="skip" href="#content">Skip to content</a> <div id="head"> <div id="logo"> <h1><a href="index.html"><img src="data/logo-head.png" alt="logo" /> anyRemote</a></h1> </div> <div id="navigation"><div class="padding"> <a href="index.html"><span>About</span></a> <a href="frontend.html"><span>Screenshots</span></a> <a href="dload.html"><span>Download</span></a> <a href="docs.html" class="active"><span>Documentation</span></a> <a href="faq.html"><span>FAQ</span></a> <a href="contacts.html"><span>Contact</span></a> <a href="thanks.html"><span>Special Thanks</span></a> </div></div> </div> <div id="sidebar"><div class="padding"> <dl class="info"> <dt>Information</dt> <dd> <p>Please use the two sidebar boxes below to browse through the anyRemote Documentation!</p> </dd> </dl> <dl class="docs"> <dt>Documentation</dt> <dd> <ul> <li><a href="pre-setup.html">Before install</a></li> <li><a href="pre.html">Software prerequisites</a></li> <li><a href="install.html">Compilation and installation</a></li> <li><a href="mode.html">Which mode to choose ?</a></li> <li><strong>Setup</strong> <ul> <li><a href="setup-at.html">Setup: AT mode</a> <ul> <li><a href="event.html">Event reporting</a></li> <li><a href="ckpd-emulation.html">Keypad emulation events</a></li> </ul> </li> <li><a href="setup-server.html">Setup: Server mode</a></li> </ul> </li> <li><a href="use.html">How to use anyRemote</a> <ul> <li><a href="android-client.html">Android Client</a></li> <li><a href="use-jc.html">J2ME Client</a></li> <li><a href="web.html">Web Interface</a></li> <li><a href="cm-xml.html">XML Services Interface</a></li> <li><a href="cfg-howto.html">How to create simple configuration file</a></li> <li><a href="bemused.html">Bemused Support</a></li> <li><a href="iviewer.html">Command Fusion iViewer support</a></li> </ul> </li> <li><a href="devices.html">Tested devices</a></li> <li><a href="phones.html">Phone specific details</a></li> <li><a href="tips-tricks.html">Tips & tricks</a></li> <li><a href="man.html">Man page</a></li> </ul> </dd> </dl> <dl class="docs-advanced"> <dt>Advanced</dt> <dd> <ul> <li><a href="http://elpraga.bshellz.net/HOWTOstartanyRemoteatboottime.html">miniHOWTO: start anyRemote at boot time and create a multimedia computer</a> (externally maintained)</li> <li><strong>Format of configuration files</strong> <ul> <li><strong>Server mode</strong> <ul> <li><a href="conf-server.html">Configuration file format</a></li> <li><a href="conf-server-ex.html">Configuration file examples</a></li> <li><a href="set.html">Set(...) / ExecAndSet(...) commands</a></li> <li><a href="set-fm.html">Set(filemanager ... ) command</a></li> <li><a href="set-icons.html">Set(icons ...) command and available icon set</a></li> <li><a href="set-list.html">Set(list ... ) and Set(iconlist ... ) commands</a></li> <li><a href="set-menu.html">Set(menu ... ) command</a></li> <li><a href="set-parameter.html">Set(parameter, ... ) commands</a></li> <li><a href="set-text.html">Set(text ... ) command</a></li> <li><a href="set-window.html">Set(image ... ) command</a></li> </ul> </li> <li><strong>AT mode</strong> <ul> <li><a href="conf-at.html">Configurational file format</a></li> <li><a href="conf-at-ex.html">Configurational file examples</a></li> </ul> </li> <li><strong>Common</strong> <ul> <li><a href="make.html">Make(...) command</a></li> <li><a href="emulate.html">Emulate(...) command</a></li> <li><a href="dbus.html">Dbus(...) command</a></li> <li><a href="vars.html">Variable substitution</a></li> <li><a href="ev-handlers.html">Event handlers</a></li> <li><a href="icon-themes.html">Icon themes for J2ME client</a></li> </ul> </li> </ul> </li> <li><a href="ir.html">anyRemote and InfraRed</a></li> </ul> </dd> </dl> <dl class="contact"> <dt>Contact</dt> <dd> <p>We will be pleased for any questions, suggestions, patches and examples of configuration files!</p> <ul> <li>Post in the <a href="http://sourceforge.net/forum/?group_id=162923">Forum</a></li> <li>Please, send e-mails to <a href="mailto:anyremote@mail.ru">anyremote@mail.ru</a></li> </ul> </dd> </dl> <!--HOSTINGLOGO--> </div></div> <!-- sidebar --> <div id="content"><div class="padding"> <a class="skip" name="content"> </a> <h1>There are several "events" could be triggered</h1> <h2>Initialize event</h2> <p><strong>(Init)</strong> event will be fired when anyRemote is initialized.</p> <pre>(Init)=Exec(kdialog --msgbox "Initialized")</pre> <p>It is possible to customize handling of <strong>(Init)</strong> event. To do this, just add needed commands to <strong>$HOME/.anyRemote/hook_init</strong> file. That commands will be executed after all commands from <strong>(Init)</strong> event handler in configuration file. For example content of the <strong>$HOME/.anyRemote/hook_init</strong> can be the following:</p> <pre>Exec(kdialog --msgbox "Initialized")</pre> <h2>Exit event</h2> <p><strong>(Exit)</strong> event will be fired when anyRemote is exiting.</p> <pre>(Exit)=Exec(rm -f /tmp/tmp.log)</pre> <p>It is possible to customize handling of <strong>(Exit)</strong> event. To do this, just add needed commands to <strong>$HOME/.anyRemote/hook_exit</strong> file. That commands will be executed after all commands from <strong>(Exit)</strong> event handler in configuration file. For example content of the <strong>$HOME/.anyRemote/hook_exit</strong> can be the following:</p> <pre>Exec(kdialog --msgbox "Exiting")</pre> <h2>Connect event</h2> <p><strong><a name="sec-connect">(Connect)</a></strong> event will be fired when connection established.</p> <pre>(Connect)=Exec(kdialog --msgbox "Connected now")</pre> <p>It is possible to customize handling of <strong>(Connect)</strong> event. To do this, just add needed commands to <strong>$HOME/.anyRemote/hook_connect</strong> file. That commands will be executed after all commands from <strong>(Connect)</strong> event handler in configuration file. For example content of the <strong>$HOME/.anyRemote/hook_connect</strong> can be the following:</p> <pre>Exec(kdialog --msgbox "Connected")</pre> <h2>Disconnect event</h2> <p><strong>(Disconnect)</strong> event will be fired if connection is lost.</p> <pre>(Disconnect)=Exec(kdialog --msgbox Disconnected)</pre> <p>It is possible to customize handling of <strong>(Disconnect)</strong> event. To do this, just add needed commands to <strong>$HOME/.anyRemote/hook_disconnect</strong> file. That commands will be executed after all commands from <strong>(Disconnect)</strong> event handler in configuration file. For example content of the <strong>$HOME/.anyRemote/hook_disconnect</strong> can be the following:</p> <pre>Exec(kdialog --msgbox "Disconnected")</pre> <p><strong>Auto-lock example</strong></p> <pre>(Connect)=Exec(killall kdesktop_lock) (Disconnect)=Exec(kdesktop_lock --forcelock)</pre> <h2>Mode changing events</h2> <p>Mode is a group of key-to-command mapping <i>(do not mix this with AT/Server mode !)</i>.</p> <p>If mode is changed by <a href="make.html">Make(mode ...);</a> then <strong>(ExitMode)</strong> event for current keymapping group and <strong>(EnterMode)</strong> event for the new keymapping group will be fired:</p> <pre>*=Make(mode,XMMS) (ExitMode)=Exec(kdialog --msgbox "Exiting from current mode") [Mode]=XMMS % Do some initialization steps (EnterMode)=Exec(kdialog --msgbox "Enter to XMMS mode");\ Exec(xmms) % Do some cleanup steps (ExitMode)=Exec(kdialog --msgbox "Exiting from XMMS mode");\ Exec(killall xmms) [ModeEnd]</pre> <h2>Phone call handling</h2> <p><strong>Note for Server mode:</strong> This feature can not work for some of Android or JSR-82 capabled phones. It was tested successfully only with SE-K750 and Motorola-RIZR-Z3.</p> <h3>Incoming call</h3> <pre>InCall($$)=Exec(kdialog --msgbox "Incoming call from $(Param)")</pre> <p><strong>$(Param)</strong> variable will be set to caller ID, if determined.</p> <h3>Answering the call</h3> <p><i>[Android client only]</i>.</p> <pre>AnwerCall($$)=Exec(kdialog --msgbox "Answer to call from $(Param)")</pre> <p><strong>$(Param)</strong> variable will be set to caller ID, if determined.</p> <h3>End of call</h3> <pre>EndCall($$)=Exec(kdialog --msgbox "Call finished")</pre> <p>Auto-mute example (amixer utility should be installed):</p> <pre>InCall($$)=\ Exec(amixer sset Master,0 mute);Make(remote,off); EndCall($$)=\ Make(remote,on);Exec(amixer sset Master,0 unmute)</pre> </div></div> <!-- content --> <div id="foot"> <p>Maintained by <a href="mailto:anyremote@mail.ru">anyRemote</a>. Website by <a href="http://www.martinlettner.info">m.lettner</a>.</p> </div> </body> </html>