Scheduling running a program - JASJAR, XDA Exec, MDA Pro General

Is there any program that will run a program at a given interval ie run the program every hour (or a set duration)? Also being able to start the program if the Exec was turned off?

Related

Program to handle GPRS automaticlly

I would like a program that can do the following:
The main purpose is that the program should be 100% automatic and will after a easy configuration be left alone and handle GPRS to be online whenever there are GSM/GPRS available.
* Create a connection (in system/connection) automaticly from a file or something.
* With the created connection above, the program should automaticly connect. From suspend mode and after a soft reset.
Anyone knows a good program that can do this or a great programmer that can supply features like the above (and more).
Best regards
Zomen
advise
1. use ConnMgrEstablish to establish GPRS connection
2. Create a hide window to received message when the connection status changing.
3. soft reboot issue: writting a service to these or config the target device to run your app at startup time.
4. active device on suspended state mode: try API CeSetUserNotification
Hi Zomen,
I think you will need to look at Connection Manager API. It handles all low level connections on the device, including GPRS. It can be found here -
http://msdn.microsoft.com/library/d...s/apippc/html/ppc_cnmn_connection_manager.asp
And here is an example -
http://www.codeguru.com/cpp/w-p/ce/pocketpc/article.php/c7355/
Cheers,
Dav
Thank you for the answers but how about using RAS to make the connection?
And remember that the purpose of the application is to work on a Mobile 5 device.
/Zomen
hi,
Hmm, I think it should be ok to work on Mobile 5, but I have only been using 4.21 so cant be sure. However, there is a helper sample which comes with Embedded Visual C++ 4. If you have EVC4 You can find it here -
C:\Program Files\Windows CE Tools\wce420\POCKET PC 2003\Samples\Mfc\Cmhelper
And there is further information here about the sample here -
http://msdn.microsoft.com/library/d...s/guide_ppc/html/ppc_about_cmhelpersample.asp
You can use the sample to build a GPRS connection exe which will handle GPRS connections for you. At least on 4.21, havent tried on Mobile 5.
Cheers

ActiveSync every 5 minute

Hi, new to the form. This is a useful place!
Am with O2 Mini S, 1.5.70, AS 4.1, XP sp1, Oulook 2k3.
Does anyone notice AS runs every 5 minutes? I first tried the Add Server Source hack by WM5 Axim users, but didn't work. I couldn't find any registry entry that relates to the sync frequency.
Apart from suffering the unplug usb and wizzard freeze problem seen here. AS syncs every 5 minutes really annoys me. I need to rely on AS's tcp via bluetooth to use networking on the device and AS is heavy weight process.
So far, I have some solutions:
1. kill the wce* processes, which leaves the device connected (TCP stack still works, USB charges) but AS on the desktop says disconnected. Your wizzard's AS will still TRY to sync every 5 minutes, but it'll return quickly because the desktop ain't listening. But remember to double click AS on your desktop when you need to sync stuff again.
2. Replace the useless MS bluetooth stack with the widcomm stack taken from the Atom? Then use the PAN profile for connection. Disconnect PAN and run AS via bt from the device when needed. (But PAN on PC is not always possible as company laptops will almost certainly not allow internet connection sharing, never mind allowing you to have BT PAN enabled in the first place)
So afterall, does anyone know how to re-enable manual syncing? Some registry hack? AS 4.x is such a big step backward, I already have to disable firewall and VPN service from my company laptop when connecting, AS 3.8 was so much better when I was with an ipaq or SP3i. May be a sticky with enough post on it to get M$' to fix AS.
There are numerous threads relating to AS 4.1 and starting every x mins .... Please try to search next time....
Anyway, the simplest way is to create a dummy server entry in AS (On the mobile device) then when creating it uncheck all the "MAIL / NOTES / ..." entries in the advanced section. Once the Server has been created you can modify the server sync to set it to never.
For more info have a look through this forum for other threads on AS 4.1.
sorry if that has been talked about alot before, I suspected it. But I did a search before and couldn't find related stuff on this site, plenty of firewall/VPN stuff found which I also had a problem with...
The Add Server Source hack has been widely referenced in the dell Axim WM5 forums. As I mentioned, it didn't work for me, my ROM is very recent, as the phone is new for two weeks. I couldn't find any entry in the device registry that suggests it will run at any schedule! Although I can see peak time settings...etc but none of the scheduling options in registry.
Am really wondering if this is a problem with the specific ROM.
Yeah, I aplogise, am I bad, didn't read all your post....
Have you got any other apps that try to update regularly like Weather plugins etc?
I can agree with humps on that.
I've got a new k-jam and tried to stop AS4.1 from syncing when not connected to pc, by creating a fake server then through options setting it to manual sync.
No luck however as it still comes up in the list of running programs whenever i check :evil:
fix for constantly syncing when USB-connected
Sorry in advance if this isn't the right place for this.
I was so mad about Activesync 4.5 re-syncing during two out of every five minutes when connected via USB that I implemented a workaround that might prove useful to others as well. The result is that you can click an icon on your desktop computer and instantly change whether your handheld willl connect to its partnership for syncing or as a guest for doing other work (or just charging). Most of my data syncs wirelessly with an Exchange server anyway, and MightySync and PocketController function independent of the ActiveSync partnership. Ah, the peace ;-)
Here are the steps:
1. Change HKLM\Software\Microsoft\Windows CE Services\GuestOnly to "1".
2. Export HKCU\Software\Microsoft\Windows CE Services\Partners\[your device's partnership key] to a .reg file with name like "partnership.reg".
3. Create a batch file or script to stop WCESMGR, import the .reg file (regedit /s = silent) and restart WCESMGR. Name it like "partnership.bat".
4. Make a copy of the .reg file, edit it to *delete* the reg info (place a minus sign inside the beginning bracket of each key/subkey name), and name it like "guest.reg".
5 Create a new batch file or script to stop WCESMGR, import the guest.reg file and restart WCESMGR. Name it like "guest.bat".
6. When you execute "guest.bat," your device's partnership is deleted, and with the "GuestOnly" key enabled and no partnership found, ActiveSync will connect it as a guest without asking. After you execute "partnership.bat," ActiveSync will be ready to recognize your device on connection and sync.
7. Now, create a batch file or script that allows you to choose which .bat to execute, so you have one thing to click to go back and forth between connection types.
As will be obvious, I'm not a programmer AT ALL. I use pskill to clobber WCESMGR, and CHOICE.EXE copied form Server 2003 to choose connection type. It could be done more elegantly...but it sure works.
Only caveat: Later changing of syncing settings might require re-export of .reg key and recreate/edit of.reg-delete file.

ActiveSync jumps out of nowhere on my Exec

Just sitting in a restaurant, no wifi, not connected in anyway to anywhere.. and the Activesync shows up ?!?!? Writing the correct last time I synced my device (which was this morning at home). WTF is this?
go to activesync app on the ppc
create a server source
enter a totally fictitious name and address
follow the wizard, dont select any items to sync
set the period to sync as manual for both
finish the wizard
open the options
delete the new server source
the default setting is to auto start and sync, by creating the fictitious entry it allows you to change those settings
deleting the server source retains the sync period settings
simon_darley said:
go to activesync app on the ppc
create a server source
enter a totally fictitious name and address
follow the wizard, dont select any items to sync
set the period to sync as manual for both
finish the wizard
open the options
delete the new server source
the default setting is to auto start and sync, by creating the fictitious entry it allows you to change those settings
deleting the server source retains the sync period settings
Click to expand...
Click to collapse
Simon,
I have done this numerous times when I had the O2 ROM. Now I have the IMate ROM, it works if I am not connected to anything, so that is good, for that is what I want. One thing I notice when I am connected through WIFI, active sync application on my Exec still opens up on the background. Are you having the same experiences with this setup or am I missing a setting here?
my active sync doesnt auto start AS at all anymore if i set the server source to sync manually, then delete the server source.
i use wifi a lot and it also doesnt start it.
there could be other reasons such as programs you have that auto update from the web when wifi is running, eg SPB weather. again, i set this to update manually.
what other programs do you have that require or use an AS or WIFI connection?
simon_darley said:
there could be other reasons such as programs you have that auto update from the web when wifi is running, eg SPB weather. again, i set this to update manually.
what other programs do you have that require or use an AS or WIFI connection?
Click to expand...
Click to collapse
I think you are right. I forgot about Pocket Weather's update settings. Thanks.

how to start a program on a PC from the PDA

Hi,
I need to start a program on my PC from my XDA (connected by ActiveSync 4.5). I'm running Windows Mobile 5. How could this be done?
Regards, Gerrit
therminal services
and vnc
are 2 ways to do it
I don't want to see the PC's screen on my PDA (will be very slow anyway). I just need to be able to start a program (for example "notepad.exe") on the PC. I don't have to see the program on my PDA. It just has to run on the PC. That's all!
Regards, Gerrit
I think it is only possible to start an application on the device
from desktop with RAPI. The other way is not possible with
ActiveSync. You can write your own server that runs on the desktop
and a client on the ppc. Then send commands from pda client
to the server that starts then your application.
Houser
Hello Hauser,
Problem is that the command has to be possible both with ActiveSync (cable) and when syncing with GPRS/UMTS (wireless). Could this be done with RAPI?
Regards, Gerrit
If you use GPRS then you cannot use ActiveSync.
ActiveSync is only possible if you connect via USB.
RAPI can only be used from a desktop application to communicate with
the pocket pc, copy files, start applications on the PPC,...
So what do you want to do exactly with your app?
Houser
when connected to the pc using activesync or wifi or bluetooth PEN
make a normal network connection
and it should be transparent for the applications as they just see the connection
Hi Houser,
1. My PDA application exports lines from a PDA database to .CSV files.
2. On my PC I have to run an import & conversion program to load the exported lines into a server database
3. My PDA has to import other (new) files into the PDA's relational database
With USB syncing this works fine. I now have to run the PC's program manually. I want to control the whole process now from my PDA.
That's all...
Regards, Gerrit
If I remember right, a drive symbol is mounted on "My Computer" when Active Sync connects the device, right? So has anyone already tried to use an autorun enrty (autorun.inf like on CDs) on the PocketPC?
broekhuis said:
Hi Houser,
1. My PDA application exports lines from a PDA database to .CSV files.
2. On my PC I have to run an import & conversion program to load the exported lines into a server database
3. My PDA has to import other (new) files into the PDA's relational database
With USB syncing this works fine. I now have to run the PC's program manually. I want to control the whole process now from my PDA.
That's all...
Regards, Gerrit
Click to expand...
Click to collapse
So ok.
I would do this as follows:
1) Write a desktop application that uses ActiveSync RAPI to start you PDA export application
2) Then in your desktop app use RAPI to copy the file from PDA to desktop
3) In your desktop app start the import & conversion program with the file from the pda
4) If you want to import a file to the PDA database you can copy with RAPI to pda and then start with RAPI the pda import application
So I would not go on searching how to start a app on desktop from pda. Let the desktop application handle it.
Houser
Hi,
Problem is that a technician on location (at a customer or at home) should be able to synchronise, without going to the office. In other words: the PDA is the device that starts the communication process, not the PC! This is also what is so problematic...
Regards, Gerrit
about autorun on the pda then i dont think it will work havent made the test
but modile devices like
gmail drive
digicams
and such dont get drive letters
and i think only devices which get drive letters can use
autostart because those other devices dont seem to be "really" connected untill one click on them
you could write a service for the pc which would be listening for a network connection from the pocketpc
you could make it so it would run any applications you told it
you could give it a parth and arguments
then as soon as you got a network connections by what ever means your pda could start sending commands to the pc which it would then execute as in start programs
of cause it does require you to code a bit of c++ or .net but not tooo complex stuff if one is a programmer
Two points:
The PDA is not mounted as a drive, ActiveSync controls all access to it (even though it is integrated in the explorer) so autorun.inf can not work.
Redugar is right, for you purpose - accessing the PC directly and by remote, you need a little server app on the PC. Just use windows sockets to listen to a connection.
On the PPC side you can use the constant ppp_pear when the device is synced to get the PC address and the regular IP (I assume you have a static IP) for access via GPRS.
I did something like this a couple of years back - a server on the PC that checks a page for updates and provides them to a device when it connects and asks for them.
salling software
You might want to look into this company http://www.salling.com/Clicker/windows/scripts.php
http://www.salling.com/forums/viewforum.php?f=15&sid=45e42aa57aeb994b7b02e8ab12dc1794
Their software controls programs such as PowerPoint, WMP etc, might be a script out there that you could modify to open any program. Connects via BT and WiFi. Works real nice with my wizard with my MCE Dell running Toshiba BT Software.
About Salling Clicker..
anothersmith said:
You might want to look into this company http://www.salling.com/Clicker/windows/scripts.php
http://www.salling.com/forums/viewforum.php?f=15&sid=45e42aa57aeb994b7b02e8ab12dc1794
Their software controls programs such as PowerPoint, WMP etc, might be a script out there that you could modify to open any program. Connects via BT and WiFi. Works real nice with my wizard with my MCE Dell running Toshiba BT Software.
Click to expand...
Click to collapse
Yeah. Salling Clicker is a great software for starting or ending programs on your pc using bluetooth or wifi! the first time i installed the software,i was amazed and i played a prank on my sister.she thought that there was something wrong with the computer because it started itunes/powerdvd on its own... and i was in the other room controlling my pc..hahaha...
i've Been looking for a "script" that'll allow you to open any file/program (so are a lot of people who use salling clicker)..been following it up and As far as i know, there is still no Salling Clicker "script" that allows you to open any program on your pc.. you have to make a "script" specific to the program you want to start/control/stop.
Houser said:
If you use GPRS then you cannot use ActiveSync.
ActiveSync is only possible if you connect via USB.
RAPI can only be used from a desktop application to communicate with
the pocket pc, copy files, start applications on the PPC,...
So what do you want to do exactly with your app?
Houser
Click to expand...
Click to collapse
What?
ActiveSync can work through Bluetooth or Infrared as well.
Also, why go through all of this trouble? Run an SSH server on the PC. SSH into the PC.
C:\Documents and Settings\Administrator> start "C:\Program Files\My Program Path\My Program.exe"
Doesn't this do what you want?

GPRS keeps on auto connecting...

Hello,
I've a small issue with my GPRS connection...
My X1 keeps on connecting to the internet automaticly... thier is no specific timing patterns or anything like that... and it has become a problem since it costs...
My settings
-----------------------------------
ActiveSync is disabled
WLAN is disabled
Microsoft Direct Push is disabled
-----------------------------------
13 processes running
-----------------------------------
s2u2.exe
iLock.exe
Biotouch.exe
cprog.exe
panelManager.exe
connmgr.exe
shell32.exe
gwes.exe
device.exe
filesys.exe
NK.exe
CommManager.exe
services.exe
-----------------------------------
any clue?
My guess: Windows Live.
It keeps auto connecting.
Or Handago store, or maybe GPS...
forgot to add that QuickGPS is also disabled..
but I never login on msn... and its off :S
turn off your HSPDA
If you do not need any internet connections, just delete the internet profiles of your provider. I've done so, because I don't need it and my provider gets paid by minutes, not by traffic... not so good, if your mobile dials in over night (for what reason ever).
Greetings
Action_Heinz said:
If you do not need any internet connections, just delete the internet profiles of your provider. I've done so, because I don't need it and my provider gets paid by minutes, not by traffic... not so good, if your mobile dials in over night (for what reason ever).
Greetings
Click to expand...
Click to collapse
Or use the program NoData
http://www.modaco.com/content/pocket-pc-software/246171/new-free-utility-nodata/
fring also auto force connect
Well but anyway the device should NOT connect by itself...
Maybe Fring indeed??

Categories

Resources