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
Hi all,
This is my first post in this forum and I hope that I will find some help here :wink:
I am a c++, c# and vb programmer, and I am very good in VC++, DLLs, ..., you know that stuff..
I want to develop a plugin for pocket windows media player but I dont know where to start!!
can anybody shade some light please :wink: , any references , articles ,examples, tutorials, anything you might find useful is welcome :lol:
Thank you,
Mohammad Gdeisat
mohgdeisat said:
Hi all,
This is my first post in this forum and I hope that I will find some help here :wink:
I am a c++, c# and vb programmer, and I am very good in VC++, DLLs, ..., you know that stuff..
I want to develop a plugin for pocket windows media player but I dont know where to start!!
can anybody shade some light please :wink: , any references , articles ,examples, tutorials, anything you might find useful is welcome :lol:
Thank you,
Mohammad Gdeisat
Click to expand...
Click to collapse
Salam Brother,
I am not interested in the WMP plug-in but I can give you a suggestion.
Why not develop a Plug-in behind the plug-in...?
Hmmmm.... what is that.
What is that...!
Hmmm. There it is...
Develop a Clock Plug-in but instead of ordinary today plugin... This plug-in is displayed behind the other today Plug-in...
See my attached image for some idea......
Thanks..
rmercado: that would be quite difficult, because the Windows API has a built in routine to make today plugins "transparent", which basically paints the today wallpaper through onto the plugin.
In order to do what you say, I think you'd have to subclass every today plugin and intercept its WM_PAINT, monitor screen draws and then squirt in your background plugin at the end of the screen draw. But this would still not account for different screen draws by the various plugins, so you would also have to force a syncronised refresh every so often, otherwise bits of the background would be out of sync.
There are much easier ways to achieve what you want, basically by writing a replacement for the today screen with today plugin emulation.
mohgdeisat: download the sdk. There are good examples in there.
Also check out PocketPCDN, and I recommend the book, “Programming Windows CE.NET” by D. Boling.
V
Thanx alot friends for ur replys,
Actually, I think I might have been missunderstood, I am not planning to write a "today plugin" to be displayed on the today screen, I am planning to write a plug-in for the WMP application, for example an equalizer for WMP.
I need to get the sound data that are being played, adjust them based on equalizer settings, then play the new data.
I dont know if Pocket WMP is designed to support such "functionalty extensions", and I really have no idea where to start my work, I can work with .NET or with C++, and I think I can learn it fast..
Any light can be shaded here?? waiting for your help guys :wink:
Mohammad
What would be really awesome would be to use the microphone of the phone to get ambient background noise, and then with some clever signal processing superimpose the negative waveform of the background noise over the audio output of WMP - effectively, a noise cancelling plugin that uses the microphone on the phone.
Not sure if the Wizard could handle it though, especially if it's streaming bluetooth audio!
Afraid I can't help on where to start writing a plugin...
Oliy
Thanx Oily,
It would be really a great idea, but I think that ourbeloved wizards cant perform heavy sound processing, maybe this would be more feasible on XDA Atom which has a faster processor.
Thanks for ur idea, but where should I start???????????? :wink:
Mohammad
Try the media player SDK.
V
thanx vigay,
I am taking a look on MSDN WMP sdk, seems to have good information, but still needs time to be understood well.
Just a note guys, I dont like to duplicate others work, so are there any plug-ins available for Pocket WMP, and what kind of plug-ins are out there?
Mohammad
Hi friends,
I really wonder what is the best approach with regard to performance when processing and displaying images:
1. is it DDBs??
2. DIBs?
3. OpenGL?
4. DirectX?
or maybe other??
plz provide me with ur advice.
Thank you,
Mohammad
mohgdeisat: you might want to open another thread in the development section for this question.
AFAIK - Microsoft is pushing DirectX, but it's WM5 only for now, not WM2003. Otherwise, depends on what you're working with. OpenGL is unlikely to be great, due to lack of good hardware acceleration.
V
I do not know if you have looked at this but it might help you.
http://msdn.microsoft.com/mobility/windowsmobile/howto/starterkits/default.aspx
I do not know if you have looked at this but it might help you.
http://msdn.microsoft.com/mobility/windowsmobile/howto/starterkits/default.aspx
Click to expand...
Click to collapse
Yes its great, and I will study.
Thanks,
Mohammad
I'm sure this has been mentioned but i thought id post a link to the media player 10 SDK
http://msdn.microsoft.com/library/d.../wmplay10/mmp_sdk/windowsmediaplayer10sdk.asp
Some useful info on plugins.
Hello everyone, I must ask this question-Do any of you know of a program that basically emulates the function of the TVBGone?
http://www.thinkgeek.com/gadgets/electronic/755e/
I have Novii Deluxe remote, but dont like the fact that I have to manually configure the program to turn off televisions in the general vicinity. I dont know if such a program even exists (all it does is cycle through the IR "off" codes for various manufacturers until the tv shuts off), but if it does, please share the company name.
If no one knows about such a program, would some of the more experienced programmers care to help me create such a program? It need not be fancy, but only work. I figured the hardest part would be gathering the IR codes, but I have a library of them from Novii that has about 200 different models. Granted, I have no programming knowledge, but would appreciate anyones help to achieve my goal.
Thank you.
Joshua Giesbrecht
bump...............
Hello everybody!
I'm for quite some time now working on my own turn-based PocketPC game called "PoRoBa". More accurately, it's a game-framework, but whatever. I'm a student and have just access to one PocketPC - my own old MDA III. So, I've not had yet the chance to test it on any other hardware yet. Therefore, here's my plea:
Please go to http://www.poroba.com/ , give the game a spin and tell me your impressions - even if it's just "didn't work". Any comments here or in my shoutbox are highly appreciated!
And since this is a technical forum, some details:
PoRoBa was written completely in C# and relies just on .Net 2.0 and GAPI. Everything from there was exclusively written by me (image-handling, compressions, text-rasterization, ...). And no, there is no sound or music
Thank you,
KoMaXX
Not quite my kind of games (thus I didn't really test a lot), but it works on HTC Artemis, WM6.1.
works so far alltough i didn't find the time to test all the funtions..
These are great news
I was afraid, it wouldn't even start or crash immediatly without any error-messages!
I just got a bug-report, that the game would crash, when some Hardware-Buttons were pressed, but unfortunately I can't reproduce the bug and the reporter didn't leave a number.
Has anyone else encountered this problem?
Hi there,
cause most of you know the problem with TF3D Qvga and StandBy.
Could anyone here with knowledge of coding write a small app that acts like the standby timer in Windows Mobile?
I thought about something like that:
If no user action is recognize for time x, then deactivate TF3D (HKLM","\Software\Microsoft\Today\Items\TouchFLO 3D","Enabled","0")
and device goes to standby.
If device wakes up (or pressing power button) TF3D will be enabled again.
I think for someone with knowledge in development it shouldn't be mouch action, but it would be great to have a fully working TF3D and i think driver development still will need some time.
So, if someone is able to do that, please, please, please
I will test everything.
that should only be a few lines of mortscript, no ?
No itried this by myself (it's anywhere here in this forum) and i talked to Mort, too.
But there is no possibility in the actual version to recognize user actions.
The rest you can easyli write in MortScript, but not the user recognation.