Related
Hi guys,
Hope this hasn't been asked before too many times. I did do a search but couldn't find anything.
I've just written a small app for ppc (works on 2002, 2003 and WM5) to act as a countdown timer. However, unless I set my Wizard to never shutdown, it turns off whilst the timer is still going.
I've had a look through the latest SDK's (I'm using Visual Studio 2005 and the latest version of the Compact .NET Framework) but can't figure out how to stop this.
The only way I can think of is to find the reg key that controls this (I assume there is one), copy it, set it to a rediculous or null value and then copy it back again on shutdown. But it seems like a god awful solution and prone to any number of errors where it doesn't get copied back.
Is there a simple ".NET" way to do this?
BTW Although I've been a developer for [cough] years, I've never written anything for PPC before.
Cheers,
Bassey
Hi
take a closer look at HKLM\System\CurrentControlSet\Control\Power. There you will find system and user idle timeouts. To prevent a PocketPC WindowsMobile system from going to sleep, you must reset the System idle timer periodically. This is done by a call to
void WINAPI SystemIdleTimerReset (void);
I think this will be the same for WinCe 3.0 up to WinCe5
If you think about a good programming starter book, I recommend Douglas Boling 'Programming Microsoft Windows CE .NET' (3rd edition). It talks about nearly everything. It is my favourite book.
regards
Josef
Thank you very much indeed. Have just ordered the book as well.
Cheers,
Bassey
I have been searching the web for years trying to find the solution to what I would consider is a very simple requirement:
From Outlook on the PC, right click on a contact and dial to a connected Pocket PC via Activesync.
Now, either I am alone in this world, or my search capabilities are flawed. This is a function/capability I used to have with my old Sony-Ericsson & I am missing it badly - yes, I know there is a Powertool that provides you with a "window" to your PPC, but I have found that this is somewhat flakey, doesnt like Landscape mode and frequenly freezes the PPC.
Further, I have enhanced my Access application to perform the dialup via the CPROG.exe, what I am after is the same or similar functionality direct from Outlook... please help!
Is there anyone out there that can help me?
looking for the same
it seems we both live in the same world
Come on guys, are you really telling me there isn't anything out there at all?
err so remind me why one would want to do this other than to write some annoying dialer program?
OK, rather simple, really:
Working from Desktop PC, with PPC connected via ActiveSync and sitting in a cradle - by definition, this makes it a pain to access the PPC.
Current Scenario:
1. PC has Outlook open, search for a contact that you wish to converse with
2. Open Contact
3. Look at number
4. Lean over desk, usually spilling coffee, or unintentionally moving to another website
5. Try to use Stylus to dial number (or use Intellidialer to access the same contact you have in Outlook)
6. Make call
7. Hope you have put in the right number
8. Call goes to voicemail, throw phone against wall
All in all, a rather cumbersome scenario.
Preferred Scenario:
1. PC has Outlook open, search for a contact that you wish to converse with
2. Open Contact, or right click on Contact
3. Select number to dial
4. "Magical programme" sends dial request to PPC
5. Make call
6. Call answered, sale made, kids go to expensive Private School and Wife loves you forever
Makes sense now?
yep so get one of those programs to control your phone from the desktop?
sure its not what you really want to do but it will do the job
st3v3 said:
yep so get one of those programs to control your phone from the desktop?
sure its not what you really want to do but it will do the job
Click to expand...
Click to collapse
Did you ever read his first post?
yeah for about 4 or 5 seconds, gave pity and responded for the simple fact no one else did and thought i would show some interest.
at least some of us make an attempt eh helterskelter
Thanks for your pity, but I would prefer to know what, if anything, is out there. Obviously, I was mistaken in believing this was the font of all wisdom and exciting development in the PPC world. I truly cant believe that nobody has thought to put this together. Funnily enough, there is one that does this via Bluetooth, but as the XDA Mini wont allow multiple Bluetooth connections, I have been "forced" to find out if there is anyone clever enough to make this happen :sigh:
Hi!
I miss this funtion in windows mobile. This is the only reason why I consider to go back to my old Ericsson.
A little bit strange that it works with other software but not with Microsofts own?
Using .net you might be able to write an app (server) that listens on an open port on the PPC for coms from the active sync pc. When a certial string is sent down this port DIAL(123456789) the app calls the dial command in .net framework.
Maby its time to bite the bullet and code it.
Im having to with another app
No need for a PPC app, as you can already do this from the desktop - using:
rapistart.exe "cprog.exe -n -url tel:numbertocall"
from within any ap. I have done this from my Access program, I was looking to see if anyone had done this for Outlook as a plugin for the Desktop, or indeed some form of TSR on the PC that will take a hotkey and use the above for a highlighted number (yes, I know that I am now officially in fairyland).
mlk said:
No need for a PPC app, as you can already do this from the desktop - using:
rapistart.exe "cprog.exe -n -url tel:numbertocall"
from within any ap. I have done this from my Access program, I was looking to see if anyone had done this for Outlook as a plugin for the Desktop, or indeed some form of TSR on the PC that will take a hotkey and use the above for a highlighted number (yes, I know that I am now officially in fairyland).
Click to expand...
Click to collapse
Nope this can then be done using windows scripting host cause its the outlook that you need to automate not he PPC.
See the 3rd item on this page.
http://www.cooperstown.net/tips/outlook-address.html
It should be able to help you out just make a custom toolbar button in outlook to call this piece of code and your away laughing.
EDIT:
Where did you fiind the info on cprog. Is there any way it could help with this
Unfortunately, I cant remember where I found the information on Cprog - only thing I have is the "How to call a number".. tried for some time to find various parameters to no avail... not too sure if this will help with your problem.
OK Guys, I finally bit the bullet - thanks Shaun for the "hint" - and coded a Macro to perform this.
It may be a bit clunky and as a "non-developer" I don't have the requisite nous nor software to distribute this as a plugin. For this reason, I have provided this as completely open (as far as I can tell), so if anyone wants to take this further, I hope I have started you on the track and that you wont forget the initial starter!
For those of you that wish to install - you will need to access your \Documents and Settings\<username>\Application Data\Microsoft\Outlook folder and extract the zipped file. My recommendation is that you save the existing one first, just in case you have written a bunch of Macros - wouldn't want to get any nasty surprises here - remember, Outlook only has one Macro bucket and this file is it!
Once you have installed and either provided your own Digital Certificate, or have an appropriate level Security within Outlook to allow this to run, simply add the Macro "Dial2PPC.Dialit" to a toolbar both in Outlook (that comes up in Contacts preferably) and in the Contact Form itself (use "Customise" as you would in any other Office application to facilitate this).
From here, it is as simple as selecting the Contact from your contact list and clicking on the Macro button you have setup - then follow the instructions, make sure your PPC is connected & Dial away!
Please note that you will need to have installed RapiStart from the Windows Mobile Power Toys and that I make no assertions that this is bug free, so use wisely - although, I am pretty sure I have most of the bugs out.
Again, this is provided open & free, so if you make an enhancement, please share it with the rest of us!
Hope this solves the "issue" for you guys as it has done for me!
DialViaActiveSync
mlk – thanks very much for your macro. I’ve taken the liberty of rewriting quite a bit of it (everything other than the part which communicates with the device, really), and have made it available under the GPL v2.0, in order to preserve its “Free” status.
In terms of changes, as I say, I’ve rewritten most of the back-end functionality. In particular:
1.) Adding items to the listbox – this now only shows fields which have a valid phone number, so there are no empty spaces
2.) Dynamic resizing of the form
3.) Form and “Dial” button captions show the name of the contact
4.) Where a contact has no valid phone number, a dialogue to this effect is shown
5.) You need to select number from the listbox before the “Dial” button is available
6.) You can double-click on a number in the listbox to dial it
7.) General tidy-up of some of the variable names, and removed a couple of unused variables
Installing my version:
I’ve exported the relevant files from the Project, so there is no need to overwrite the existing Project file – just open Visual Basic Editor (Tools / Macro in Outlook) and select “Import” and the browse to the relevant folder.
I'm a lurker rather than a poster on here, but, any questions, please do let me know.
Cheers,
Neil
Administrator
WindowsMobile247.com
[email protected]
Neil,
Champion stuff mate - I have always said it is best to wait for Version 2! Just one question: The ".frx" file, what is that for?
Mark.
It's the binary file for the VB .frm - it's not something you manually import, but it's necessary for the display of the form.
BTW- I've changed the contents of the .zip file for download- realised that I'd left in a line (an extra ResetState call) which stopped the whole thing from working - new version uploaded (same name) should be fine.
Cheers,
Neil
Administrator
WindowsMobile247.com
[email protected]
Thanks for this, maybe should change my mantra to: Wait for V2.1?
P.S. Thanks for coming out of the lurk!
Nah- v2 was fine... if I hadn't been meddling with it...
Managed to put the reset call before the RAPI argument, which, of course, wiped out the phone number it was trying to dial... Stupid, stupid, stupid -embarrassing, but at least easy to fix.
I guess that the next step is to try and implement SMS via ActiveSync - not sure if cprog.exe handles this, though, so it could be rather more complicated...
Does anyone know of a freeware program that can remotely shutdown the home PC from a Wifi network? I found a free Wake-On-LAN program and I can turn on my computer from anywhere in my home with it, but I don't have the means to turn it off. Thanks.
Using a VNC client on your phone and the server on your pc you could remote in and shut it down as if you were in front of it.
Hmmm, call me ignorant but I just wonder what putpose does it serve? If it is a home network and your house is not as large as CENTRAL PARK New York you should be able to actually walk to your computer and shut it down instead of sitting room next door and do it from there!
How much more lazy the human race can get?
Junner2003 said:
Hmmm, call me ignorant but I just wonder what putpose does it serve? If it is a home network and your house is not as large as CENTRAL PARK New York you should be able to actually walk to your computer and shut it down instead of sitting room next door and do it from there!
How much more lazy the human race can get?
Click to expand...
Click to collapse
note that he mentioned swhithing a pc on using wake on lan - thats why he mentioned his house - lan limitation. the real purpose of what he looks for would be turning your pc off while being away.
Curious D: i didn't hear of any app written especially for this, but for example emule can do it. if you use emule on your home pc - try checkin out it's mobile client - mobiemule - a java applet that lets you manage your downloads as well as turning your pc off. if it's not suiteble for you, i would suggest setting up apache server with a special php code on it, execing an app to close windows and then using your phone browser to access this php code. a bit of a workaround but in my opinion the easiest. (i used to controll winamp this way
This might be a solution! I did not digg in to it because of such tasks are not interesting to me but I am sure you can do what you need to do with it:
http://www.microsoft.com/windowsxp/using/networking/expert/bridgman_02june10.mspx
it's another option, yes it is possible but not very handy. i know setting up apache or any other web server is not very handy task neither. i would just code a simple app for desktop pc that would listen on telnet port and after receiving specified command would shut windows down. maybe even code a simple version of "web server" so it would be accessed using web browser? huh, i'll try in my spare time ;]
:update:
i could wrap up an application that would sit launched at your pc and listen for a connection. you would have to open a web browser (not only at your phone, it could be anything computer like and browse for an adress like:
http://your.ip.address:some_port/specific_command
to force my application to perform any action. it could be shutting down your windows or anything else.
note - it requires you to have a public ip address, and you would have to forward some_ports for it in your lan - just like any other serverlike application. would you be interested? it is quite easy so i can do it for you. cheers
Thanks for all the replies.
Raceit: I thought about VNC, but my VNC program incorporates an RC4 encryption which isn't supported for the WM5 platform at this time (at least I couldn't find any. This would be the ideal situation since then I can control my computer from my phone to do some simple operations. (I can do this already with my laptop, but it takes a long time to start up whereas the phone is fairly immediate)
Banannq: No no...Junner2003 is right. I AM lazy. I'm actually looking for it because there have been some nights that I remembered I forgot to shut down the computer and when you are in bed, you don't really want to go across the house to shut something off. I'm a light sleeper and when I wake up, I think about stuff. The idea that you had is over my head. Thanks for the offer for setup, but it seems I would have to open my firewall which I would rather not do. Again, thanks.
Junner2003: Thanks. I'll look into that link from Microsoft.
Curious D: too late mate, i already did the base of program ;]
now i can only finish it ;] it receives a message from a www browser and all i need to do now is to make it respond with an action, which is quite easy job - i'll add a procedure of shutting windows down and i'll upload it somewhere this evening. if you want it, you can get it, if you prefer not - no problem. for me it was a good oportunity to code something new ;]
forget evening. it's done. remember it is very simple...
so you need to launch included exe file on your windows machine. i tested it on xp, it should also work on older OS's, but i cannot be sure.
as i said - if you have lan at your home (and probably you have if you use your phone to connect to wifi) you need to access your router menu to allow connections to the pc my app is running on. depending on manufacturer it is done a bit different but still quite simple. you need to find a function called "port forwarding" and set up a new rule. You allow traffic to "your pc ip number" on "99" port (thats my app specification). you basicly need to allow traffic via tcp, but can be also tcp+udp
when it's done thats it.
providing that the programm is running, you can first try opening you pc's browser and type a specified url in your browser:
http://localhost:99/hello_world
you should see "/hello_world" message in return.
you can then try
http://ip_address:99/some_message
your ip can be checked by typing "ipconfig" in command line (windows_start>run>cmd) on your pc.
then you can do the same on your phone : http://your.pc.ip.address:99/message
if it works it means that everything is ready to go. then go:
http://your.pc.ip.address:99/shutdown
and that should do the magic.
i hope it's quite clear for you, if not - please ask. i'll try to help you if you think my program would be worth it ;]
i hope you like it
Wow. That's really cool. Thanks. I'll look into it more on my next day off. (Schedule's a little wacky, but it brings food to the table) Thanks again. Out of curiosity (not asking for more because you have already been very generous with your time and effort), can something be set up without port forwarding? If it is within a home network, can something be setup like VNC (without the remote desktop) simply to shutdown a computer within my own Wifi network?
Yes, should be possible either if you use STATIC IP ADDRESSES (which is always a problem if you have a linksys router) or just via computer name in the network: " \\MyComputerName " (you will have to turn file sharing in for that!)
Cool. I'll try it soon. Thanks again.
Curious D said:
Does anyone know of a freeware program that can remotely shutdown the home PC from a Wifi network? I found a free Wake-On-LAN program and I can turn on my computer from anywhere in my home with it, but I don't have the means to turn it off. Thanks.
Click to expand...
Click to collapse
Can you please post the free Wake-On-LAN app that you have??
sorry guys, i didn't have time to post anything sooner - had a terrible day with my wizard - 4 hard resets and finally rom upgrade :/ huh, looks good now...
anyway - i didn't code anything that would communicate through windows network neighbourhood - it sounds like an interesting idea, but i dont think i could be able to accomplish any success here very soon ;] sorry.
freeyayo50 said:
Can you please post the free Wake-On-LAN app that you have??
Click to expand...
Click to collapse
Here you go...
http://www.modaco.com/index.php?showtopic=240773&mode=threaded
Just a hint for all the real developers out here.
in the Vista Part, one can click a button to "install SSL certificate to WinMo-side"
It's done via a button that can be accessed from Vista Communication Manager (Shift soft-key upper right corner, press advanced settings)
What happens there is that Vista connects to the WinMo side without setting up an ActiveSync connection. It has file access. It installs a certificate in WinMo.
So.. there's a CALL there that actually has access from Vista to WinMo.
Maybe people can dissasemble that part and do something really good with it ?
There IS access from Vista to the WinMo part without ActiveSync running.
lucid said:
Just a hint for all the real developers out here.
in the Vista Part, one can click a button to "install SSL certificate to WinMo-side"
It's done via a button that can be accessed from Vista Communication Manager (Shift soft-key upper right corner, press advanced settings)
What happens there is that Vista connects to the WinMo side without setting up an ActiveSync connection. It has file access. It installs a certificate in WinMo.
So.. there's a CALL there that actually has access from Vista to WinMo.
Maybe people can dissasemble that part and do something really good with it ?
There IS access from Vista to the WinMo part without ActiveSync running.
Click to expand...
Click to collapse
please read more threads before posting one
my enter bootloader app (i posted a thread on that) accesses the WM part just fine without any activesync.
that happens through the EC driver (stands for Embedded Controller). you can do quite a lot with the EC driver (from changing various settings to getting ROM version, entering bootloader is just one of those things). though i would think that file sending works a bit different, but interesting, i'll look into that.
cmonex said:
please read more threads before posting one
my enter bootloader app (i posted a thread on that) accesses the WM part just fine without any activesync.
that happens through the EC driver (stands for Embedded Controller). you can do quite a lot with the EC driver (from changing various settings to getting ROM version, entering bootloader is just one of those things). though i would think that file sending works a bit different, but interesting, i'll look into that.
Click to expand...
Click to collapse
---
I should do better posts... I knew about your tool.
I just want to say that without ANY hacks whatsoever, there IS a connection between Vista and WinMo at "file transfer" level. Just like the hint I gave about the microphone.
I'm not a developer. I try to help guys like you with some remarks. A factory clean Shift does filetransfers via that button, somewhere my "gut" told me I should post about this , as I haven't seen any post addressing this "option" Hope you use it to our advantage.
lucid said:
---
I should do better posts... I knew about your tool.
I just want to say that without ANY hacks whatsoever, there IS a connection between Vista and WinMo at "file transfer" level. Just like the hint I gave about the microphone.
I'm not a developer. I try to help guys like you with some remarks. A factory clean Shift does filetransfers via that button, somewhere my "gut" told me I should post about this , as I haven't seen any post addressing this "option" Hope you use it to our advantage.
Click to expand...
Click to collapse
oh i like your posts, don't worry about that part. it is an interesting discovery along with the microphone one. hope you'll make more discoveries
when i get my Shift i can try this out and look more deep into it.
update
I tried to send some files over to snapvue using this option
the progress bar completes, then vista says cert install failed. the files are not there in snapvue.
what kind of sertificates you tried to send to WinMo-side? Could it be traced what happens when you run this command?
sniveri said:
what kind of sertificates you tried to send to WinMo-side? Could it be traced what happens when you run this command?
Click to expand...
Click to collapse
not true certificates, mind you, I wanted a way to avoid using a sim card to send usbtool over.
what happens is probably the shagcontrol (yeah, I mean the shift control center but this name is funnier) starts communication over crappy udp protocol with winsock2 (1 try out of 5 failed to fully send and in general was very slow) to EC driver then somehow magically the bytes get sent over to WM. probably the WM IPC driver is responsible for receiving, no idea, haven't checked this yet specifically.
update though, if you create a folder named Certificate under Windows/Settings, shagcontrol will report that the transfer was successful and that you should switch to SnapVue to finish installation. bad luck though, SnapVue *****es about the cert not being valid, and I don't see the file anywhere (probably gets deleted automatically). I heard someone was able to get their hands on a file transferred in such a way but no idea how.
Could it be possible to create service that watches this sertificates folder and creates automatically copies of new files to somewhere?
I think that this sertificate tool is made for administrators and those sertificate-files are not meant to stay on any folder because then user could easily copy those sertificates to other devices. So there is possibility that we can not transfer files this way but maybe using same route to destination.
sniveri said:
Could it be possible to create service that watches this sertificates folder and creates automatically copies of new files to somewhere?
I think that this sertificate tool is made for administrators and those sertificate-files are not meant to stay on any folder because then user could easily copy those sertificates to other devices. So there is possibility that we can not transfer files this way but maybe using same route to destination.
Click to expand...
Click to collapse
service, OK, the problem is you'd have to get the service onto the shift somehow.
what I wanted was fully eliminate the requirement of a sim card and usage of gprs/hsdpa to copy the usbtool over
though I guess if you really want that you can abuse the shared internet connection for file sending in the way danielherrero discovered, *but* not sure if that works with an invalid APN.
right, it gets under \Temp as user.cer, sometimes.
Hi,
i'm interested in encrypting (and decrypting) some text and/or Outlook notices on my device. I do not want applications that create a safe on the device which cannot synced with outlook.
far times away i had pgp on my loved palm which fitted my request. Is there any solution for this in the WM6 world? I could not found a working link to pgp or gpg.
Any ideas?
Regards,
HAW
I also really need pgp/gpg support for email/attachments. I've searched but have yet to find a solution. Anyone have any ideas?
TIA!!
hweidner said:
Hi,
i'm interested in encrypting (and decrypting) some text and/or Outlook notices on my device. I do not want applications that create a safe on the device which cannot synced with outlook.
far times away i had pgp on my loved palm which fitted my request. Is there any solution for this in the WM6 world? I could not found a working link to pgp or gpg.
Any ideas?
Regards,
HAW
Click to expand...
Click to collapse
There is still PGP mobile.. but... you'll know what I mean.. officially no download from PGP.
BTW, PGP mobile for PPC do not include encryption for emails.. well at least the one I have doesn't have..
Or you can use Resco Explorer's encryption.. it works on Windows too with a plugin for Windows on the installation package..
Thank you for the input. I'll have a look at Resco then.
Ideally there would be t-bird with enigmail. :-D
If you want free and open-source alternatives:
https://f-droid.org/repository/browse/?fdfilter=apg&fdid=org.thialfihar.and roid.apg
optional combined with:
https://f-droid.org/repository/browse/?fdfilter=apg&fdid=com.fs ck.k9
or:
https://f-droid.org/repository/browse/?fdfilter=apg&fdid=org.sufficientlysecure.key chain