Go Back   xda-developers > Development and hacking > Windows applications and games

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 25th August 2009, 09:53 PM
JMHL JMHL is offline
Senior Member
 
Join Date: Apr 2006
Location: Bordeaux
Posts: 238
Default [WM6.5] [Titanium program] JMLPanex v2.10 (20-Oct-2009)

Developed on HTC Diamond (VGA 480 × 640) with standard Titanium (no WM7.. Project, etc....)


Post#2 : Configuration/Parameter Informations (see for v2.10)



JMLPanex program (JML Panel Execute) allows multiple hotspots on a plugin (-> Association picture/program).






Changelog Version 2.10: (see post#2)

- Bug : Cache works on Portrait AND Landscape mode
- Compatible BronzeListView CPR (to tested. thanks)
- JMLClearCache.mscr script to clear one or all caches
- JMLOffset.mscr script to fix Offset (Rom > 23xxx or BronzeListView CPR)



Changelog Version 2.00 :

- caching the cpr-part of each Panel for faster reaction (another MichelDiamond's idea)
- reverse search for <Images> (because a big Image must be in First position in CPR, but must be scanned in Last position by JMLPanex)
- #GOTO command to interact with others Pages of a Plugin or another Plugin without manual sliding
- add %JMLTODAY% and %JMLPANEX% for path-file


Changelog Version 1.00 :

- cascading search in files .PNX
- area-button : one picture/multi-area-clic (MichelDiamond's idea)
- others optimizations


Changelog Version 0.99 :

- new search algorithm
- set a register key in plugin to specified the actual Page : "Software\\Microsoft\\CHome\\plugin_name\\JMLPanexPage" (= "Page1" for example)
- when clic, suppress InvertRect, changed to border of a pushbutton


Changelog Version 0.98 :

- corrected bug : freeze if file parameter .pnx not exist
- corrected bug : work only for Page1


Installation instructions :
- First
If not yet, install MortScript v4.2 -> *Mortscript site*
- Second
Install CAB file
- Third
Launch JMLPanexForPlugin.mscr to associate JMLPanex to a plugin.


Have Fun!

... and don't forget
For work performed (JMLToday, JMLPanex, JMLStocks, JMLLauncher), time spent, coffee, encouragements … *Donate*
Attached Files
File Type: cab JMLPanexV0.97.cab (18.4 KB, 124 views)
File Type: cab JMLPanexV0.98.cab (18.5 KB, 77 views)
File Type: cab JMLPanexV0.99.cab (22.9 KB, 238 views)
File Type: cab JMLPanexV1.00.cab (24.4 KB, 287 views)
File Type: cab JMLPanexV2.00.cab (27.1 KB, 686 views)
File Type: cab JMLPanexV2.10.cab (29.2 KB, 3387 views)

Last edited by JMHL; 20th October 2009 at 08:24 PM..
Reply With Quote
Sponsored Links

  #2  
Old 25th August 2009, 09:53 PM
JMHL JMHL is offline
Senior Member
 
Join Date: Apr 2006
Location: Bordeaux
Posts: 238
Default

Configuration/Parameter Informations



Parameter file .pnx

----------------------- for SEARCH in PNX :
- One File in plugin folder (file-name=skin-name.pnx)
or/and
- One File in plugin folder (file-name=plugin-name.pnx)
or/and
- One File in JMLPanex folder (file-name=plugin-name.pnx)
-----------------------

- One section per page of plugin or per area description
- One line per association picture=program


Example JMLToday.pnx for JMLToday plugin :
Code:
[Page1]
default=%PROGRAMFILES%\JMLToday\JMLAction.exe
AlarmPNG=%WINDOWS%\ctlpnl.exe;cplmain.cpl,16,1
BG=%WINDOWS%\ctlpnl.exe|cplmain.cpl,16,0
EmailPNG=%WINDOWS%\tmail.exe;-service "ActiveSync"
SmsPNG=%WINDOWS%\tmail.exe;-service "SMS"
TelPNG=%PROGRAMFILES%\JMLToday\CallHistory.exe
BattPNG=%WINDOWS%\ctlpnl.exe;cplmain.cpl,3

[Page2]
default=%PROGRAMFILES%\JMLToday\JMLMeteo.mscr
NB. : default is the default program when you click out of a picture.

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

%PROGRAMFILES%
%WINDOWS%
%MYVIDEO%
%MYPICTURES%
%MYMUSIC%
%JMLTODAY%
%JMLPANEX%


----------------------------------------------------------------------------------------
Program/parameters separator
You can use | or ; in your file-path name to separate parameter to program-name :

Example :
...=%WINDOWS%\ctlpnl.exe|cplmain.cpl,3
or
...=%WINDOWS%\ctlpnl.exe;cplmain.cpl,3

----------------------------------------------------------------------------------------
ACTIONURL - ACTIONURLPNX
When you associate JMLPanex to a plugin, JMLPanexForPlugin.mscr store the old ACTIONURL value in ACTIONURLPNX

----------------------------------------------------------------------------------------
Algorithm
1 - During a click, the plugin launches JMLPanex.exe in passing in parameter the name of the plugin (eg. JMLToday) and the concerned page (eg. Page1)
2 - JMLPanex gets back the coordinates of the click
3 - JMLPanex looks for in the file active .cpr, and in Layer of the plugin (eg. JMLTodayExpanded), the element the positions / dimensions of which correspond in coordinates of the click
4 - JMLPanex gets back ID of the concerned element and search in a file parameters, the associated program and executes it.




----------------------------------------------------------------------------------------
Area Button (MichelDiamond's idea)

- The image is cut in zones representing a matrix
- Every zone can be associated with a program
- Max dim = 5 (5x5 zones)




Example :




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

#GOTO
Syntax : #GOTO page/direction plugin-destination

- page = Page1, Page2... PageN
- direction = Left...LeftN (Left occurs N), Right... RightN, None
- plugin-destination = name of plugin to go (if different)




----------------------------------------------------------------------------------------
Offset

If you have a vertical offset due to :
- ROM build > 23xxx
- BronzeListView in place of TitaniumListView

-> Run JMLOffset.mscr to fix it


The JMLOffset.ini file contains a list of predefined value depends of resolution and mode (Portrait/Landscape)
Of course, you can change this value when you launch JMLOffset.mscr.

-> Run JMLOffset.mscr twice (Portrait & Landscape)

Rules 1 (to confirm....) :
- ROM WM6.5 build < 23xxx and TitaniumListView -> No offset or Offset = 0 (available for all plugins)
- ROM WM6.5.1 build >23xxx and TitaniumListView -> Run offset, choose 'all' plugins and set a value (-... for up, +... for down)
- BronzeListView : Run offset, and configure for each plugin

Rules 2 :
- TitaniumListView -> offset available for all plugins (only choose 'all' plugins available)
- BronzeListView -> you can configure for each plugin


----------------------------------------------------------------------------------------
Cache

- One .dat file cache per Plugin and per Resolution
- The cache is rebuild when the .CPR file is modified or .dat inexistent
- The cache only work with .CPR file, NOT with .pnx (icon coordinates recorded only, NOT associate action).

-> Run JMLClearCache.mscr to force the recompilation of cache for one or all plugins

For the developpers :
- Delete the appropriates .dat files in your script to clear cache.

Last edited by JMHL; 22nd October 2009 at 07:07 PM..
Reply With Quote

  #3  
Old 25th August 2009, 10:50 PM
Jumba Jumba is offline
Senior Member
 
Join Date: Nov 2008
Posts: 146
Default

Excellent! Updated skins on the way.
Reply With Quote

  #4  
Old 25th August 2009, 11:42 PM
jug6ernaut's Avatar
jug6ernaut jug6ernaut is offline
Senior Member
 
Join Date: Jun 2006
Location: College Station, Tx
Posts: 1,189
Default

wow nice/exciting!
__________________

HTC Raphael/AT&T Fuze
Rom: Mystic Series B1.9 [Da_G 6.5 21234 Da_G Base]
Radio: 1.12.25.19
(This TF3D stuff is very nice...)
----------------------------------
HTC Kaiser/AT&T Tilt
(Traded in but will always remember)
-----------------------------------
HTC Wizard/Cingular 8125
(Sold...But will always remember)

if you wanna help the broke college student LOL
Reply With Quote

  #5  
Old 26th August 2009, 01:14 AM
MichelDiamond's Avatar
MichelDiamond MichelDiamond is offline
Senior Member
 
Join Date: Jul 2009
Posts: 561
Default

Short Info: will work on each Resolution in TitaniumListView-Skins

You can have Buttons without any new running background-process.

Try it with JMLToday - and you will get working SMS, Phone,.... - Buttons It's great!
Reply With Quote

  #6  
Old 26th August 2009, 08:00 AM
Jumba Jumba is offline
Senior Member
 
Join Date: Nov 2008
Posts: 146
Default

Heya, can we now use buttons that are out of the focus bar area? This wasn't the case in the beta.
Reply With Quote

  #7  
Old 26th August 2009, 09:15 AM
mysterd's Avatar
mysterd mysterd is offline
Senior Member
 
Join Date: Feb 2008
Posts: 139
Default

Sorry to be a little off topic or if I didn't search enough... But I haven't changed my ROM to a 6.5 one yet, so I don't really understand the titanium behaviour. Can you give me pointers to some information about that ?

From what I read here, in the normal titanium plugins, you can't have multiple clicking areas ? Is that true ? From the screenshots of software like JMLToday, I had understood that it was possible to have real buttons on a titanium panel (for example to enable / disable bluetooth and so on...). Am I wrong ?

Mods, if I'm way too off topic, please delete this post...

Thanks in advance for your help.

Cheers
__________________
MysterD


HTC Touch Diamond (P3700)
ROM : DiamondStone 5.0 for Orange FR by TekTonik
Radio : 1.15.25.14
Windows Mobile 6.1 (Buid 21042.1.6.1)


Orange SPV M600 (HTC Prophet) G4
ROM : My Diamond Edition 2 by Varanusvincent
Radio : 2.19.21
Windows Mobile 6.1 (build 20273.1.3.3)
Reply With Quote

  #8  
Old 26th August 2009, 09:56 AM
JMHL JMHL is offline
Senior Member
 
Join Date: Apr 2006
Location: Bordeaux
Posts: 238
Default

@MysterD : French sîte -> http://htc-touch-diamond.forumactif....out-t14134.htm

A++
Reply With Quote

  #9  
Old 26th August 2009, 10:03 AM
mysterd's Avatar
mysterd mysterd is offline
Senior Member
 
Join Date: Feb 2008
Posts: 139
Default

Thanks for your answer... I'm already a member of this forum, too

I'll try and read everything over there too...
__________________
MysterD


HTC Touch Diamond (P3700)
ROM : DiamondStone 5.0 for Orange FR by TekTonik
Radio : 1.15.25.14
Windows Mobile 6.1 (Buid 21042.1.6.1)


Orange SPV M600 (HTC Prophet) G4
ROM : My Diamond Edition 2 by Varanusvincent
Radio : 2.19.21
Windows Mobile 6.1 (build 20273.1.3.3)
Reply With Quote

  #10  
Old 26th August 2009, 12:45 PM
MichelDiamond's Avatar
MichelDiamond MichelDiamond is offline
Senior Member
 
Join Date: Jul 2009
Posts: 561
Default

Yes - Titanium itself has no workable buttons by default - but if you once use it - I already was a Fan of TF3D2 - I changed to Titanium. It's integrated in system - no third party - and uses much less RAM and Battery than TF3D2.
And it's easy to configure - not like the Manila-Files (please read the other Threads about "Titanium" as Search Tag - then you will see, how nice it is)

But - with JMLPanex - everybody can easily switch his Plugin to a Plugin with working Buttons (and WITHOUT 24/7-Script to do this!!!) - everybody can do this now - I don't know, if the users (and especially the Plugin-Developers) already mentioned it, what a Killer app is JMLPanex.

I will make an example as How-To tomorrow (with JMLToday - but you can use this in the same way for EACH TITANIUM-PLUGIN, that it gets workable Buttons in an easy an light way)

Reply With Quote

Reply

Tags
jmlpanex, titanium, titaniumrss, wm6.5

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:04 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.