%
% anyremote configuration file for keyboard emulation. (Server-mode)
% This configuration file emulate a few useful buttons.
%

% STATUS stable
% XTEST yes
% SOUND mixer
% ENV no
% ALL_IN_ONE 

GuiAppName=Keyboard test
GuiAppBinary=true
GuiAppIcon=keyboard.png
GuiAppType=Example
GuiAppProtocols=Server
GuiAppDesc=Simple keyboard emulation example.

[Protocol]=Server

(Init)=\
	Include($(CfgDir)/Utils/aliases-server.cfg);\
	Macro(SETUP_DEFAULT_MIXER);\
	Emulate(key,numbersign);
	
(Connect)=\
	Make(mode,keyboard);

[Mode]=keyboard

Cancel=Exit

(EnterMode)=\
	Set(status,Keyboard test);\
	Set(title,);\
	Set(layout,default);\
	Set(icons,Keyboard,0,default,1,no,2,up,3,default,4,left,5,default,6,right,7,default,8,down,9,default,*,question,0,pause,#,default);\
	Macro(KBDCFG_MENU);

(ExitMode)=Set(status,);

KBDCFG_MENU=\
	Set(menu,replace,);\
	Macro(ALLIN1MENU)

Back=\
	Set(text,close);\
	Macro(KBDCFG_MENU);

1=Emulate(keydown,Alt_L,key,F4,keyup,Alt_L)
2=Emulate(key,Up)
3=Emulate(key,Page_Up)

4=Emulate(key,Left)
5=Emulate(key,Return)
6=Emulate(key,Right)

7=Emulate(key,Tab)
8=Emulate(key,Down)
9=Emulate(key,Page_Down)

0=Emulate(key,space)

* 1=Emulate(key,Escape)
* 2=Macro(DEFAULT_VOLUME_DOWN)
* 3=Macro(DEFAULT_VOLUME_UP)

* 7=Emulate(keydown,Alt_L,key,Tab,keyup,Alt_L)

* *=Set(text,replace,Help,1 - AltF4/Esc\n2 - UpArr/Vol-\n3 - PgUp/Vol+\n4 - L.Arrow\n5 - Enter\n6 - R.Arrow\n7 - Tab/AltTab\n8 - DownArr\n9 - PgDn\n* - Modifier/Help\n0 - Space/Mute)
* 0=Macro(DEFAULT_TOGGLE_MUTE)

[ModeEnd]
[End]
