How to run an app at wakeup? - Windows Mobile Development and Hacking General

I was wondering if anyone knew the easiest smallest way to have my Tilt run an application at wakeup. Every time I bring it on from standby. Thanks.

i don't know an easy way, but memmaid or sktools is one way.
what are you trying to do? if you run an app, doesn't it just stay open? omap overclocking was a problem that started off similar to how you asked, and those two tools were workarounds for it

You can use this function:
Code:
BOOL CeRunAppAtEvent(LPWSTR pwszAppName, LONG lWhichEvent);
with lWhichEvent = NOTIFICATION_EVENT_WAKEUP.
Read more here: http://msdn2.microsoft.com/en-us/library/ms913956.aspx

THEVK said:
You can use this function:
Code:
BOOL CeRunAppAtEvent(LPWSTR pwszAppName, LONG lWhichEvent);
with lWhichEvent = NOTIFICATION_EVENT_WAKEUP.
Read more here: http://msdn2.microsoft.com/en-us/library/ms913956.aspx
Click to expand...
Click to collapse
Cool how would I delete the "notification" if I didn't want it anymore?

bravo261 said:
i don't know an easy way, but memmaid or sktools is one way.
what are you trying to do? if you run an app, doesn't it just stay open? omap overclocking was a problem that started off similar to how you asked, and those two tools were workarounds for it
Click to expand...
Click to collapse
How would I do that in MemMaid? I have it installed but don't see where. Never mind found it.
Advanced Mode make a new notification. It's not very responsive though. Gonna try SkTools.

try other fuctions http://msdn2.microsoft.com/en-us/library/aa133182.aspx
Cool how would I delete the "notification" if I didn't want it anymore?
Click to expand...
Click to collapse
possible you should put 0 as the second parameter?

Related

Shutdown Activesync when disconnected

I have a Trinity Htc ppc. I'm wondering if is possible to >KILL< automatically activesync on my ppc when i disconnect the cable fron pc.
Thank You.
This is the best ppc forum in the world!
Search the forums for QuickMenu it has an option to close activesync on disconnect works perfectly for me
cornelha said:
Search the forums for QuickMenu it has an option to close activesync on disconnect works perfectly for me
Click to expand...
Click to collapse
thank you. but i don't want to use quickmenu (great program) i'm looking for a script or something similar, or registry tips.....
Thanks...
disconnectwhendone in the registry is set to 1.... there's anyone that know the meaning.... and if i can change?
Thanks
lucausee said:
disconnectwhendone in the registry is set to 1.... there's anyone that know the meaning.... and if i can change?
Thanks
Click to expand...
Click to collapse
Where in the registry did you found this ?
I'll test it then and let you know the results
texarcana said:
Where in the registry did you found this ?
I'll test it then and let you know the results
Click to expand...
Click to collapse
HKCU_Software_Microsoft_Activesync_Disconnectwhendone = 1
Thanks-a-lot
http://msdn2.microsoft.com/en-us/library/aa458005.aspx
This might help...
lucausee said:
HKCU_Software_Microsoft_Activesync_Disconnectwhendone = 1
Thanks-a-lot
Click to expand...
Click to collapse
I tested it with some numbers, but no luck. Too bad
Even if You kill activesync after disconnect (I'm using quickmenu to do this) after some minutes activesync starts again.
Anyone has a solution for this?
bye
Crash - Try this:
http://forum.xda-developers.com/showpost.php?p=1749695&postcount=12
AppSentry
AppSentry was made just for this reason. It can kill activesync and other apps on a regular basis. The link is in my signature.
It doesn't require you to run it, it runs itself. And it does not run in background so takes no memeory when it is not running.
solution?
ASyncKiller
This application allows to kill the ActiveSync process when it's in idle state but it just hold in memory...
http://forum.xda-developers.com/showpost.php?p=2135727&postcount=1
lucausee said:
solution?
ASyncKiller
This application allows to kill the ActiveSync process when it's in idle state but it just hold in memory...
http://forum.xda-developers.com/showpost.php?p=2135727&postcount=1
Click to expand...
Click to collapse
I can approve that. Asynkiller does the job well

need a app killer

i am searching a app that when i run it,automatically close all running task.
adempozhari said:
i am searching a app that when i run it,automatically close all running task.
Click to expand...
Click to collapse
These are available all over. Please use keyword "Task Killer" in your search on this site or google. Always search fully before you start a new thread.
cg
Tasks are closing automatically! Why would u ever want to have that ? timer or something?
@ do you mean to google "task-killer site:forum.xda-developers.com"
...do you want to post the javascript of the search.....
...you loosing time teaching me how to search
NotLutzik said:
Tasks are closing automatically! Why would u ever want to have that ? timer or something?
Click to expand...
Click to collapse
here is the problem.sometimes while i am playing a game ,i get a call and after hung down the call i have a blank screen and the softkeys do not work.now i edited the registry and instead of the Voice command i have \windows\RscMgr.exe and when i press the voice command key ,Task manager starts but as my softkey does not works i cant kill the game...so i have to remove battery....i have WM6 standard.
i need a task killer that automatically kills all the running task
Hi,
I think I saw one app called AppSentry on freewareppc.com for exactly that purpose.
AppSentry
I've never tried it before so I have no idea if it works or not.
I hope this helps.
Try this, works just like on computer.
Put in your phone and assign it to voice command key.
NotLutzik said:
Try this, works just like on computer.
Put in your phone and assign it to voice command key.
Click to expand...
Click to collapse
I think that closes only the active program (like alt+f4) and not all running programs.
if you would have searched you would find appsentry here in the forum. so dont start such threads ! thats not the sense of xda devs, because there are many solutions like vjokbutt and so on. because of this many noob "i have a question"-threads we cant find here anything.
and you really need help: "task killler" ? did you try taskmanager, close button or similar ? think about it.
there is a 'closeAll' app in the rs folder linked in my signature
i am sorry,maybe i have started the topic in the wrong section but i have searched for an hour before starting.i searched here,google and in lot of other freeware sites like the freewareppc.com.
i have tried the AppSentry and CloseAll but i cant install them because "...the installation file is not intended for this device", i have also installed a lot of others task managers or app killer(DottfredTaskmanager,appcloser,killcprog,etc...) but they are not automatic or not intended for such a option.
OK ...i am closing the topic and excuse me for the trouble. :-(
adempozhari said:
i am searching a app that when i run it,automatically close all running task.
Click to expand...
Click to collapse
Maybe this is what you are looking for?
"http://forum.xda-developers.com/showthread.php?t=386948&highlight=elias"
I think you do not own a ppc? but a smartphone which is probably why it doesn't work?

Is there a mortscript that will...

Hey I'm looking for a mortscript that will check the status of the reg keys for new sms and new voicemail every 5 minutes or so and if the count is greater than 0 it will play my notification again (or any wave if that's easier) I had a search and could only find the treo alerts but that's more than I'm looking for.
i think than can be done....i will look into it tonight...if someone does not beat me to it...lol
Hey sorry it took me so long to get to this but i have been very busy and i wanted to make it just right. so here it is.
This script Checks for new sms and vmail every 5 min and plays any wav file you have specified.
First have mortscript installed then
simply extract the folder in this zip file to anywhere on your device. then run setnofitications.mscr and enter the full path(EX:"\examplefoler\examplewavefile.wav"(don't enter quotes)) to a wave file you would like played for vmail and sms. it will create a new folder in your programs menu called extra notify and place shortcuts to turn this feature on and off to configure it and to remove the shortcuts. it will also place a shortcut in your windows startup folder so to activate itslef at every boot. Hopefully this works as well on your phone as it does on my phoe(different phones like to act different)
UPDATE:For anyone who already has v0.5b run remove to clear the old shortcuts(i changed the names of them so it wont all work right if you don't do this before extracting the new files) then simply exract these files to the same place you have the current ones. then run upgrade.mscr to migrate your old notifications to the reg entries and run setnotifications.mscr to configure the on and off times. I'm leaving v0.5b up for now in case v0.8 causes issues. Report back on functionality. Anyone using this for first time follow steps in this post befor update.
let me know if you have any problems
Version History
V0.8
changed the way variables(configurations) are kept
added option to specify time to have notifications tunr off and back on
Cleaned up scripts to make them esier to work with
(i think that's it lol)
v0.5b
removed message when device boots up
V0.5
Notifications will now play even if device is in sleep mode.
V0.1
Initial Realease
Awesome! Thanks so much.
Not to be a pain but I should have mentioned that it would be great if it didn't run between certain times. That way it won't be keeping me up all night.
You can just use kaisernotification its a program that lets you customize the LEDs and also this feature is under "repeating alerts"
mssmison said:
Awesome! Thanks so much.
Not to be a pain but I should have mentioned that it would be great if it didn't run between certain times. That way it won't be keeping me up all night.
Click to expand...
Click to collapse
ok i w have a look at that...i'm sure it's possible i will just have to figure it out. give me a few days on this to make sure i get it right.
Awesome!
Thanks a tonne, I'm a little suprised no one has done this before.
mssmison said:
Awesome!
Thanks a tonne, I'm a little suprised no one has done this before.
Click to expand...
Click to collapse
yhea me 2...maybe they have but i don't mind doing it....i'm still learing mortscript so this was a great learing experience.
Grondinm said:
yhea me 2...maybe they have but i don't mind doing it....i'm still learing mortscript so this was a great learing experience.
Click to expand...
Click to collapse
You're a mortscript power house! I'll be using this one when it's done
Grondinm I promise you'll reach Nirvana if you manage to do this script!
I always wanted to do that also (lazy i guess), but now eventually I included it in my startup script.
Beside the missed calls or sms the script keeps bluetooth off unless needed (by GPS or handsfree).
Well done folks, now that's turning out to an interesting thread!
Until today I did just a few stupid scripts to perform soft-reset or setVolume, but with your scripts for reference I'll try to learn a bit more.
Just a question: where is the delay time instruction? I see a few "sleep" and don't know which is the right one.
Keep up the good work, MortScripters!
carrozza said:
Well done folks, now that's turning out to an interesting thread!
Until today I did just a few stupid scripts to perform soft-reset or setVolume, but with your scripts for reference I'll try to learn a bit more.
Just a question: where is the delay time instruction? I see a few "sleep" and don't know which is the right one.
Keep up the good work, MortScripters!
Click to expand...
Click to collapse
the last one. sleep(30000)has it sleep for 5 min before it checks again. the other sleeps are just to have it sleep for a fraction if theire is nothing to do....it would work without those...theire is also one for it to sleep 1sec between the check of sms and vmail so that both sounds don't play at the same time. Funny i started out the same way. making little scripts for text messaging purposes and volume and orientation.
Ha... I think any scripter started off like that. My first one went abd changed all of my reg settings, and copied clock and wallpaper, for s2u2. Saves plenty of time when updating
xd1936 said:
Ha... I think any scripter started off like that. My first one went abd changed all of my reg settings, and copied clock and wallpaper, for s2u2. Saves plenty of time when updating
Click to expand...
Click to collapse
My first script went around and deleted random registry entries and files... Wasn't too productive, but worked well!
well it's working but apparently I'm not inputing the path properly.
If the file is in the windows folder for example is my syntax //windows/blah.wav ?
mssmison said:
well it's working but apparently I'm not inputing the path properly.
If the file is in the windows folder for example is my syntax //windows/blah.wav ?
Click to expand...
Click to collapse
no the path would be \windows\blah.wav
I think it should be "\windows\blah.wav"
EDIT: Grondimn got there first! Ignore this post!
OK, here is the script I made, quite the same as previous examples posted before by very good people.
I just added MMS notification and tweaked delay (90 seconds for me).
Just a question: what do you think is the overhead of the device with this script running?
I mean: here we have a WHILE loop running continuously on the device. Are there "best practices" that a skilled programmer would use to make CPU and memory consumption as low as possible?
check=1
while(check=1)
sms=regread("HKCU" , "\System\State\messages\sms\unread","Count")
mms=regread("HKCU" , "\System\State\messages\mms\unread","Count")
call=regread("HKCU" , "\System\State\Phone","Missed Call Count")
if(call > 0)
playsound("\Windows\Alert-Tonic.wav")
sleep(1000)
else
sleep(100)
endif
if(sms > 0)
playsound("\Windows\Alert-Chime.wav")
else
sleep(100)
endif
if(mms > 0)
playsound("\Windows\Alert-Chime.wav")
else
sleep(100)
endif
sleep(90000)
endwhile
carrozza said:
OK, here is the script I made, quite the same as previous examples posted before by very good people.
I just added MMS notification and tweaked delay (90 seconds for me).
Just a question: what do you think is the overhead of the device with this script running?
I mean: here we have a WHILE loop running continuously on the device. Are there "best practices" that a skilled programmer would use to make CPU and memory consumption as low as possible?
check=1
while(check=1)
sms=regread("HKCU" , "\System\State\messages\sms\unread","Count")
mms=regread("HKCU" , "\System\State\messages\mms\unread","Count")
call=regread("HKCU" , "\System\State\Phone","Missed Call Count")
if(call > 0)
playsound("\Windows\Alert-Tonic.wav")
sleep(1000)
else
sleep(100)
endif
if(sms > 0)
playsound("\Windows\Alert-Chime.wav")
else
sleep(100)
endif
if(mms > 0)
playsound("\Windows\Alert-Chime.wav")
else
sleep(100)
endif
sleep(90000)
endwhile
Click to expand...
Click to collapse
Well i don't think memory is a big concern in this case cause the script file in only a few hundred KB and for cpu usage it is sleeping between the loops. i'm no programmer and i'm sure a experienced programer might find some flaws in this but it works for me and does not seem to be very draining.

[REQ] Registry help with Diamond2 GSensor

I'm working witht he Diamond 2 Gsensor sdk on my Diamond and I have been able to successfully add string values to the whitlist section in the gsensors registry. (HKCU\Software\HTC\HTCSENSOR\Whitelist)
The whitelist values enable rotation. My question is how can I create a "Blacklist" so to speak that would contain values for apps I dont want rotated? Is it possible? If so is it as easy as crating the said paths?
Anybody?...
powe6563 said:
I'm working witht he Diamond 2 Gsensor sdk on my Diamond and I have been able to successfully add string values to the whitlist section in the gsensors registry. (HKCU\Software\HTC\HTCSENSOR\Whitelist)
The whitelist values enable rotation. My question is how can I create a "Blacklist" so to speak that would contain values for apps I dont want rotated? Is it possible? If so is it as easy as crating the said paths?
Click to expand...
Click to collapse
I have not tried this yet myself but i would guess, and tell me if im wrong, that the only time it will rotate is if the app is in the white list if its not in the white list then it will not rotate.
irus said:
I have not tried this yet myself but i would guess, and tell me if im wrong, that the only time it will rotate is if the app is in the white list if its not in the white list then it will not rotate.
Click to expand...
Click to collapse
Well this is true, however, the whitelist uses class names to determine what apps to rotate. The class name "dialog" refers to multiple apps like the phone dialer, call status, sms composer, and more. So when I add "dialog" in the whitelist it rotates all of these. I would like to try and make an exception list that uses the process name or window name as the identifyer. That way I could have dialog in the whitelist and cprog.exe in the exceptions or blacklist key. It may not be possible but thats what I'm asking I guess.
bump... c'mon guys theres gotta be an answer to this.
I found this in http://www.htcmania.com/showthread.php?t=36214
is in spanish.
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\M oduleName]
"Album"="\\Windows\\HTCAlbum.exe"
"Calculator"="\\Windows\\htcCalculator.exe"
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\W hiteList]
"TestHTCSensorDemoAP"="TESTHTCSENSORDEMOAP"
"Album"="HTCAlbumClass"
"Calculator"="CalculatorMain"
"Opera"="Opera_MainWndClass"
"SMS"="Dialog"
"Calendar"="Calendar"
"FileExplorer"="FEXPLORE"
"PROGRAM"="Explore"
"IExplore"="IExplore"
"Manila"="Manila"
vengadorhq said:
I found this in http://www.htcmania.com/showthread.php?t=36214
is in spanish.
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\M oduleName]
"Album"="\\Windows\\HTCAlbum.exe"
"Calculator"="\\Windows\\htcCalculator.exe"
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\W hiteList]
"TestHTCSensorDemoAP"="TESTHTCSENSORDEMOAP"
"Album"="HTCAlbumClass"
"Calculator"="CalculatorMain"
"Opera"="Opera_MainWndClass"
"SMS"="Dialog"
"Calendar"="Calendar"
"FileExplorer"="FEXPLORE"
"PROGRAM"="Explore"
"IExplore"="IExplore"
"Manila"="Manila"
Click to expand...
Click to collapse
Thanks, I have that much so far but I'm still looking for a way to specify between cprog and tmail in the whitelist because they both use Dialog as a class name. Thanks for the effort though
can someone make it cab file?
powe6563 said:
Thanks, I have that much so far but I'm still looking for a way to specify between cprog and tmail in the whitelist because they both use Dialog as a class name. Thanks for the effort though
Click to expand...
Click to collapse
Did you try:
HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\M oduleName]
"Album"="\\Windows\\HTCAlbum.exe"
"Calculator"="\\Windows\\htcCalculator.exe"
"SMS"="\\Windows\\tmail.exe"
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\W hiteList]
"TestHTCSensorDemoAP"="TESTHTCSENSORDEMOAP"
"Album"="HTCAlbumClass"
"Calculator"="CalculatorMain"
"Opera"="Opera_MainWndClass"
"SMS"="Dialog"
Seems logical to me. But as always the logical thing isn't the right choice by definition.
One tip though, if you want to know something, just try! That's the way other people get their knowledge about these things....
And afterwards, please share your results with the rest of the world ofcourse!
rondol1 said:
Did you try:
HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\M oduleName]
"Album"="\\Windows\\HTCAlbum.exe"
"Calculator"="\\Windows\\htcCalculator.exe"
"SMS"="\\Windows\\tmail.exe"
[HKEY_CURRENT_USER\Software\HTC\HTCSENSOR\GSensor\W hiteList]
"TestHTCSensorDemoAP"="TESTHTCSENSORDEMOAP"
"Album"="HTCAlbumClass"
"Calculator"="CalculatorMain"
"Opera"="Opera_MainWndClass"
"SMS"="Dialog"
Seems logical to me. But as always the logical thing isn't the right choice by definition.
One tip though, if you want to know something, just try! That's the way other people get their knowledge about these things....
And afterwards, please share your results with the rest of the world ofcourse!
Click to expand...
Click to collapse
I've tried, negative...
dingil said:
I've tried, negative...
Click to expand...
Click to collapse
Same here. I still havent figured out a way around this.

Disable wake up on new SMS

Is it possible to disable phone wake up when a new message comes in? I want wake up to be enabled when a call is coming, but not for text messages. I think there are some "scripts" in the registry to control the ringing-behaviour and these involve wake up. Is it possible to modify this setting specifically for SMS/MMS?
XperiaTweak
http://forum.xda-developers.com/showthread.php?t=440035
dogans said:
XperiaTweak
http://forum.xda-developers.com/showthread.php?t=440035
Click to expand...
Click to collapse
What does it do to achieve it? I don't like XperiaTweak too much, I don't think it's a very good piece of SW. And it means one app more.
it does what you have asked.
bknewtype said:
it does what you have asked.
Click to expand...
Click to collapse
I know so man, I want to know HOW IT DOES IT. This must be a simple registry setting (Anything else is rubbish anyway). I just wanna know which one and I'm so happy.
http://lmgtfy.com/?q=windows+mobile+disable+wake+up+sms
First and 3rd hits
harveydent said:
http://lmgtfy.com/?q=windows+mobile+disable+wake+up+sms
First and 3rd hits
Click to expand...
Click to collapse
Doesn't sound like it's working well for them. Are you sure this is the same thing that XperiaTweak does?
Have you tried applying the registry tweak mentioned in the threads? It was what you were looking for, wasn't it?
HK_LOCAL_MACHINE\Drivers\BuiltIn\RIL
Select "New" D_Word and you will be asked to enter the details :
Top portion just enter : DisableSMSWakeUpEvent
and bottom portion just enter the value : 1
Click to expand...
Click to collapse
[HK_LOCAL_MACHINE\Drivers\BuiltIn\RIL]
"DisableSMSWakeUpEvent"=dword:1
Click to expand...
Click to collapse
harveydent said:
Have you tried applying the registry tweak mentioned in the threads? It was what you were looking for, wasn't it?
Click to expand...
Click to collapse
I've tried it now and it seems to work so far Thank you very much for your help!

Categories

Resources