• Welcome to TodayPlus Boards v2.
 

sysinfoplus v0.10.0

Started by arbitrajeu, November 17, 2003, 01:34:06 PM

Previous topic - Next topic

arbitrajeu

A few people have asked me to post up by system information region, very much following Lordtwisted's lead in providing skin "components" which others can use.

I've packaged up the relevant code into the attached .zip file, consisting of:
  • configextract.txt - The few lines you need to have your config.txt file.  You might need to replace existing/conflicting storage,... commands.
  • sysinfoplus.txt - A self-contained skin file with just the battery region.  You just need to extract the whole of the region 6 definition and insert it into your skin (possibly renumbering it to a different region, if necessary).  The initvar's should also be included - I like all mine at the top of my skin.
  • Images/icons - The default images/icons required.  You might like to replace some with your own icons, in which case either rename your icons or change the names in the skin.
  • Shortcuts - Some .lnk files which work for my iPAQ, but may need to be replaced for your PocketPC
Note that you will probably also need to amend the following lines from configextract.txt:

storage,internal,\
storage,storagepath1,\Storage Card\
storage,storagepath2,\iPAQ File Store\
storage,storagepath3,\Dummy\
image,storageicon1,\Program Files\TodayPlus\Images\Minimal\SD Card.png
image,storageicon2,\Program Files\TodayPlus\Images\Minimal\iPAQ File Store.png
image,storageicon3,\Program Files\TodayPlus\Images\Minimal\Dummy.png
shortcut,explorestorage1,\Program Files\TodayPlus\Shortcuts\ExploreSDCard.lnk,Explore SD Card
shortcut,explorestorage2,\Program Files\TodayPlus\Shortcuts\ExploreFileStore.lnk,Explore iPAQ File Store
shortcut,explorestorage3,\Program Files\TodayPlus\Shortcuts\Dummy.lnk,Dummy

This should be self-explanatory, but in general:
  • storagepathx - The reference to the x-th storage device.  If you don't have three storage devices, make sure the path points at a non-existent location, and sysinfoplus will ignore it, as shown above.
  • storageiconx - The icon to use for the x-th storage device.  Any icons you use should 13x19 pixels, or you should be prepared for some x,y tweaking.
  • explorestoragex - The shortcut .lnk file referring to what you want to happen when the storage meter is selected.  Mine calls Resco File Explorer 2003 with the relevant path - you may need to create different .lnk files.
Hopefully that's everything.  Do feel free to post questions here.  I hope you enjoy integrating this with your favourite skin.
[size=14]arbitrajeu[/size]
[size=12]todayplus moderator[/size]
[size=10]
iPAQ 3970, Windows Mobile 2003, 256MB SD, AgendaFusion 5[/size]

ya1950

arbitrajeu

Thanks for this. I already anticipated you and used your code with rbg08's skin in another thread. One question. For some reason I can't get the icon for the sd card to show. Everything else works fine. I changed the storeage1 path in the config file to reflect my CF card but this shouldn't affect anything that I know of. Any thoughts? Meantime I'm going to try the file attached to this post and see if it solves the problem. That failing I'm going to retype the config file. For some reason that I can't fathom cutting and pasting has messed up the config file in the past.

I applaud this move to post skin components as it makes the program a lot easier to use for non-skinners. If this move continues I'd like to suggest deciding on some conventions about which regions are usually used for what functions. This would make it even easier to 'assemble' a skin from components. Actually from the code I've seen this is already happening in a lot of cases.

Thanks a lot for sharing your hard work.

ya1950

Lordtwisted

QuoteI applaud this move to post skin components as it makes the program a lot easier to use for non-skinners

ya1950,

 why thank you verry much. I thought it would be easer for non skinners.
Batteryplus http://www.dark-mojo.com/TodayPlus/viewtopic.php?t=640&start=0


Lordtwisted :lol:

killroy

arbitrajeu,

Nice job. If LT didn't make batteryplus i would use you'rs. His has more info and i love the layout. Good work anyways.


Ronald Doner :lol:

arbitrajeu

Quote from: killroyNice job. If LT didn't make batteryplus i would use you'rs. His has more info and i love the layout. Good work anyways.
Thanks killroy.  

As I mentioned in another post, I'm a minimalist.  Therefore, I kept my system info region as small as possible, with single clicks being required to cycle between program/storage memory, up to three storage devices, free/used memory, elapsed/remaining battery time, soft reset time/elapsed time, etc.

I realise that some people prefer to be able to see more information at once, and it's one of the great things with TodayPlus that we can offer options for everyone  :D
[size=14]arbitrajeu[/size]
[size=12]todayplus moderator[/size]
[size=10]
iPAQ 3970, Windows Mobile 2003, 256MB SD, AgendaFusion 5[/size]

arbitrajeu

Quote from: ya1950One question. For some reason I can't get the icon for the sd card to show. Everything else works fine. I changed the storeage1 path in the config file to reflect my CF card but this shouldn't affect anything that I know of. Any thoughts?
I noticed that on the other post.

The first thing to check is whether you have the right path to the image file in the config.txt.  I have a nasty feeling those might have gotten out of synch in a few places in the process, as I moved from my dev environment, to Minimal release and also for sysinfoplus.  You will notice that in the configextract.txt it refers to the icons in the Minimal images directory... I always intended that people would amend the config.txt to point to their own Image directory... let's call it a "test" ;)

If checking that doesn't work, please feel free to post your config.txt and skin file and I'll take a look.
[size=14]arbitrajeu[/size]
[size=12]todayplus moderator[/size]
[size=10]
iPAQ 3970, Windows Mobile 2003, 256MB SD, AgendaFusion 5[/size]

ya1950

arbitrajeu

Thanks for the kind offer. Fortunately I used the version posted here, changed the region and the directories and now everything works like a charm. Don't know what was not working before but it's fixed now  :D

Thanks a lot for your hard work and support,

ya1950

ya1950

arbitrajeu

Another call for help. I'm trying to use your skin as part of a main page by shrinking the icons and moving 4 of them in a box pattern on the right. I think I've manged to move everything and it all seems to work except... pushing any button refreshes the entire region rather than just the button area. Does this sound like anything you can recognize quickly??? Also since I've shrunk the icons to 75% of their former size, do I have to now change the height and width variables of the button commands as well or does the program automatically compensate for this? As always, thanks very much for help.

ya1950

arbitrajeu

Quote from: ya1950Another call for help. I'm trying to use your skin as part of a main page by shrinking the icons and moving 4 of them in a box pattern on the right. I think I've manged to move everything and it all seems to work except... pushing any button refreshes the entire region rather than just the button area.
Hmm... I'm not sure.  Could it just be that you haven't moved or resized a button command appropriately?  Try the things mentioned below and if that doesn't fix it, do post up or PM me the config.txt.

Quote from: ya1950Also since I've shrunk the icons to 75% of their former size, do I have to now change the height and width variables of the button commands as well or does the program automatically compensate for this?
If you change the icon sizes you need to change the height/width of the button areas too.  These are indicated below:

image,127,0,%storageicon2%,t
if,storage,storage3
   button,127,0,13,19,-1,6,var10=3,6
else
   if,storage,storage1
      button,127,0,13,19,-1,6,var10=1,6
   else
   endif
endif

Also remember that if you resize the usage bars you need to change the button links for those too, thus:

draw,roundrect,142,10,26,9,100_100_100,h
button,142,10,26,9,-1,0,%explorestorage1,
[size=14]arbitrajeu[/size]
[size=12]todayplus moderator[/size]
[size=10]
iPAQ 3970, Windows Mobile 2003, 256MB SD, AgendaFusion 5[/size]