• Welcome to TodayPlus Boards v2.
 

News:

No news is good news.

Main Menu

Use Info for EZ-Download

Started by ZapMe1, November 06, 2004, 03:30:02 PM

Previous topic - Next topic

uk_skinner

Quote from: ZapMe1
QuoteI did complier for 2002 for once. I would "guess"  to chose 2003 Device and the exe will export to your 2002PPC and try run it from your device.
I tried that, but it couldn't communicate with my device !!

....But....

:arrow:   Update:   I DID IT !! :dance:    I used EVC 3.0, and rebuilt the text from the .vcw file that you sent me, UK !!   I started with a new file, and choose a "simple application", then "pieced together" the code...   Then I replaced the url to match my local radar...   and.....

SUCCESS !!!!!

EzDownload got the radar image in about 1 sec, and deposited it into the radar folder I set up in the TP directory !!   :approve:

Now, just need to know how to set up in the skin to call this image/exe !!


Good work!!!  I guessed I used 2003 device so did not have communication problem.

So right now, you can play to another level.  Try to read the parameters from the text file.

EzDownload is called using the "CreateProcess" code.  There are 8 variables in this code.  I only know 3 of them.  The first is the file path of exe you wish to call.  In this case EzDownload locates in /Windows.  If you want to change to other directory, I believe you have to change registry key.  The second one is the parameters for EzDownload.  It contais URL, file path for downloading file and other stuff.  The last one I know is for the process information for "CreateProcess".  It is better to close it once EzDownload finish the downloading.
One side not when I used EzDownload.  If you use AS as connection to internet, the file downloading will not work after 20-30 downloading.  I forgot the exact number.  This is I believe he bug of AS becuase I tested downloading with Wi-Fi, no problem at all.  This is just something in mind to watch for.  The problem can be fixed just disconnect your PPC and re-AS again.  I am going to send more complicate codes to you via email.  Have fun...

ZapMe1

Hi UK;

I got your email..  Thanks !!
I was able to open a new project, and open the .cpp file in it..   I compiled and downloaded the .exe, but when I tried to run it, nothing happened ??

What was this file supposed to do ??
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

uk_skinner

Quote from: ZapMe1Hi UK;

I got your email..  Thanks !!
I was able to open a new project, and open the .cpp file in it..   I compiled and downloaded the .exe, but when I tried to run it, nothing happened ??

What was this file supposed to do ??

I just send you an email.  It was my fault.  This time the url and file pathway will be input from a text file named "radar.txt".  If you read the codes you will see it.

ZapMe1

UK,

Do I just create a txt file called "radar.txt", and locate it in the "My Documents" folder ??

Are the url & file path just "plain text" in the file ??
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

uk_skinner

Quote from: ZapMe1UK,

Do I just create a txt file called "radar.txt", and locate it in the "My Documents" folder ??

Are the url & file path just "plain text" in the file ??

Yes, radar.txt file is a plain text file and you need to put it into My Documents.  I am sending you another email.

ZapMe1

UK, got the mail, created the .txt file in my documents, and tried to build the new radar.exe...
All went well, the radar.exe was compiled, and downloaded into my documents, but when run, does nothing !!  Not sure why ??
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

eemond

UK,

Can I get a copy of the more complicated code?

Thanks in advance...

uk_skinner

Quote from: eemondUK,

Can I get a copy of the more complicated code?

Thanks in advance...

emmond: No problem. Sent

ZapMe1: Please check your email and use the latest one I sent to you last night.

ZapMe1

Thanks UK, got it...
I'll work on it today and post the results !!
Thanks................
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

eemond

Did a little skinning this weekend in a few areas.

1. I liked what UK had posted on the page below:

http://www.jhollin1138.com/forums/viewtopic.php?t=1642&postdays=0&postorder=asc&start=20

The reply posted Tue Nov 09, 2004 4:23 pm (with the traffic report and map).

I wanted to be able to display any image (i.e. traffic.gif) in the RSS Text Region at line 1 for any given RSS Number.

Searched the attached for //EWE 14-NOV-2004 for a detailed "How to".



2. I wanted my News Ticker to show me the first three lines of all my RSS Feeds (originally showed 9 lines from the 1st two RSS Feeds)

Searched the attached for //EWE 13-NOV-2004 for a detailed "How to".

Have fun...

uk_skinner

Quote from: eemondDid a little skinning this weekend in a few areas.

1. I liked what UK had posted on the page below:

http://www.jhollin1138.com/forums/viewtopic.php?t=1642&postdays=0&postorder=asc&start=20

The reply posted Tue Nov 09, 2004 4:23 pm (with the traffic report and map).

I wanted to be able to display any image (i.e. traffic.gif) in the RSS Text Region at line 1 for any given RSS Number.

Searched the attached for //EWE 14-NOV-2004 for a detailed "How to".



2. I wanted my News Ticker to show me the first three lines of all my RSS Feeds (originally showed 9 lines from the 1st two RSS Feeds)

Searched the attached for //EWE 13-NOV-2004 for a detailed "How to".

Have fun...

Wow.... :shock:  :shock:  :shock:  :shock:  :shock:

I have read your instruction more.  But once you resize the image, do you have to do it every time?  ZapMe1 is trying to find a way to resize his weather image.  This maybe the answer..

By the way, how do you refresh the image?

Edit:  Your code "calcvar,var3,fromconfig,RSSGraphic%var2%" is very intresting.  I never used it before.  Mummm...must study hard...

ZapMe1

QuoteThis maybe the answer..


Alright eemond !!   :approve:

Resizing the images will open many new doors !!!    8)  :D
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

uk_skinner

Zapme1:

  I tried to modify html page you did before and point the image to the one downloaded by exe and stored in device.  It was faster and solve your fitting problem...  But I remembered you said it was still slow when you tried it.  Let me know if you still want to try it again...

ZapMe1

QuoteZapme1:

I tried to modify html page you did before and point the image to the one downloaded by exe and stored in device. It was faster and solve your fitting problem... But I remembered you said it was still slow when you tried it. Let me know if you still want to try it again...

UK,  were you able to load the modified image without the use of PIE ??  :drool:
ZapMe1

"The most knowledgable person in the world is not the one who possesses the most knowledge, but the one who surrounds themselves with the greatest number of knowledgable people"

uk_skinner

Quote from: ZapMe1
QuoteZapme1:

I tried to modify html page you did before and point the image to the one downloaded by exe and stored in device. It was faster and solve your fitting problem... But I remembered you said it was still slow when you tried it. Let me know if you still want to try it again...

UK,  were you able to load the modified image without the use of PIE ??  :drool:

Sorry, no... :?

You still need PIE to pen the image.  It is the same as you did before, just should be faster since it open the image in your device.  At this case, PIE just like image viewer.