[WM6.5] [Programs] JML.... tools (02-Nov-2010)

Search This thread

JMHL

Retired Recognized Developer
Apr 23, 2006
650
83
60
Bordeaux
Programs Used in JMLToday <= 5.92


Post#2 : Programs Informations


JMLPicture.exe See Post#3
Build a picture from multiple images/texts

JMLMenu.exe
Displays a context popup menu.

JMLComm.exe
Phone on/flight-mode, Wifi on/off, BT on/off/discoverable, Data on/off

JMLCalendar.exe
Saves the next appointments in registry

JMLSms.exe
Saves SMS in registry

JMLContacts.exe
Saves the next birthdays/anniversaries AND Favorites contacts in registry

JMLMeteo.exe
Saves the MSN or ACCU or GOOGLE weather informations in registry

JMLTasks.exe
Saves the next tasks in registry
 
Last edited:

JMHL

Retired Recognized Developer
Apr 23, 2006
650
83
60
Bordeaux
Programs Informations


JMLMenu v1.80
The menu is configurable via a .mnu file :
- The main menu is [Menu]
- One element per line of menu : label= program;parameters
- One section per submenu : use [] -> label=[mysubmenu]
- External submenu (.mnu file) : use {} -> label={filesubmenu.mnu}
- Separator : sepX=SEPARATOR (X=unique number)

Parameters :
Code:
[b][color=red]-execute[/color][/b] if menu as once choice, it execute it immediately (menu not show)
[b]-x:[/b]X = X coordinate (X clic per default)
[b]-y:[/b]Y  = Y coordinate (Y clic per default)
[b]-timeout:[/b]N = timeout in seconds to hide menu (10s per default)

Example : JMLAction.mnu
Code:
[Menu] 
Restart Titanium=%JMLTODAY%\JMLToday.exe;-refresh 
Update=%JMLTODAY%\JMLToday.exe;-update 
Weather=%JMLTODAY%\JMLMeteo.exe;-jmltoday 
Configuration=[color=blue][b][Config][/b][/color] 
Parameters=[color=blue][b]{JMLParameters.mnu}[/b][/color]  

[color=blue][b][Config][/b][/color]
Clock=%WINDOWS%\ctlpnl.exe;cplmain.cpl,16,0 
Skin=%JMLTODAY%\JMLTodaySkins.mscr 
City=%JMLTODAY%\JMLTodayVille.mscr 
Language=%JMLTODAY%\JMLLang.mscr

To Launch :
- in a .pnx file : %JMLTODAY%\JMLMenu.exe;JMLAction.mnu
- in a .mscr script : Run(instPath&"\JMLMenu.exe","JMLAction.mnu")

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

JMLComm v1.98

Parameters :
Code:
[color=red]-vibrate:duration[/color] = make a vibration (duration=25ms per default)

[color=red]-volume[/color] = toggle vibrate/mute/normal mode[color=red]
-volume:mode[/color] = volume mode : [b]vibrate,mute, normal[/b]
[color=red]-volume:level[/color] = volume level : [b]silent,verylow,low,medium,high,loud[/b]

[color=red]-backlight[/color] = toggle auto/manual mode
[color=red]-backlight:mode[/color] = backlight mode : [b]auto,manual[/b]
[color=red]-backlight:level[/color] = backlight level : [b]mini,low,medium,high,maxi[/b]

[color=red]-gps:timeout[/color] = store latitude/longitude in HKCU\\Software\\JML\\Comm (timeout=60s per defaut)

[color=red]-status[/color] = store some informations in HKCU\\Software\\JML\\Comm 

-data  = toggle on/off data-connection
-data:on = switch ON data-connection
-data:off = switch OFF data-connection

-phone = toggle on/off phone
-phone:on = switch ON phone
-phone:off = switch OFF phone

-flight  =  toggle on/off flight-mode
-flight:on =  switch OFF phone, wifi, bluetooth
-flight:off = switch ON phone

-bt = toggle 3 states bluetooth
-bt:on = switch ON bluetooth
-bt:discoverable = switch ON with discoverable mode bluetooth
-bt:off  = switch OFF bluetooth

-bt2 = toggle on/off bluetooth
-bt2:on = switch ON bluetooth
-bt2:off  = switch OFF bluetooth

-wifi = toggle on/off wifi
-wifi:on = switch ON wifi
-wifi:off = switch OFF wifi

Example : turn OFF bluetooth
Code:
instPath = SystemPath( "ScriptPath" )
RunWait(instPath&"\JMLComm.exe", "-bt:off")
exit

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

JMLCalendar v2.45

Registry structure:
Code:
[HKEY_CURRENT_USER\Software\JML\[color=green][b]Calendar[/b][/color]] 
"total" = dword: number of appointments found 

[HKEY_CURRENT_USER Software\JML\[b]Calendar[/b]\Cal[color=orange][b]N[/b][/color]] 
"oid" = oid item in poom database
"allday" = 0=FALSE, 1=TRUE
"categories" = list of categories

...

"subject" = subject

Parameters for searching :
Code:
-max:N = maximum number wanted (5 per default)
-days:N = number of days involved (5 per default)
-reg:key =  registry key to store ("[color=green][b]Calendar[/b][/color]" per default)

Parameters for appointment :
Code:
-dateview:[color=orange][b]N[/b][/color] = open poutlook.exe to view the appointment number N
-deleteall:end = delete all [b]ended[/b] appointments (except reccurring appointments)
-deleteoid:oid =  delete an appointment identified by his oid
-notifyoid:oid =  show an appointment identified by his oid
---------------------------------------------------------------------------------

JMLSms v1.80

Registry structure:
Code:
[HKEY_CURRENT_USER\Software\JML\[b]Sms[/b]] 
"total" = dword: number of SMS found 

[HKEY_CURRENT_USER Software\JML\[b]Sms[/b]\Sms[color=orange][b]N[/b][/color]] 
"oid" =  oid item in SMS in database
"unread"   = 1 if unread SMS, 0 otherwise

...

"subject"= subject

Parameters for searching :
Code:
-max:N = maximum number wanted (5 per default)
-read:all = last all type SMS (last unread per default)
-reg:key  = registry key to store ("[color=green]Sms[/color]" per default)

Parameters for sms :
Code:
[color=red]-phone:phone-number[/color] =  Call a phone number

-reply:[color=orange][b]N[/b][/color] =  Send a response SMS
-reply:[color=orange][b]N[/b][/color] =  [color=red]-text:"my text"[/color] = Send a pre-defined text response SMS

-mark:[color=orange][b]N[/b][/color]  = Mark as read the SMS
-mark:all  = Mark as read all SMS
-markid:oid  = Mark as read the SMS identified by his oid

-delete:[color=orange][b]N[/b][/color] = Delete the SMS
-delete:all = Delete all SMS
-delete:unread  = Delete all Unread SMS
-deleteid:oid  = Delete the SMS identified by his oid

-call:[color=orange][b]N[/b][/color] = Call in response to SMS (in order if exist : sender, mobilePhone, homePhone)

-notify:[color=orange][b]N[/b][/color] = show the SMS
-notifyid:oid = show the SMS identified by his oid

-sms:phone-number =  Send a response SMS
-sms:phone-number =  [color=red]-text:"my text"[/color] = Send a pre-defined text response SMS

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

JMLContacts v1.95

Registry structure :
Code:
[HKEY_CURRENT_USER\Software\JML\[b]Contacts[/b]\Anniversaries] 
"total" = dword: number of contacts found

[HKEY_CURRENT_USER Software\JML\[b]Contacts[/b]\Anniversary[color=orange][b]N[/b][/color]] 
"oid" = oid of Contact in database

...
[b][/b]
"picture"= full path of picture file name (in \My Documents\My Pictures...)

Idem for Favorites : in [HKEY_CURRENT_USER\Software\JML\Contacts\Favorites]

Parameters for searching :
Code:
-max:N = maximum number wanted (5 per default)
-days:N = number of days involved (30 per default)
-reg:key  = registry key to store ("[color=green][b]Contacts[/b][/color]" per default)
-anniversaries = search in 'Anniversary' field of contact 
-birthdays = search in 'Birthday' field of contact
-anniversaries -birthdays are per default

Parameters for contact :
Code:
[color=red]-call:N[/color] = Call a contact

[color=red]-email:address -account:account[/color] = Send a email from an account-name (Outlook per default)

[color=red]-addfavorite:N[/color] = Add a new favorite contact
[color=red]-removefavorite:N[/color] = Remove a favorite contact
[color=red]-callfavorite:N[/color] = Call a favorite contact

-phone:phone-number  = Call phone number
-sms:phone-number = Send SMS to phone number
-smsoid:oid = Send SMS to phone number to contact identified by his oid

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

JMLMeteo v2.55

Registry structure:
Code:
[HKEY_CURRENT_USER\Software\JML\Meteo] 
"total" = dword: number of days found
...


[HKEY_CURRENT_USER Software\JML\Meteo\Current] 
...

[HKEY_CURRENT_USER Software\JML\Meteo\DayN] 
...

Parameters :
Code:
[color=red]-gps[/color] : acquire gps location (as JMLComm.exe)

-msn:code = city code (ex. : [b]FRXX0016[/b])
-lang:ll-ll =  language (en-en per default)
-degree:C = C or F (C per default)
-map:m = number of map to download

-accu:code = city code (ex. : [b]EUR|FR|FR002|BORDEAUX[/b])
-metric: = 1 or 0 (1 per default)

-google:code = city code (ex. : [b]Bordeaux[/b])
-lang:ll =  language (en per default)
-degree:C = C or F (C per default)

GPS location with built-in jmlPosition:
Code:
-gps
-accu:[b]jmlPosition[/b]
-metric: = 1 or 0 (1 per default)
OR Acquire GPS-location with JMLComm.exe and next call JMLMeteo with :
Code:
-accu:[b]jmlPosition[/b]
-metric: = 1 or 0 (1 per default)
GPS location with Sleuth's myLocation Service :
- first, install http://xdaforums.com/showthread.php?t=607102
- use it to update Latitude/Longitude coordinates
- next, call JMLMeteo.exe with these parameters :
Code:
-accu:[b]myLocation[/b]
-metric: = 1 or 0 (1 per default)

GPS location with Google Latitude:
- first, copy your googleLatitude account in google.ID file.
- next, call JMLMeteo.exe with these parameters :
Code:
-accu:[b]googleLatitude[/b]
-metric: = 1 or 0 (1 per default)
---------------------------------------------------------------------------------

JMLTasks v1.40

Registry structure:
Code:
[HKEY_CURRENT_USER\Software\JML\[color=green][b]Tasks[/b][/color]] 
"total" = dword: number of tasks found 

[HKEY_CURRENT_USER Software\JML\[b]Tasks[/b]\Task[color=orange][b]N[/b][/color]] 
"oid" = oid item in poom database
"categories" = list of categories
...
"subject" = subject

Parameters for searching :
Code:
-max:N = maximum number wanted (5 per default)
-days:N = number of days involved (5 per default)
-reg:key =  registry key to store ("[color=green][b]Tasks[/b]][/color]" per default)
-withCompleted = show all tasks
-sort:due = sort by due tasks 
-sort:start = sort by date (per default)
manila = store all tasks in HKEY_LOCAL_MACHINE\Software\HTC\\Manila


Parameters for task :
Code:
-view:[color=orange][b]N[/b][/color] = open poutlook.exe to view the task number N
-delete:[color=orange][b]N[/b][/color] = delete the task number N
-complete:[color=orange][b]N[/b][/color] = complete the task number N

-deleteall:due = delete all [b]due[/b] tasks
-deleteall:completed = delete all [b]completed[/b] tasks

-deleteoid:oid = delete the task identified by his oid
-completeoid:oid = complete the task identified by his oid
---------------------------------------------------------------------------------

JMLFavorites v1.00 (SOON)

Registry structure :
Code:
[HKEY_CURRENT_USER\Software\JML\[b]Favorites[/b]] 

[HKEY_CURRENT_USER Software\JML\[b]Favorites[/b]\Favorite[color=orange][b]N[/b][/color]] 
"type" = type of favorite : '[color=orange]contact[/color]' or '[color=orange]program[/color]'
"picture"= full path of picture file name 
"label"= fistname for contact, filename for program 

...

Parameters for favorite :
Code:
-call:N = CALL a contact or RUN a program
-add:N = Add a new favorite (contact per default)
-type:contact = with -add parameter, add a '[color=orange]contact[/color]' 
-type:program = with -add parameter, add a '[color=orange]program[/color]'
-remove:N = Remove a favorite
---------------------------------------------------------------------------------
 
Last edited:

JMHL

Retired Recognized Developer
Apr 23, 2006
650
83
60
Bordeaux
JMLPicture Thank you for offering me a beer. All donations (3€, 5$, +) are appreciated !

Build a picture from multiple images/texts (see picture below).

<Picture...> Parameters :
Code:
[b]Width[/b] result picture with
[b]Height[/b] result picture height
[b]Bkg[/b] initial background color (RGB format)
[b]Transparent[/b] set one color of result picture as transparent (RGB format)
[b]Target[/b] png file name of result picture
[b]Source[/b] png file name of background picture

<Image...> Parameters :
Code:
[b]Left[/b] left-coordinate
[b]Top[/b] top-coordinate
[b]Width[/b] with of displaying picture (with of picture per default)
[b]Height[/b] height of displaying picture (heigh of picture per default)
[b]ScaleStyle[/b] 
[b]Alignment[/b] 
[b]ID[/b] JMLToday ID ITEM (Page is required)
[b]Page[/b] JMLToday Page ITEM (ID is required)

<Text...> Parameters :
Code:
[b]Left[/b] left-coordinate
[b]Top[/b] top-coordinate
[b]Width[/b] with of displaying text
[b]Height[/b] height of displaying text
[b]Value[/b] text value
[b]FontFamily[/b] font name
[b]FontSize[/b] font size
[b]FontStyle[/b] font style : 'italic', 'bold'
[b]Color[/b] text color (RGB format)
[b]Alignment[/b] 'center', 'right' or 'left' (per default)
[b]ID[/b] JMLToday ID ITEM (Page is required)
[b]Page[/b] JMLToday Page ITEM (ID is required)

Example : ClockText.xml
Code:
<Picture Width="400" Height="200" Bkg="192,192,192" Target="%APPDIR%/ClockText.png">    
	<Image Left="0"   Top="0"  ID="BGAMPMALARM" Page="Page1" />    
	<Image Left="20"  Top="40" ID="H1" Page="Page1" />    
	<Image Left="100" Top="40" ID="H2" Page="Page1" />    
	<Image Left="225" Top="40" ID="M1" Page="Page1" />    
	<Image Left="305" Top="40" ID="M2" Page="Page1" />
        <Text  Left="15"  Top="140" Value="AM" Color="128,0,0" FontFamily="Tahoma" FontSize="8" FontStyle="Bold,Italic" />
        <Text  Left="15"  Top="160" ID="City" Page="Page1" FontFamily="Tahoma" FontSize="6" FontStyle="Italic" />
</Picture>
 

Attachments

  • JMLPicture.png
    JMLPicture.png
    55.4 KB · Views: 577
Last edited:

howdykeith

Senior Member
Oct 8, 2009
876
2
East Greenwich, RI
Hi.

I sure do love command-line tools! I added them to the Mortscript Source Compendium's list.

And to facilitate my testing them to see if magically they will work with wm5 smartphones, I added a Command-Line tester to The Mortifier. So we can browse to the exe and enter our command line parameters. Keeps the old exe and parameters in memory so you can re-test them easily.

Thanks for these.
 
Last edited:

howdykeith

Senior Member
Oct 8, 2009
876
2
East Greenwich, RI
Hi.

So i was using Message2reg.exe. It seems with wm653 m2reg gives an error.

I am trying to use jmlsms.exe to see if that can work.

Code:
RunWait(SystemPath("ScriptPath") \ "\Utility\JMLSms.exe","-read:all")

			MsgSender = RegRead(HKCU, "\Software\JML\Sms\Sms1", "sender")
			MsgBody = RegRead( HKCU,"\Software\JML\Sms\Sms1", "subject")

Think that looks good?
:D
 

howdykeith

Senior Member
Oct 8, 2009
876
2
East Greenwich, RI
StatusTicker and JML...

Hi,

So i incorporated JMLsms.exe and JMLcomm.exe into the StatusTicker.

Works super great!

In future version I will include more of you apps infos... I also will make sure to include the URL to your apps as well.

Thanks much!
 

dagosjt

Senior Member
Dec 12, 2006
300
26
Roma
Hello,
I'm trying to use JMLContacts.exe to have birthdays on my WAD2 Skin.

I've installed JMLToday and everything worked fine and registry was filled by next 5 birthdays information.

Now I'm trying to update information outside of Titanium/JMLToday and to do it I'm using a mortscript.

Inside script I wrote the following line:

RunWait("\Storage Card\Program Files\UtilsExe\JML\JMLContacts.exe", "-max:3")

Unfortunately it seems not working, at least registry values are not updated. I double checked path and it appears absolutely correct.
More I tried to simply launching JMLContacts.exe directly from TCMD, and I expected it worked with all default values, but of course it didn't... Is my supposition a wrong one?

Meanwhile, thanks a lot to let available for us those little but great tools :)
 

JMHL

Retired Recognized Developer
Apr 23, 2006
650
83
60
Bordeaux
@dagosjt :
you must use also -days (0 per default), -birthdays (and /or -anniversaries) parameters

example :

-max:3 -days:365 -birthdays

Ok ? thanks for feedback.

A++

PS : i think i 'll change the default parameters values in a next version...
 

dagosjt

Senior Member
Dec 12, 2006
300
26
Roma
@dagosjt :
you must use also -days (0 per default), -birthdays (and /or -anniversaries) parameters

example :

-max:3 -days:365 -birthdays

Ok ? thanks for feedback.

A++

PS : i think i 'll change the default parameters values in a next version...

Yes!
Works perfect now :) I thought days:0 meaning was "all days", sometime it happens in software :)
 

saeli

Member
Dec 27, 2008
12
0
HI JMHL
I want to know if JMLMeteo can search for a location based on latitude and longitude
 

JMHL

Retired Recognized Developer
Apr 23, 2006
650
83
60
Bordeaux
@saeli : not for the moment. Next feature perhaps if more people are interested and if it's easy to hard-coded.

A++
 

MichelDiamond

Retired Recognized Developer
Jul 6, 2009
2,222
272
@jmhl: perhaps ypu can use this for location awareness:

xdaforums.com/showthread.php?t=607102

then it could work

Salut
Micha
 

JMHL

Retired Recognized Developer
Apr 23, 2006
650
83
60
Bordeaux
@saeli : ok, weather location based on latitude and longitude certainly in next version.
@micha : thanks for the tips.

A++
 

JMHL

Retired Recognized Developer
Apr 23, 2006
650
83
60
Bordeaux
@saeli & @all : location based on latitude and longitude in next version of JMLMeteo (in next JMLToday v5.80).

2 ways :
- Sleuth's myLocation Service
- google Latitude

A++