Developed on HTC Diamond (VGA 480 × 640) with standard Titanium (no WM7.. Project, etc....
JMLPanex program (JML Panel Execute) allows multiple hotspots on a plugin (-> Association picture/program).
new search algorithm :
1 - When clicked on panel, a plugin launch (via [ACTIONURL]) JMLPanex.exe passing as parameter the name of the plugin and page number (eg. "JMLToday PageN")
2 - JMLPanex :
--- get the coordinates of the click (x,y)
--- get the .CPR file corresponding to the content of "Software\\Microsoft\\CHome\\CPRFile" and actual resolution (eg. "Titanium" + 480 + 640 for Diamond VGA)
--- search in .CPR file, the Layer of the plugin (eg JMLTodayExpanded)
--- for each <Image ...> of Layer
------- verify if (x,y) is in image rectangle and get ID
------- verify if ID is in good Page (-> "Software\\Microsoft\\CHome\\plugin_name\\PageN\\I D" and it's value is not NULL (nothing or "" or "...null.png")
------- verify if ID is in PNX file in the good [PageN] section
--- if OK : run associate program
--- if KO :
------- get "default" program in PNX file in the [PageN] section
------- if "default" does not exist : get "Software\\Microsoft\\CHome\\plugin_name\\PageN\\A CTIONURLPNX"
------- run program
Changelog Version 0.99 :
- new search algorithm
- set a register key in plugin to specified the actual Page : "Software\\Microsoft\\CHome\\plugin_name\\JMLPanex Page" (= "Page2" 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
- Second
Install CAB file
- Third
Launch JMLPanexForPlugin.mscr to associate JMLPanex to a plugin.
Have Fun!
Original LInk:
http://forum.xda-developers.com/showthread.php?t=552373
Comment