%
% anyremote configuration file for  echo management.
%

% STATUS stable
% XTEST no
% SOUND no
% ENV no

GuiAppName=SonyEricsson test
GuiAppType=Example
GuiAppBinary=true
GuiAppProtocols=AT
GuiAppDesc=Simple example of configuration file. Tuned for Sony Ericsson phones.

[Protocol]=AT

(Init)=\
	Include($(CfgDir)/Utils/aliases-at.cfg);\
	Make(var,TwoWayComm,by_value,true);\
	Macro(CHECK_RFCOMM_DEVICE);\
	Make(var,ToMainMenu,by_value,:R);\
	Make(alarm,/tmp/alarm1,ALARM1);\
	Make(alarm,/tmp/alarm2,ALARM2);

(Connect)=\
	Exec(echo Connected)

(Disconnect)=\
	Exec(echo Disconnected)

c=Make(disconnect);
Cancel=Make(exit);

InCall($$)=\
	Exec(echo "A call from $(Param)");\
	Make(remote,off)

EndCall($$)=\
	Make(remote,on);\
	Exec(echo "Call finished")

* *=Exec(F="$(TmpDir)/anyrem.hlp";echo "Just press buttons and inspect results" > $F);\
	Macro(SHOW_HELP);
42 42=Exec(F="$(TmpDir)/anyrem.hlp";echo "Use example-sagem.cfg instead !" > $F);\
	Macro(SHOW_HELP);

1=Exec(echo 1);Make(var,message,by_value,1);Macro(SHOW_MSG);
2=Exec(echo 2);Make(var,message,by_value,2);Macro(SHOW_MSG);
3=Exec(echo 3);Make(var,message,by_value,3);Macro(SHOW_MSG);
4=Exec(echo 4);Make(var,message,by_value,4);Macro(SHOW_MSG);
5=Exec(echo 5);Make(var,message,by_value,5);Macro(SHOW_MSG);
6=Exec(echo 6);Make(var,message,by_value,6);Macro(SHOW_MSG);
7=Exec(echo 7);Make(var,message,by_value,7);Macro(SHOW_MSG);
8=Exec(echo 8);Make(var,message,by_value,8);Macro(SHOW_MSG);
9=Exec(echo 9);Make(var,message,by_value,9);Macro(SHOW_MSG);
0=Exec(echo 0);Make(var,message,by_value,0);Macro(SHOW_MSG);
%*=Exec(echo Star);
#=Exec(echo "#");\
	Make(var,message,by_value,Hash);\
	Macro(SHOW_MSG);
	
:J=Exec(echo J_Push)
<=Exec(echo J_Left)
>=Exec(echo J_Right)
^=Exec(echo J_Up)
v=Exec(echo J_Down)
:O=Exec(echo Online)
:C=Exec(echo FhotoK700)
u=Exec(echo LeftSidePlus)
d=Exec(echo LeftSideMinus)
:R=Exec(echo Return)
%c=Exec(echo C)          ---used as disconnect key
[=Exec(echo Soft_Left)
]=Exec(echo Soft_Right)
%L=Exec(echo SwitchOff)  ---used as Exit key

% Several keys from K750
%p=Exec(echo SwitchOff)  ---used as Exit key
:F=Exec(echo PhotoFokusK750)
%:C :F=Exec(echo "PhotoK750")
:G=Exec(echo "Play/Stop")
:D=Exec(echo "MyLinks")

ALARM1=SendCKPD(* 1 *);Exec(echo "Alarm 1")
ALARM2=SendCKPD(* 2 *);Exec(echo "Alarm 2")

[End]
