Windows Mobile program activity log

xomauraaa

New member
Every night at midnight, my Tp2 turns on, unless I'm using it, and then it turns off. General advice for this type of thing is to uninstall all programs and reinstall one by one :rolleyes: and while I could optimize that (install in groups of 5 until the issue returns, uninstall 2, or whatever), I'd rather not.

So I'm hoping to find a program (or maybe a part of WinMo) that keeps a log of program activity. I don't need to know what programs are doing, just when they're doing it. Something I can load before I hit the sack, wake up, scroll back to midnight on a log file and see who is mucking about. Then I can either find the right setting to fix in that proggie or find an alternative.

Any suggestions? I'm thinking maybe a performance monitor with logging ability could help, but it would probably be a pretty odd one.

Edit: I'm going to try Battlog. But I still welcome suggestions.
 
On my 6.1 Treo Pro, I utilize Task Manager v3.1 by FdcSoft.

Within this application, I can go to the notifications tab, and see every scheduled event, which app, last run, etc.

I do not know if it will run on 6.5 though.
 
I guess the treo pro was a pretty odd duck. WinMo Pro with that resolution. Still, weird that it would lose a rez in a minor update. Seems like taking it out would be more trouble than not (whoops, just noticed the focus on thumb friendliness... that kinda makes sense). Sorry :(

In deference to your plight I shall thoroughly not enjoy using any features added after 3.1. I mean I'll use them, but I pledge misery in the process. Solidarity.

Edit: wow, that was a much quicker solution than what I wanted to do. G-alarm is at fault. What I didn't mention above is Syd won't shut herself back down (ever) after the wakeup (which is when galarm put it's next queue of alarms into the system), which by googling, others have experienced as well. I love galarm. Need it even. There's a setting to avoid the queuing but doing so can prevent alarms from properly sounding, and that's not an option for me.

I'm still digging through dotfred's wares. How hard would it be to program a daily 12:05am shutdown command? I see how add an event, sort of. I'm not clear if I can use the listed command line arguments in an added notification or if maybe I should script standby in mortscript and use this schedule it. Any advice?
 
Looks like I can do it all in mortscript.

Code:
# Turn off your device at 12:05am every morning to counteract a gAlarm bug where device turns on at midnight

and refuses to reenter standby.
# Thanks to prscott from xda devs for scheduling script example: http://forum.xda-developers.com/showthread.php?p=1925725#post1925725
# Additional thanks to RoryB and CLHatch for helping me with mortscript time: http://forum.xda-developers.com/showpost.php?p=7414028&postcount=3494

# getting time, date and weekday information
GetTime(hour,min,sec,day,month,year)
date = TimeStamp()
year = (FormatTime("Y"))
nextyear = (FormatTime("Y") + 1)
month = (FormatTime("m"))
nextmonth = (FormatTime("m") + 1)
day = (FormatTime("d"))
weekday = (FormatTime( "w" ))
hour = (FormatTime("H"))
nexthour = (hour + 1)
tomorrow = FormatTime("d", TimeStamp()+86400)
nextday = (FormatTime( "d" ) + 1)

# kill old notification(s) to prevent overlap
RemoveNotifications( "\Storage Card\gamidnightfix.mscr" )


# If on phone - wait 5 minutes to start again
CallActive = RegRead( "HKLM", "System\State\Phone", "Active Call Count" )
If (CallActive > 0)
RunAt( ( TimeStamp() + 60*5 ), "\Storage Card\gamidnightfix.mscr" )
Call ExitNow
EndIf

# add tomorrow's 12:05 am notification and poweroff
	# set new notify

If (tomorrow = 01)
   If (month = 12)
       RunAt( nextyear, 01, 01, 00, 05, "\Storage Card\gamidnightfix.mscr")
   Else
    RunAt( year, nextmonth, 01, 00, 05, "\Storage Card\gamidnightfix.mscr")
   EndIf
   Else
      RunAt( year, month, nextday, 00, 05, "\Storage Card\gamidnightfix.mscr")
EndIf

# go into standby
	poweroff


# exit routine 
exit

Never scripted before, and I borrowed most of the code, so I'm betting this example won't work. I'll update it once I find the right scripting.
 
Now he tells me :( :p

But seriously, thanks again. You're a regular one man support desk today/yesterday. I think I'm really close with the mortscript now, but if that doesn't work, I imagine pocketcron will be very helpful. Worst thing is, I've actually looked at the program before. I didn't exactly realize it automated things on the device itself, thought it was more for controlling externals, but I probably still should have thought of it.
 
See, now, if only you'd showed up yesterday... ;)

The script works now. Someone just showed me how to avoid using all those IFs by doing some unix time manipulation. Won't make it work any better, but will make it shorter. After I test that I'll probably update the script in case any googlers find this thread.
 
Back
Top