TodayPlus Boards v2

Programming and MOD Forums => Developer's Corner Discussion => Topic started by: uk_skinner on March 21, 2005, 05:05:26 PM

Title: A very big project
Post by: uk_skinner on March 21, 2005, 05:05:26 PM
Can you tell what was wrong on this screenshot?

Can not tell, look the title of this program, just right to the start at the top.

This is my on-going project, a new configure.exe.  With my limited knowledge, I was able to get some functions work out, such as search city and select base path, select skin file.  These information all were put into regsitry key.

If I can pull this out, next time is trying to get dll work out.  But it will be 10x even 100x harder than what I am doing right now.  But for fun.. :wink:
Title: A very big project
Post by: Wichtel on March 21, 2005, 05:17:45 PM
No word´s  :bow:  :bow:  :bow:
Title: A very big project
Post by: ZapMe1 on March 21, 2005, 05:37:57 PM
WOW !  (http://smileys.smileycentral.com/cat/36/36_2_13.gif)

I Knew it !   I Knew it !  I Knew you were SRS !!  8)
Title: A very big project
Post by: Broesel on March 22, 2005, 01:48:47 AM
Outstanding work again, keep on running ......   :D

Regards Broesel
Title: A very big project
Post by: Geezer on March 22, 2005, 07:40:59 AM
Very nice!  I see some VERY interesting possibilities where this could go.  But then again, I'm sure you do too and that's why you are working on it.  Sweet Butter!!!   :lol:
Title: A very big project
Post by: Timmy on March 22, 2005, 09:56:31 AM
Uk_skinner,

I admire your perseverance, I admire your wild, new ideas, and I admire your creativity!!!

From time to time you astonish all the skinners here!

Nice work, uk_skinner!!!

Timmy
Title: A very big project
Post by: ZapMe1 on March 22, 2005, 04:48:42 PM
UK,

Here is another idea for your "big project" quest !!  :idea:

Is it possible, to add an exe, triggered by a button in the skin, to close the current skin, open a "dialog box" containing skins currently installed in the skins folder, and with another tap, you can load a new skin ????

A simple imagebutton can be added to each skin that you want to switch to, that would launch this exe !!!
Maybe I'm just reaching here, but anything seems possible with TP, the Registry, and your EXE's !!
(http://smileys.smileycentral.com/cat/4/4_12_3.gif)

What do ya think ??  This would be a Great addition !!!  :wink:
Title: A very big project
Post by: Wichtel on March 22, 2005, 05:00:16 PM
007: Make a Shortcut (Imagebutton) somewhere in the Skin to the Config.exe, select your new Skin and tap on reload. :wink:
Title: A very big project
Post by: ZapMe1 on March 22, 2005, 05:09:12 PM
Ok, that was too easy !!  :oops:  (I like complicated)...  Thanks Wichtel ! (http://smileys.smileycentral.com/cat/346.gif)
Title: A very big project
Post by: Wichtel on March 22, 2005, 05:16:34 PM
You are like Thc, he always likes the complicated, too.  :D
Title: A very big project
Post by: Geezer on March 22, 2005, 05:34:12 PM
Quote from: "Wichtel"
007: Make a Shortcut (Imagebutton) somewhere in the Skin to the Config.exe, select your new Skin and tap on reload. :wink:


I think that is already in my skin.  Cause I change things too often.  :wink:
Title: A very big project
Post by: uk_skinner on March 22, 2005, 07:01:21 PM
Well, I have not completely get all the functions in configure.  And remember, this is not main program.  I am thinking this is my learning process and it will take a long time.  I don't even know how far I can go. :lol:
Title: A very big project
Post by: tree99 on March 22, 2005, 07:08:58 PM
UK

What ever you are doing, I bet It will be very helpful. Thanks in advanced anticipation.

If you need function ideas for a new configure exe... I have read in the forum that T+ used to use a text file to configure.  This would be nice to make happen again.  That way you could back up your T+ settings very easily. Maybe your configure.exe could save settings to the registry like the current config does but also have the ability to save and load settings to a txt file. That would be an easy way to help someone who is having setup problems as well.
Title: A very big project
Post by: uk_skinner on March 22, 2005, 07:37:26 PM
Quote from: "tree99"
UK

What ever you are doing, I bet It will be very helpful. Thanks in advanced anticipation.

If you need function ideas for a new configure exe... I have read in the forum that T+ used to use a text file to configure.  This would be nice to make happen again.  That way you could back up your T+ settings very easily. Maybe your configure.exe could save settings to the registry like the current config does but also have the ability to save and load settings to a txt file. That would be an easy way to help someone who is having setup problems as well.


tree99:

  Thanks for your confidence.  Your suggestion will be added.  

  I know PHM (free) can export/import the registry keys, you can try it.
Title: A very big project
Post by: tree99 on March 22, 2005, 07:57:00 PM
Quote from: "uk_skinner"


  I know PHM (free) can export/import the registry keys, you can try it.


Yes, thanks, I have been using it. You are always so helpful with everyones' comments and suggestions. Of course, everyon in this forum is so helpful.

I thought that if the config had a way of editing and saving txt files then you could type complicated rss feeds and weather stuff (and PHP if you ever get that into T+) with a text editor on your desktop with a keyboard.  The PPC is great for viewing data, but I prefer to use my desktop for input.
Title: A very big project
Post by: Broesel on March 23, 2005, 02:08:16 AM
Quote from: "tree99"
Maybe your configure.exe could save settings to the registry like the current config does but also have the ability to save and load settings to a txt file.


I think, this is an excellent idea. If I may suggest something to that too ...
It would be very nice, if the config.txt - file had sections, that could be
loaded in the registry.

Example:

//city-section
1,GMXX0039,7.999,10.333,c     (like in the reg,ID,Citycode,lat,lon,celsius)
2,GMXX0049,8.777,11.444,c

//image-section
c1hourchart,/Programme/TodayPlus/Buffer/c1hour.png
c1empchart,/Programme/TodayPlus/Buffer/c1temp.png

//var-section
var1,100
var2,200
var3,150

//text-section
text1,this text
text2,another text

If there are no data in a section: ignore (Do not owerwrite existing keys)

If there are data, create the registry-key and write the assumed data.

This would be much helpful, when creating things like you did with your
exe-files or provide the config.txt with a new created skin, so the vars
needed in the skin are created easily.

Regards Broesel
Title: A very big project
Post by: Geezer on March 23, 2005, 07:31:43 AM
You guys just continue to amaze me.  How you can extend such a cool program and make it even easier to use is absolutely astounding.  There is no program on my PPC that gets utilized like TodayPlus, thus, it takes up most of my tinkering time.  UK, if you CAN make it export/import with a text file, that makes things SO easy for the user to get help and save his configuration of the registry on the PC.  I'm willing to help where I can.  Cheers, mate!
Title: A very big project
Post by: uk_skinner on April 01, 2005, 03:48:14 PM
I think I am able to get 95% of config.exe works.  There are some of "features" that I did not know.  Here is the list.  If someone can let me know what are they and I think I should be able to do it.

1. Select Skin (EXE), Reload Plugin in General.
2. Batch in Shortcuts.

Also, I fixed some of something and added ok/cancel buttons at the bottom.  Perhpas, I can start to add new features in it.    :think:
Title: A very big project
Post by: uk_skinner on April 01, 2005, 03:54:37 PM
Quote from: "Geezer"
You guys just continue to amaze me.  How you can extend such a cool program and make it even easier to use is absolutely astounding.  There is no program on my PPC that gets utilized like TodayPlus, thus, it takes up most of my tinkering time.  UK, if you CAN make it export/import with a text file, that makes things SO easy for the user to get help and save his configuration of the registry on the PC.  I'm willing to help where I can.  Cheers, mate!


Geezer:

  By doing this, I found myself softreset my device so frequently.  Not becuase the program itself but due to the wrong format of registry key.  It is very risk to edit the registry key and could cause hardrest.  I would suggest that use utility program (such as PHM) to export the registry key and save as back-up.  I do however, would like to be able to generate two sets or regsitry key then you can switch them back and forth.  At this moment, TP only can use one set of key.
Title: A very big project
Post by: Broesel on April 01, 2005, 04:09:35 PM
Quote from: "uk_skinner"
I think I am able to get 95% of config.exe works.


Cool, that 's a lot ....


Quote
There are some of "features" that I did not know.  Here is the list.  If someone can let me know what are they and I think I should be able to do it.

1. Select Skin (EXE), Reload Plugin in General.


Take a look at

HKLM/SOFTWARE/Microsoft/Today/Items/TodayPlus/Enabled

Maybe you can disable and enable the plugin again via the exe
(Don't know if that works in exe, but that is, what you do, when going
to Start/Setting/Today)

Quote
2. Batch in Shortcuts.


No idea, sorry ....

Quote
Also, I fixed some of something and added ok/cancel buttons at the bottom.  Perhpas, I can start to add new features in it.    :think:


Fine, see the list below  :wink:  (Edit: Sorry, I meant above)

Regards Broesel
Title: A very big project
Post by: ZapMe1 on April 10, 2005, 04:58:16 PM
UK,

How is progress on "The Big Project" comming along ?? :?:
Title: A very big project
Post by: uk_skinner on April 10, 2005, 08:47:53 PM
Quote from: "ZapMe1"
UK,

How is progress on "The Big Project" comming along ?? :?:


ZapMe1:

  I am still learning the basics.  And will explore the different approaches.  I am focusing on weather part first .  The one I am working on could be part of TP and will be stand alone.  There are so many things to learn.
Title: A very big project
Post by: Broesel on April 13, 2005, 06:20:53 AM
Quote from: "uk_skinner"

There are some of "features" that I did not know.  Here is the list.  If someone can let me know what are they and I think I should be able to do it.

1. Select Skin (EXE), Reload Plugin in General.


Was searching an article I read, when playing with evc 3.0 and TodayPlugins.
What I remembered was, that you have to create a registry-key to
get the TodayPlugin showed on the todayscreen.
(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Today\Items)

There is a key existing for TodayPlus, with keys:
Type=
Enabled=
Options=

Enabled is 0 (disabled) or 1 (enabled) as far as I remember.

I think, what you can do is:
Select the skin to load, set the key Enabled= to disabled
then use
SendMessage(HWND_BROADCAST, WM_WININICHANGE, 0xF2, 0);
to let the PPC know, that there has changed something,
set the key Enabled= to enabled, use the SendMessage-command
again and the Plugin should unload an load again with the new skin.

Please read also here (how to install / uninstall a todayplugin):
http://www.pocketpcdn.com/articles/todayinstall.html

Hope, that helps you a little to come further ...


Regards Broesel
Title: A very big project
Post by: Broesel on April 14, 2005, 12:34:34 PM
Digged a little deeper, if you need the commands for C#
take a look at this link:

http://www.dotnetmonster.com/Uwe/Forum.aspx/dotnet-compact-framework/1160/Help-C-to-C-code-conversion

Don't know, if you need anything of that I provided ?

Regards Broesel
Title: A very big project
Post by: uk_skinner on April 14, 2005, 12:42:45 PM
broesel:

  Thanks for the information.

  I have not throughly explored that area yet.  I knew it will be different to make a today-plugin software.
Title: A very big project
Post by: Broesel on April 14, 2005, 01:38:22 PM
Quote from: "uk_skinner"
broesel:

  Thanks for the information.

  I have not throughly explored that area yet.  I knew it will be different to make a today-plugin software.


Hmm, that was not what I wanted to say. For this one there is no need
to write as a today-plugin, what i meant was to use these commands to
unload / load  TodayPlus after selecting another skin or by pressing
reload. I think that could be the way to make the system know, something
has changed and unload/reload the TodayPlus-plugin.

Regards Broesel
Title: A very big project
Post by: Rotlaus on April 14, 2005, 02:51:26 PM
Quote from: "uk_skinner"
 I have not throughly explored that area yet.  I knew it will be different to make a today-plugin software.


Indeed, i've learned it the hard way. It isn't as easy as it looks like. I've programmed my first own Today Plugin here (http://www.ppc-welt.info/community/showthread.php?t=66616), and its really extremely difficult. Big Respect to SRS. Now i know how difficult it is.

cu,

Andre
Title: A very big project
Post by: uk_skinner on April 14, 2005, 03:05:36 PM
Quote from: "Broesel"
Quote from: "uk_skinner"
broesel:

  Thanks for the information.

  I have not throughly explored that area yet.  I knew it will be different to make a today-plugin software.


Hmm, that was not what I wanted to say. For this one there is no need
to write as a today-plugin, what i meant was to use these commands to
unload / load  TodayPlus after selecting another skin or by pressing
reload. I think that could be the way to make the system know, something
has changed and unload/reload the TodayPlus-plugin.

Regards Broesel


Sorry,  :oops: , my mind was not "wondering" around.... :shock: