[Windows Mobile Apps and Games] JMHL:
Informations - FAQ

​

----------------------------------------------------------------------------------------

Constantes File-Path

You can use these constantes in your file-path name :

%PROGRAMFILES% -> \Program Files.

%WINDOWS% -> \Windows

%MYVIDEO% -> \My Documents\My Video

%MYPICTURES% -> \My Documents\My Pictures

%MYMUSIC% -> \My Documents\My Music

%STARTMENU% -> \Windows\Start Menu

%PROGRAMS% -> \Windows\Start Menu\Programs

%STORAGECARD% -> \Storage Card

%APPDIR% -> Running program directory (for .exe)

%SCRIPTPATH% -> Running file directory, for file with associated program (.xmu file by example)

If you have JMLToday/JMLPanex installed :

%JMLTODAY% -> \Program Files\JMLToday

%JMLPANEX% -> \Program Files\JMLPanex

%SKIN% -> \Program Files\JMLToday\skins\skin_name

%LANG% -> \Program Files\JMLToday\lang

----------------------------------------------------------------------------------------

%Variables%

​

- You can identify an item with his 'id' attribute and use it in another item

<checkbox id='%VIBRATE%' quit='no' label='Vibrate' format='DWORD' registry='HKLM\Software\Microsoft\CHome\JMLPanex\vibrate' value0='0' value1='10' />
<button label='Save' run='Program.exe %VIBRATE%'/>

-> launch program with '0' or '10' parameter value

- Predefined variables :

%VALUE% : value of item

%FILE%, %SHOW% : for <files> tag

----------------------------------------------------------------------------------------

Quit program

​

- When you clic on item that have a 'run' attribute the program is closed

- When you clic on checkbox item the program is closed

-> Unless you put [quit='no'] on each item that you do not want the program closes

- you can change the text of left-softkey ('Quit' per default) : add quitlabel='...' in <menu...> tag

----------------------------------------------------------------------------------------

Debug mode

​

Add debug='yes' in <menu...> tag

-> The 'run' action is not executed, just display a message

-> Checkbox is run with a diplayed message

2 files are created : debug.txt (list of items) ant run.txt (command line to execute when 'run' attribute exist).

----------------------------------------------------------------------------------------

Command in labels

​

You can prefix some labels with a command :

reg: -> the label is the content of registry key ( same as regstring: )

regstring: -> the label is the content of registry key (format : STRING)

regdword: -> the label is the content of registry key (format : DWORD)

ini: -> the label is the content of key in section of ini-file

lang: -> the label is tranlated (if JMLToday intalled : use JMLLang... files !) MUST BE BEFORE reg: or ini:

-> possibilities :

lang:reg:

lang:ini:

reg:

ini:

regstring:

regdword:

list of attributes using this feature :

label, comment, title, quitlabel, select, values, icon, iconleft, iconcenter, iconright,...

----------------------------------------------------------------------------------------

Multiple values/formatted-text for label

​

You can create complex/multiple/values/formatted-text for label with using '||' as separator

example in .xmu :

<text icon='%SKIN%\||reg:HKCU\software\JML\Meteo\origin||\||reg:HKCU\software\JML\Meteo\Day1\icon' ... />

with for JMLTODAY :

%SKIN% = you skin path

reg:HKCU\software\JML\Meteo\origin = accu for example

reg:HKCU\software\JML\Meteo\Day1\icon -> picture of Day1 (32.png as example)

....

-> text computed : %SKIN%\accu\32.png

----------------------------------------------------------------------------------------

Parameters in JMLMenuSense command-line

​

Parameters are allowed in .xmu call -> you can use these parameters as variables in menu

Example for showing weather of first day :

If you create a .lnk with :...\JMLMenuSense\JMLMenuSense.exe;-xmu:%JMLTODAY%\JMLMeteoX.xmu -day:1

-> you can use %-day% variables in your .xmu file

<text icon='%SKIN%\sys\Wind.png' label="reg:HKCU\software\JML\Meteo\Day[color=red]%-day%[/color]\windspeed|| ||reg:HKCU\software\JML\Meteo\unit_speed" align='left' />

with for JMLTODAY :

reg:HKCU\software\JML\Meteo\Day1\winspeed -> 50 as example

reg:HKCU\software\JML\Meteo\unit_speed -> km/h as example

-> text computed : 50 km/h

[/color]

----------------------------------------------------------------------------------------

Conditions

​

You can add condition to show/hide a group of items : <condition> tag

You can add condition to show/hide a submenu : 'condition' attribute in <submenu> tag

You can add condition to show/hide a item : 'condition' attribute in item tag

List of test-conditions :

regempty:

iniempty:

regequal:

iniequal:

regfind:

inifind:

fileexist:

paramexist:

for inverse condition, add not: before.

Example :

<condition condition='not:regempty:HKCU\software\JML\Meteo\Night1\icon'/>
<separator interline='no' label="lang:NIGHT" />
<text scale='yes' icon=.../>
<text icon='%SKIN%\sys\Wind.png' label="reg:HKCU\software\JML\Meteo\Night1\windspeed|| ||reg:HKCU\software\JML\Meteo\unit_speed" align='left' />
<condition />