%
% anyremote configuration file. Multi-mode example (Server-mode)
%

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

GuiAppName=Multimode test
GuiAppType=Example
GuiAppBinary=true
GuiAppProtocols=Server
GuiAppDesc=Simple example of how to use multiple modes.

[Protocol]=Server

(Init)=\
	Include($(CfgDir)/Utils/aliases-server.cfg);

(Connect)=\
	Set(title,);\
	Set(status,);\
	Set(icons,Multimode Example,\
		1,default,2,default,3,default,\
		4,default,5,default,6,default,\
		7,default,8,default,9,default,\
		*,question,0,default,#,default);\
	Set(menu,replace,Default,Mode1,Mode2,Mode3);

Cancel=Exit

Back=Set(text,close);
Default=Make(mode,default);
Mode1=Make(mode,1);
Mode2=Make(mode,2);
Mode3=Make(mode,3);

% Default mode
1=Exec($(CfgDir)/Utils/message.sh Default_1)
2=Exec($(CfgDir)/Utils/message.sh Default_2)
3=Exec($(CfgDir)/Utils/message.sh Default_3)
4=Exec($(CfgDir)/Utils/message.sh Default_4)
5=Exec($(CfgDir)/Utils/message.sh Default_5)
6=Exec($(CfgDir)/Utils/message.sh Default_6)
7=Exec($(CfgDir)/Utils/message.sh Default_7)
8=Exec($(CfgDir)/Utils/message.sh Default_8)
9=Exec($(CfgDir)/Utils/message.sh Default_9)
0=Exec($(CfgDir)/Utils/message.sh Default_0)

* * =Set(text,replace,Help,Just press buttons and inspect results\nUse menu to switch between modes)

[Mode]=1
(EnterMode)=Exec($(CfgDir)/Utils/message.sh "New mode is $(Mode)");Set(status, Mode 1);
1=Exec($(CfgDir)/Utils/message.sh Mode1_1)
2=Exec($(CfgDir)/Utils/message.sh Mode1_2)
3=Exec($(CfgDir)/Utils/message.sh Mode1_3)
4=Exec($(CfgDir)/Utils/message.sh Mode1_4)
5=Exec($(CfgDir)/Utils/message.sh Mode1_5)
6=Exec($(CfgDir)/Utils/message.sh Mode1_6)
7=Exec($(CfgDir)/Utils/message.sh Mode1_7)
8=Exec($(CfgDir)/Utils/message.sh Mode1_8)
9=Exec($(CfgDir)/Utils/message.sh Mode1_9)
0=Exec($(CfgDir)/Utils/message.sh Mode1_0)
[ModeEnd]

[Mode]=2
(EnterMode)=Exec($(CfgDir)/Utils/message.sh "New mode is $(Mode)");Set(status, Mode 2);
1=Exec($(CfgDir)/Utils/message.sh Mode2_1)
2=Exec($(CfgDir)/Utils/message.sh Mode2_2)
3=Exec($(CfgDir)/Utils/message.sh Mode2_3)
4=Exec($(CfgDir)/Utils/message.sh Mode2_4)
5=Exec($(CfgDir)/Utils/message.sh Mode2_5)
6=Exec($(CfgDir)/Utils/message.sh Mode2_6)
7=Exec($(CfgDir)/Utils/message.sh Mode2_7)
8=Exec($(CfgDir)/Utils/message.sh Mode2_8)
9=Exec($(CfgDir)/Utils/message.sh Mode2_9)
0=Exec($(CfgDir)/Utils/message.sh Mode2_0)
[ModeEnd]

[Mode]=3
(EnterMode)=Exec($(CfgDir)/Utils/message.sh "New mode is $(Mode)");Set(status, Mode 3);
1=Exec($(CfgDir)/Utils/message.sh Mode3_1)
2=Exec($(CfgDir)/Utils/message.sh Mode3_2)
3=Exec($(CfgDir)/Utils/message.sh Mode3_3)
4=Exec($(CfgDir)/Utils/message.sh Mode3_4)
5=Exec($(CfgDir)/Utils/message.sh Mode3_5)
6=Exec($(CfgDir)/Utils/message.sh Mode3_6)
7=Exec($(CfgDir)/Utils/message.sh Mode3_7)
8=Exec($(CfgDir)/Utils/message.sh Mode3_8)
9=Exec($(CfgDir)/Utils/message.sh Mode3_9)
0=Exec($(CfgDir)/Utils/message.sh Mode3_0)
[ModeEnd]

[End]
