Velocity is Like OpenTable on Steroids

We all enjoy a night out with friends or our significant other from time to time. However, there is … more

Android Lollipop Lands for the Sony Xperia Z Ultra

The undisputed king of the beasts–at least in Sony’s current stable,is the … more

Android 5.0 Lollipop in 3D–EVO 3D, That Is!

It is that time of the year once again. Flowers bloom (or snow falls, depending on which … more

Gaming Console with Lollipop? Ouya Gets an Android TV Port

Android is a very flexible platform, and it can be used on a large variety of … more

Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP JMHL

17th December 2009, 08:45 AM   |  #1  
OP Retired Recognized Developer
Flag Bordeaux
Thanks Meter: 83
 
650 posts
Join Date:Joined: Apr 2006
Donate to Me
More
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 by JMHL; 19th March 2011 at 11:10 PM. Reason: JMLToday V5.90 released
17th December 2009, 08:46 AM   |  #2  
OP Retired Recognized Developer
Flag Bordeaux
Thanks Meter: 83
 
650 posts
Join Date:Joined: Apr 2006
Donate to Me
More
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:
-execute if menu as once choice, it execute it immediately (menu not show)
-x:X = X coordinate (X clic per default)
-y:Y  = Y coordinate (Y clic per default)
-timeout: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=[Config] 
Parameters={JMLParameters.mnu}  

[Config]
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:
-vibrate:duration = make a vibration (duration=25ms per default)

-volume = toggle vibrate/mute/normal mode
-volume:mode = volume mode : vibrate,mute, normal
-volume:level = volume level : silent,verylow,low,medium,high,loud

-backlight = toggle auto/manual mode
-backlight:mode = backlight mode : auto,manual
-backlight:level = backlight level : mini,low,medium,high,maxi

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

-status = 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\Calendar] 
"total" = dword: number of appointments found 

[HKEY_CURRENT_USER Software\JML\Calendar\CalN] 
"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 ("Calendar" per default)
Parameters for appointment :
Code:
-dateview:N = open poutlook.exe to view the appointment number N
-deleteall:end = delete all ended 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\Sms] 
"total" = dword: number of SMS found 

[HKEY_CURRENT_USER Software\JML\Sms\SmsN] 
"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 ("Sms" per default)
Parameters for sms :
Code:
-phone:phone-number =  Call a phone number

-reply:N =  Send a response SMS
-reply:N =  -text:"my text" = Send a pre-defined text response SMS

-mark:N  = Mark as read the SMS
-mark:all  = Mark as read all SMS
-markid:oid  = Mark as read the SMS identified by his oid

-delete:N = Delete the SMS
-delete:all = Delete all SMS
-delete:unread  = Delete all Unread SMS
-deleteid:oid  = Delete the SMS identified by his oid

-call:N = Call in response to SMS (in order if exist : sender, mobilePhone, homePhone)

-notify:N = show the SMS
-notifyid:oid = show the SMS identified by his oid

-sms:phone-number =  Send a response SMS
-sms:phone-number =  -text:"my text" = Send a pre-defined text response SMS
---------------------------------------------------------------------------------

JMLContacts v1.95

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

[HKEY_CURRENT_USER Software\JML\Contacts\AnniversaryN] 
"oid" = oid of Contact in database

...

"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 ("Contacts" 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:
-call:N = Call a contact

-email:address -account:account = Send a email from an account-name (Outlook per default)

-addfavorite:N = Add a new favorite contact
-removefavorite:N = Remove a favorite contact
-callfavorite:N = 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:
-gps : acquire gps location (as JMLComm.exe)

-msn:code = city code (ex. : FRXX0016)
-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. : EUR|FR|FR002|BORDEAUX)
-metric: = 1 or 0 (1 per default)

-google:code = city code (ex. : Bordeaux)
-lang:ll =  language (en per default)
-degree:C = C or F (C per default)
GPS location with built-in jmlPosition:
Code:
-gps
-accu:jmlPosition
-metric: = 1 or 0 (1 per default)
OR Acquire GPS-location with JMLComm.exe and next call JMLMeteo with :
Code:
-accu:jmlPosition
-metric: = 1 or 0 (1 per default)

GPS location with Sleuth's myLocation Service :
- first, install http://forum.xda-developers.com/showthread.php?t=607102
- use it to update Latitude/Longitude coordinates
- next, call JMLMeteo.exe with these parameters :
Code:
-accu:myLocation
-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:googleLatitude
-metric: = 1 or 0 (1 per default)
---------------------------------------------------------------------------------

JMLTasks v1.40

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

[HKEY_CURRENT_USER Software\JML\Tasks\TaskN] 
"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 ("Tasks]" 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:N = open poutlook.exe to view the task number N
-delete:N = delete the task number N
-complete:N = complete the task number N

-deleteall:due = delete all due tasks
-deleteall:completed = delete all completed 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\Favorites] 

[HKEY_CURRENT_USER Software\JML\Favorites\FavoriteN] 
"type" = type of favorite : 'contact' or 'program'
"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 'contact' 
-type:program = with -add parameter, add a 'program'
-remove:N = Remove a favorite
---------------------------------------------------------------------------------
Last edited by JMHL; 5th November 2010 at 09:44 AM.
17th December 2009, 08:46 AM   |  #3  
OP Retired Recognized Developer
Flag Bordeaux
Thanks Meter: 83
 
650 posts
Join Date:Joined: Apr 2006
Donate to Me
More
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:
Width result picture with
Height result picture height
Bkg initial background color (RGB format)
Transparent set one color of result picture as transparent (RGB format)
Target png file name of result picture
Source png file name of background picture
<Image...> Parameters :
Code:
Left left-coordinate
Top top-coordinate
Width with of displaying picture (with of picture per default)
Height height of displaying picture (heigh of picture per default)
ScaleStyle 
Alignment 
ID JMLToday ID ITEM (Page is required)
Page JMLToday Page ITEM (ID is required)
<Text...> Parameters :
Code:
Left left-coordinate
Top top-coordinate
Width with of displaying text
Height height of displaying text
Value text value
FontFamily font name
FontSize font size
FontStyle font style : 'italic', 'bold'
Color text color (RGB format)
Alignment 'center', 'right' or 'left' (per default)
ID JMLToday ID ITEM (Page is required)
Page 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>
Attached Thumbnails
Click image for larger version

Name:	JMLPicture.png
Views:	563
Size:	55.4 KB
ID:	408224  
Last edited by JMHL; 2nd November 2010 at 12:48 PM.
5th February 2010, 05:22 PM   |  #4  
OP Retired Recognized Developer
Flag Bordeaux
Thanks Meter: 83
 
650 posts
Join Date:Joined: Apr 2006
Donate to Me
More
@all : add some program informations ..... in Post#2

A++
5th February 2010, 08:42 PM   |  #5  
Senior Member
Flag East Greenwich, RI
Thanks Meter: 2
 
876 posts
Join Date:Joined: Oct 2009
More
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 by howdykeith; 9th February 2010 at 02:23 AM.
17th March 2010, 05:46 AM   |  #6  
Senior Member
Flag East Greenwich, RI
Thanks Meter: 2
 
876 posts
Join Date:Joined: Oct 2009
More
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?
17th March 2010, 10:32 AM   |  #7  
OP Retired Recognized Developer
Flag Bordeaux
Thanks Meter: 83
 
650 posts
Join Date:Joined: Apr 2006
Donate to Me
More
@howdykeith : Yes I think it should work.
5th April 2010, 09:23 AM   |  #8  
Senior Member
Flag East Greenwich, RI
Thanks Meter: 2
 
876 posts
Join Date:Joined: Oct 2009
More
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!
15th April 2010, 11:08 AM   |  #9  
Senior Member
Flag Roma
Thanks Meter: 15
 
241 posts
Join Date:Joined: Dec 2006
More
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
15th April 2010, 10:34 PM   |  #10  
OP Retired Recognized Developer
Flag Bordeaux
Thanks Meter: 83
 
650 posts
Join Date:Joined: Apr 2006
Donate to Me
More
@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...

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes