• Welcome to TodayPlus Boards v2.
 

Temperature charts

Started by Timmy, February 21, 2005, 02:57:24 PM

Previous topic - Next topic

uk_skinner

Timmy:

  The DOW only checks the number of the characters, so AAA, BB and CC will work.  But if more than 3, it will set as 3.

Edit:  The train for ImageViewer and radar.exe is slowwwwwwww....Expect to get my new PC today and will try to set up the proper software.  Then I can start to learn C#. So be patient.....

Timmy

Quote from: uk_skinnerTimmy:

  The DOW only checks the number of the characters, so AAA, BB and CC will work.  But if more than 3, it will set as 3.

Edit:  The train for ImageViewer and radar.exe is slowwwwwwww....Expect to get my new PC today and will try to set up the proper software.  Then I can start to learn C#. So be patient.....

Uk_skinner,

Oh, you lucky one...  a new PC...  is always MUCH faster and better than the old one...  Wish you many funny hours behind it!

And ehh... I'll be patient!

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: uk_skinnerBroesel: could you please update your post in the German forum.  You can specify the format of DOW using "DOW=XXX, or XX, or X"  Thanks.

Done, thanks for the feature  :D

Regards Broesel

Timmy

Broesel,

I need your help!

I tried several things, but nothing works... Can you, please, give some good textlines for my next wishes:

- a button is on place 39,16
the beginning of the button textline is: button,39,16,12,15,-1,...  and the rest I couldn't find.

- clicking on this button must give the 'background_01.pic' on place 45,16
and 'c%var0%hourchart.pic' on place 50,20

Those pictures remain in the same region, region 3, the region of the weather forecast.

Broesel, can you fix those textlines for me?!? Would be very appreciated, cause I can't find the right textlines myself...

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: TimmyBroesel,

I need your help!

I tried several things, but nothing works... Can you, please, give some good textlines for my next wishes:

- a button is on place 39,16
the beginning of the button textline is: button,39,16,12,15,-1,...  and the rest I couldn't find.

- clicking on this button must give the 'background_01.pic' on place 45,16
and 'c%var0%hourchart.pic' on place 50,20

Those pictures remain in the same region, region 3, the region of the weather forecast.

Broesel, can you fix those textlines for me?!? Would be very appreciated, cause I can't find the right textlines myself...

Timmy

Don't know, if I understand that right, but I think, something like this:

button,39,16,12,15,-1,6,var25=1,3
..
..
..
if,var,var25,,=,1
image,45,16,background_01.pic,t
image,50,20,c%var0%hourchart.pic,t
button,39,16,12,15,-1,6,var25=2,3
else
if,var,var25,,=,2
button,39,16,12,15,-1,6,var25=1,3
other skintext
..
..
..
endif
endif


????

Regards Broesel

Timmy

Quote from: Broesel
Quote from: TimmyBroesel,

I need your help!

I tried several things, but nothing works... Can you, please, give some good textlines for my next wishes:

- a button is on place 39,16
the beginning of the button textline is: button,39,16,12,15,-1,...  and the rest I couldn't find.

- clicking on this button must give the 'background_01.pic' on place 45,16
and 'c%var0%hourchart.pic' on place 50,20

Those pictures remain in the same region, region 3, the region of the weather forecast.

Broesel, can you fix those textlines for me?!? Would be very appreciated, cause I can't find the right textlines myself...

Timmy

Don't know, if I understand that right, but I think, something like this:

button,39,16,12,15,-1,6,var25=1,3
..
..
..
if,var,var25,,=,1
image,45,16,background_01.pic,t
image,50,20,c%var0%hourchart.pic,t
button,39,16,12,15,-1,6,var25=2,3
else
if,var,var25,,=,2
button,39,16,12,15,-1,6,var25=1,3
other skintext
..
..
..
endif
endif


????

Regards Broesel

Broesel,

Ok, I think I understand it: I have to assign a new var to that particular button.  I'm gonna work with it. Maybe, I can work this out myself. If not, I'm coming back with new questions...

Thanks for leading my thoughts in the right direction!

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Timmy

Quote from: BroeselWell, I stated in the German PPC-Welt-Forum, how I implemented the
Temp- and Hourcharts in the skin, so here for all that are interested is an
easy way to call the pictures in the skintext:

Create two new registry-keys under \HKCU\Software\SRSSoft\TodayPlus\image :

Key 1: hourchart with content:
\Program Files\TodayPlus\Buffer\hourchart.png

and

Key 2: tempchart with content:
\Program Files\TodayPlus\Buffer\tempchart.png

where the value is the path, where you saved the pictures with radar.exe

Call the pictures in the skintext with:

image,x,y,%hourchart%,t

and

image,x,y,%tempchart%,t

It's an easy way to display them without changing the imagedir.

Regards Broesel
Broesel,

I've tried this for my five cities, but then this don't work, isn't it? I think this is only a solution when you have temepraturecharts for only ONE city, right?!?

I tried to find something for five cities, but couldn't find a good solution... I can put the right lines in the Registry, but after that I didn't find any textlines in the skinfile that did work...

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

uk_skinner

Timmy:

I never done this but you can try this:

1) Make key for hourchart of each city you have, like this :

Key 1: hourchart of city 1 with content:
\Program Files\TodayPlus\Buffer\hourchart1.png

Key 2: hourchart of city 2 with content:
\Program Files\TodayPlus\Buffer\hourchart2.png

2) in your skin call the image using: the varX is your city ID

image,x,y,%hourchart%varX%%,t

Timmy

Quote from: uk_skinnerTimmy:

I never done this but you can try this:

1) Make key for hourchart of each city you have, like this :

Key 1: hourchart of city 1 with content:
\Program Files\TodayPlus\Buffer\hourchart1.png

Key 2: hourchart of city 2 with content:
\Program Files\TodayPlus\Buffer\hourchart2.png

2) in your skin call the image using: the varX is your city ID

image,x,y,%hourchart%varX%%,t
Uk_skinner,

I already used the same textline in my skin, and I already put the same text in the registry, but it don't work...

Timmy

EDIT:
I forget to say that I've my own solution: Radar.exe copies the pics to my common TodayPlus image file. Then it's not difficult to get the pic on my screen: The textlines in my skin are easy to write.
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

uk_skinner

Timmy:

    I just tried, it worked when I added the registry keys.  Probably, there are some small bugs in your skin.  I would suggest that you send it  to broesel to review.

Timmy

Quote from: uk_skinnerTimmy:

    I just tried, it worked when I added the registry keys.  Probably, there are some small bugs in your skin.  I would suggest that you send it  to broesel to review.
Uk_skinner,

I'm sure I have some BIG bugs in my skin, as usual... First I'll try it myself, but if I don't be lucky, I'll ask Broesel to help me.

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: Timmy
I forget to say that I've my own solution: Radar.exe copies the pics to my common TodayPlus image file. Then it's not difficult to get the pic on my screen: The textlines in my skin are easy to write.

Timmy, if you copy the pics into your Image-Folder, there is no need
to use the registry for this.

You only have to call the images with the normal image-command:

image,x,y,hourchart1.png,t
image,x,y,hourchart2.png,t

and so on.
You only have to be sure, that the pictures are there and the names are right.

Regards Broesel

Timmy

Broesel,

I'm sorry I must tell you that all my efforts leads to nowhere... Every thing I try, fails...  So, please, help me again!

This is my skintext:

button,40,12,12,15,-1,6,var3=1-highlight,3
if,var,var3,,=,1
image,51,1,Tempback-01.png,
image,51,1,hourchart%var0%.png,t
button,40,12,12,15,-1,6,var3=2-highlight,3
else
if,var,var3,,=,2
button,40,12,12,15,-1,6,var3=1-highlight,3
updateregions,3,0
endif
endif


Explanation of the things I'm trying:
1) in an excisting region (region,3,0) I want to see temporaly the hourchart1.png
2) the highlighted button (button,40,12) is working: when clicking you see the box
3) when clicking on the button (button,40,12), the Tempback-01.png must appear in the background, and the hourchart.png in the foreground: this don't work
4) when clicking again, the original screen has to appear again: this don't work

What are the mistakes I made???

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom

Broesel

Quote from: Timmy
This is my skintext:
button,40,12,12,15,-1,6,var3=1-highlight,3
if,var,var3,,=,1
image,51,1,Tempback-01.png,
image,51,1,hourchart%var0%.png,t
button,40,12,12,15,-1,6,var3=2-highlight,3
else
if,var,var3,,=,2
button,40,12,12,15,-1,6,var3=1-highlight,3
updateregions,3,0
endif
endif


o.K. the codelines I gave you where only examples, but I made a fault,
it will not update your region without a rerendering of the region. So please
try this:

initvar,var3,2   //(this can be at the beginning of the skin to not show the pic)

if,var,var3,,=,1
       image,51,1,Tempback-01.png,
image,51,1,hourchart%var0%.png,t
button,40,12,12,15,3,6,var3=2-highlight,-1
else
if,var,var3,,=,2
button,40,12,12,15,3,6,var3=1-highlight,-1
endif
endif


Regards Broesel

Timmy

Quote from: Broeselo.K. the codelines I gave you where only examples, but I made a fault,
it will not update your region without a rerendering of the region. So please
try this:

initvar,var3,2   //(this can be at the beginning of the skin to not show the pic)

if,var,var3,,=,1
       image,51,1,Tempback-01.png,
image,51,1,hourchart%var0%.png,t
button,40,12,12,15,3,6,var3=2-highlight,-1
else
if,var,var3,,=,2
button,40,12,12,15,3,6,var3=1-highlight,-1
endif
endif


Regards Broesel
Broesel,

You gave the right lines. I'm a happy man: everything works fine now. Thank you very much for those textlines!!!

Timmy
Toshiba e750BT, WM 2003, Today Plus 0.11.0, WISbar Adv, Agenda Fusion, Pocket Slides, TomTom