Variable substitution

In Exec(), Make(var,...), Load(), Include() commands is it possible to use internal "variables". Several of them are predefined.

$(Home)

User home directory ($HOME) will be substituted instead of $(Home):

2=ExecAndSet(list,replace,Files in home,ls $(Home))

$(Mode)

Current mode will be substituted instead of $(Mode):

3=Make(mode,xmms);Exec(kdialog --msgbox "New mode is $(Mode)")

$(CfgDir)

Directory from which configuration file was loaded substituted instead of $(CfgDir).

It is posible to override this by setting AR_CFGDIR environment value.

3=ExecAndSet(list,replace,Cfg Files,ls -1 $(CfgDir))

$(CallId)

[AT-mode only] Caller ID will be substituted (if determined) instead of $(CallId):

(InCall)=Exec(kdialog --msgbox $(CallId))

$(BtAddr)

[Server-mode only] $(BtAddr) variable will be substituted with bluetooth address of the phone after successful connection by java client.

If connection absent (or established not in Server mode through bluetooth) this variable will have empty value.

(Connect)=Exec(kdialog --msgbox "Connected by $(BtAddr)")

Parametrized replies

[Server-mode only] There are $(Param) and $(Index) variables defined in handling command issued from java client menus. Use $$ inside braces to specify parametrized commands.

Choose($$)=Exec(xmmsctrl track $(Index));\
           Exec(kdialog --msgbox "Selected track is $(Param)")

User-defined variables

In addition to the predefined internal variables it is possible to define custom internal variables with Make(var,....) command.