TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: Alex| on March 22, 2005, 09:07:51 AM

Title: if online doesn't work?
Post by: Alex| on March 22, 2005, 09:07:51 AM
Hi,

writing a bit TD+ skin code and I wonder how to use if,online
I can't get it to be true - the ppc is connected via usb and it _is_ online.
Or does this condition gets only true while (active)syncing?! Cause I'm searching for a posibility to update/refresh TD+ automatically _without_ AS...
So how to check if online?
Title: if online doesn't work?
Post by: Broesel on March 22, 2005, 09:53:06 AM
Well, I think there is no command, that real checks, if you are online.

My opinion is, the if,online ... command is referring to the button-command,
that sets rss-links to "online", so if you click on an RSS-Link, it opens
a pie-window and does not search for local saved pages.

Regards Broesel
Title: if online doesn't work?
Post by: Alex| on March 22, 2005, 09:58:19 AM
Hmm... ok :(
I'm trying not to be too frustrated ;)
Had the idea to check online state and then refresh the (weather)data...
Title: if online doesn't work?
Post by: Wichtel on March 22, 2005, 10:01:08 AM
To understand how to work with "if online" study the RSS Region of Hammerskin.  :wink:
Title: if online doesn't work?
Post by: Alex| on March 22, 2005, 10:16:33 AM
Hmm, help me a bit...
I can't find the trigger of that condition. Is if,online a system related function or is it just triggered by a button?
I read the rss section but it seems I'm blind...


Btw - I'm the german linux guy from ppc-welt who totally messed up your hammerskin ;)
Just preparing a post in the Skins forum on ppc-welt...

---
edit

Ah ok, found it
->
RSS / Weather
30 -> Online. Changes rss links to online.
31 -> Offline, Changes rss links to offline.

So it is manually triggered...

But then I want to know when exactly poweron is used?
Does this exist in the current TD version?
In case I could get this working I would be happy ;)
poweron,-1,7,-1
Title: if online doesn't work?
Post by: ZapMe1 on March 22, 2005, 04:08:48 PM
Quote from: AlexlBut then I want to know when exactly poweron is used?
Does this exist in the current TD version?
In case I could get this working I would be happy ;)
poweron,-1,7,-1

I'm not sure anyone has got "poweron" to work correctly !!
This Thread (http://www.jhollin1138.com/forums/viewtopic.php?t=1717) that I posted awhile back, may help with what you're looking for !!  :)

To also update the "city.txt" info, you can add the info and EXE's that UK_Skinner made, found Here ! (http://www.jhollin1138.com/forums/viewtopic.php?t=1763)

If you decide to use this, just ask if you need any help !!!  :!:
Title: if online doesn't work?
Post by: Alex| on March 22, 2005, 04:21:13 PM
But you do only start an exe file, don't you?
I'm trying to do a refresh of TD+ (with is done via button command 7).
Title: if online doesn't work?
Post by: ZapMe1 on March 22, 2005, 04:26:46 PM
Yes, this process does start an exe, but will do the same as if you used button command-7..  If you add the city.txt to radar.exe, then all current information is updated !!
Title: if online doesn't work?
Post by: Alex| on March 22, 2005, 05:37:57 PM
Ok, have tried the radar.exe - with that I can update the city.txt automatically but there's still the question how to update TD+ - because the plugin does not know about the new file and even when I switch the plugin pages there is new weather information but the 'last update' time is still the old one (and in case it was hours ago the weather page does not show all 4 days...).
Title: if online doesn't work?
Post by: Broesel on March 23, 2005, 02:29:19 AM
Quote from: Alex|Ok, have tried the radar.exe - with that I can update the city.txt automatically but there's still the question how to update TD+ - because the plugin does not know about the new file and even when I switch the plugin pages there is new weather information but the 'last update' time is still the old one (and in case it was hours ago the weather page does not show all 4 days...).

The problem is, that TodayPlus writes a file for every cityx.txt called
cityx.txt.time, where the updatetime is stored. We didn't find out the
format of the file until now, so we are not able to write this one from an
exe-file or script. Therefore you have to do both updates (TodayPlus-refresh
and update via radar.exe) to get the right updatetime. But I don't think,
that it is possible to do this automatically (maybe uk-skinner has an idea)

Regards Broesel
Title: if online doesn't work?
Post by: Alex| on March 23, 2005, 05:50:36 AM
If there will ever be a solution to that I would be happy to test it out ;)
I wrote a workaround with nscriptm that simulates a pen tap on the needed buttons... doesn't look quite professional, what? ;p
Title: if online doesn't work?
Post by: Broesel on March 23, 2005, 05:57:14 AM
Quote from: AlexIwrote a workaround with nscriptm that simulates a pen tap on the needed buttons... doesn't look quite professional, what?

Well, if it works, why not ? There is no one professional on this board and
everything we get here is a compromise. Does your script do what you
want after synch or does it notice, if the ppc is online ?

Regards Broesel
Title: if online doesn't work?
Post by: Alex| on March 23, 2005, 06:09:01 AM
What I want - update TD+ and load new rss data with pocketrss.

At the moment the script is started manually with a hardware key. But it could be also started with these PHM Power Toys linked above in the other post. I'm trying to start it remotely but that doesn't seem to work (no idea why)
The script itself focuses the today screen, taps the TD+ main page and then the refresh button. While TD+ refreshes, the script starts pocketrss and reloads its rss data.
Contra - during that time the pda is in use - you cannot work with it
Pro - you don't have to do it all yourself and the script can be expanded on any other app.

Right now it's the best I can do. I'm running on linux here without ActiveSync - so I have to take what I get ;)
Title: if online doesn't work?
Post by: uk_skinner on March 23, 2005, 06:21:03 AM
Quote from: Alex|What I want - update TD+ and load new rss data with pocketrss.

At the moment the script is started manually with a hardware key. But it could be also started with these PHM Power Toys linked above in the other post. I'm trying to start it remotely but that doesn't seem to work (no idea why)
The script itself focuses the today screen, taps the TD+ main page and then the refresh button. While TD+ refreshes, the script starts pocketrss and reloads its rss data.
Contra - during that time the pda is in use - you cannot work with it
Pro - you don't have to do it all yourself and the script can be expanded on any other app.

Right now it's the best I can do. I'm running on linux here without ActiveSync - so I have to take what I get ;)


If I understand your intention clearly, you wish to run a script(or exe) that can trigger the pocketrss to run when TP uodating, right?  Can this script can be run in the file explorer?  If it can, then add it to the Tpdelay and it will be run while your TP update.
Title: if online doesn't work?
Post by: Alex| on March 23, 2005, 06:32:11 AM
No - if I understand _you_ right ;)

I do not have activesync - so TD+ never gets the sync trigger to refresh itself automaticaly. I always have to tap the refresh button because there is no such option like 'refresh on online connection' - just that 'refreh on sync'

With pocketrss it is the same - it can only update automaticaly when AS syncs with the pda.

I tried to find out how to trigger/emulate the ActiveSync signal that causes pocketpc apps (in general) to update but I had no luck so far.

With that little nscriptm script I do simply automate the pen taps on the screen.

All the exe files mentioned here in forum can't help me because they all depend on either refreshing TD+ by pressing the button or refreshing TD+ by syncing with AS.

I don't want a file that starts several other apps together with TD+ - I want a file that updates TD+ when an online connection is established.
Title: if online doesn't work?
Post by: uk_skinner on March 23, 2005, 06:48:16 AM
QuoteNo - if I understand _you_ right Wink

I do not have activesync - so TD+ never gets the sync trigger to refresh itself automaticaly. I always have to tap the refresh button because there is no such option like 'refresh on online connection' - just that 'refreh on sync'

Sorry.:oops:

Maybe you should look for other events beside AS, such as "power-on" from notification.  It is indeed that you can have an exe to check the online connection and trigger the event.  But you need to keep it running at background.  I sort "dislike" an idea keeping an exe running constantly.
Title: if online doesn't work?
Post by: Alex| on March 23, 2005, 06:54:54 AM
I tried it with the poweron function of TD+ but I couldn't get it work.
I'm now relatively satisfied with the tap emulator here - maybe I'll found another solution sometime...