Jump to content

Automatically run an app on connect?


Guest petebw

Recommended Posts

Guest petebw

Hi,

I have written a program which, when executed dowloads a web page on to my pc and then automatically copies it to my smartphone (I can therefore read it offline on my phone). This works really well and saves me paying connection charges on my phone. My only problem is that I would like it to run automatically when the phone is connected to the computer.

I would have thought there would be an option within activesync to do this or a daemon process I can create listening for some kind of device.OnConnect(DoSomething) method but I haven't been able to find anything. Am I looking for something that doesn't exist? I've looked on MSDN but maybe I'm missing something. Anyone got any ideas on how I could get it to work?

Any help much appreciated.

cheers,

-Pete

ps. If the program I've written would be useful to anyone jus gimme a shout and i'll post the source code & executables.

pps. I'm using activesync 4.2.0 (Build 4876) with an spv c550

Link to comment
Share on other sites

Guest SilentlyScreaming

Not sure if it will help, but looking at it from the other end of things, there is the notification queue system on the Smartphone side of things. Does anyone know if you can initiate a PC program to be run from the phone? If so, that might be your best angle of attack, as each time you synced, it would trigger an event.

If no-one can help here at Modaco, http://www.tutorialsall.com/POCKETPC/Notification-queue/ might be a good place to start, assuming your happy coding, which you seem to be :> I know its for PPC, but if you'll be using .NET, it should apply to smartphones as well?

Apologies if this turns out to be a red herring, but worth checking out...

[edit]

Also http://www.pocketpcthoughts.com/forums/viewtopic.php?t=36471 mentions http://www.phatware.com/hpcdbex.html as an app to edit the notification queue, don't know if its PPC only or not

Edited by SilentlyScreaming
Link to comment
Share on other sites

Guest petebw

Figured it out. It's the registry key HKLM\Software\Microsoft\Windows CE Services\AutoStartOnConnect

Thanks for your help though.

Link to comment
Share on other sites

Guest SilentlyScreaming

thanks for posting back the answer, others who one day have a similair query will now discover the solution.

Assuming they remember to search in the 1st place :>

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.