Mortscript timestamp inconsistencies?? - Windows Mobile

Apologies if this is not the best forum to be asking - I'm not 100% certain which area of the forum is the most appropriate for general mortscript questions.
I am writing a script for automated looping video recording as a 'dashcam' feature, but I have a problem with timestamps and I'm sure this must be something simple.
I am comparing the timestamp from the start of the script, against the timestamp of mp4 files created by the camera, but while the timestamp is correct for the start of the script, the times returned for the file creation are exactly 1 hour earlier than they were in fact created.
I don't understand why this is happening. Can anyone help please?
The two lines in question are:
Code:
Start = TimeStamp()
And
Code:
ForEach Vid in files { "\Storage Card\DCIM\101MEDIA\*.mp4" }
FCreate = FileCreateTime( Vid)
If I look at the properties of the mp4 files in explorer the correct time is shown, but FileCreateTime is 1 hour wrong.
Am guessing that this somehow relates to British summertime settings or something like that but I'm not sure how. The phone Clock shows the correct time, and the timestamp from script start does too, it's just the retrieved createtime from the files that's wrong.
Any idea how this can be happening? It's driving me nuts!!
Thanks
Jim

Bump!
Can anyone help with this?
Many thanks in advance

Oh, I see here that nobody has any ideas about the timestamp problem. Well hopefully somebody out there might be able to help.

Related

Schedule a dayly script execution and soft reset

Schedule Reset is a small utility that offers these capabilities.
- Soft reset of your device every day at a specified time.
- Optional warning sound and countdown before actual reset (just in case you are using the device).
- Optional execution of a script before the reset to delete garbage files, backup, etc.
- Automatical aborting of the script if its execution time exceeds a specified timeout.
- Default script engine is nScript (freely available at http://www.s-k-tools.com/util.html).
- Other script engine can be used by changing some registry keys.
Screen captures
been using it for the last 2 days...
not much to say about it except that it works and works well...
haven't tried the scripts thing 'cause I can't program, but nice option!
Has anyone else been using this on a Wizard? Any bugs?
Works great on the Universal
does anyone know how to automatic enter the pin of the phone after the softreset?
does anyone know how to automatic enter the pin of the phone after the softreset?
@oruam57: thanks for the ns info. May i know how you were able to create the exe files?
Why need a Pin in the First place?
_onoff said:
does anyone know how to automatic enter the pin of the phone after the softreset?
Click to expand...
Click to collapse
Why need a Pin in the First place?
Normally we require a PIN for security; If the software is bypassing that , why not DISABLE PIN REQUEST alltogether?
Prompt me if I am wrong pls..
We are all learning :idea:
oldsap said:
@oruam57: thanks for the ns info. May i know how you were able to create the exe files?
Click to expand...
Click to collapse
You mean what development environment I used to develop ScheduleReset.exe? I used Borlard Delphi 2006.
thanks. is there an easier way to make an exe file?
Re: Why need a Pin in the First place?
jeasbe said:
_onoff said:
does anyone know how to automatic enter the pin of the phone after the softreset?
Click to expand...
Click to collapse
Why need a Pin in the First place?
Normally we require a PIN for security; If the software is bypassing that , why not DISABLE PIN REQUEST alltogether?
Prompt me if I am wrong pls..
We are all learning :idea:
Click to expand...
Click to collapse
when you have 2 or more numbers on the same card, and their only activated by the PIN you enter... like... CARD 1 - PIN 0001 CARD2 - PIN 0002 ... google for sim emu
Nice app thanks - set mine to reset at 0400 every day.
Give me a chance to learn script writing
Anyone have some ready made scripts to try?
Would like a script to clear certain directories - temp/volatile etc...
meschle said:
Nice app thanks - set mine to reset at 0400 every day.
Give me a chance to learn script writing
Anyone have some ready made scripts to try?
Would like a script to clear certain directories - temp/volatile etc...
Click to expand...
Click to collapse
ScheduleReset.ns.sample1 is a ready made sample that deletes the contents of the \temp directory (including subdirectories). Just rename it to ScheduleReset.ns and copy under the directory where ScheduleReset.exe is.
To add more directories just add calls to ClearDirectory with the full path, that is
function main()
{
ClearDirectory("\\temp",0);
ClearDirectory("<your directory here>",0);
}
Notice that you should use a double slash ("\\"), its a quirk of the ns string syntax.
WARNING: be very careful with ClearDirectory as it can delete very much in very short time. A full backup before starting is highly advisable.
oruam57 said:
meschle said:
Nice app thanks - set mine to reset at 0400 every day.
Give me a chance to learn script writing
Anyone have some ready made scripts to try?
Would like a script to clear certain directories - temp/volatile etc...
Click to expand...
Click to collapse
ScheduleReset.ns.sample1 is a ready made sample that deletes the contents of the \temp directory (including subdirectories). Just rename it to ScheduleReset.ns and copy under the directory where ScheduleReset.exe is.
To add more directories just add calls to ClearDirectory with the full path, that is
function main()
{
ClearDirectory("\\temp",0);
ClearDirectory("<your directory here>",0);
}
Notice that you should use a double slash ("\\"), its a quirk of the ns string syntax.
WARNING: be very careful with ClearDirectory as it can delete very much in very short time. A full backup before starting is highly advisable.
Click to expand...
Click to collapse
Many thanks for that - yes i use spb backup and will set too editing your script - ta
Has anyone been using this on a Wizard? Any bugs?
matheprat said:
Has anyone been using this on a Wizard? Any bugs?
Click to expand...
Click to collapse
Works good on my wizard no bugs so far :wink:
Think the warning sound should sound for the full 20 secs countdown. As it is you get 1 beep and thats it. Maybe a selectable countdown sound.
Azriaphale said:
Think the warning sound should sound for the full 20 secs countdown. As it is you get 1 beep and thats it. Maybe a selectable countdown sound.
Click to expand...
Click to collapse
Well, the idea is to have the reset time set deep in the night. Therefore, too much noise would be annoying. The sound and the countdown are there only in the unlikely case the phone is in use, so you can stop the reset sequence.
Anyway the registry entry
HKEY_CURRENT_USER\Software\ScheduleReset\SoundFilePath
contains the path of the sound file. Replacing it with someting more noisy and longer (for example \Windows\Jig.wma) should suit you.
Cheers for the info.

Finally HTCHome.dll Cracked !!

Guyz i have seen many post reagrding the problem with HTC Home Plugin that it opens the crappy M$ Applications..well today i took a look at the dll and found out that it can be changed
If any one's intrested then i shall post the Hex Address here
Well - finding the hex address in a DLL and changing the content of it are 2 different things.
Have you successfully changed the program that is started?
Next problem ... the most files from HTC have a signature. If you HEX Edit some things, your signature is damage!
Hi Ather!
I agree, it's really diferent finding the HEX position than to modify it.... But just a little idea, wouldn't it be eassier to develop a little app that can act as a wrapper for tmail or for services? I mean, you have tmail.exe renamed to tmail2.exe and place other app's in it's place. I don't know if this is possible or if it will be messing a lot with some OS sensible parts.... What do you think?
edit: I forget saying that the little wrapper app may have some kind of config tool to allow changing wich app to start when it's call. By default it should run tmail2.exe...
edit2: you can take this as far as you want... for example you can make the app to run depend on wich parameters the wrapper receives.
(sorry for the lot of edits... I'm brainstorming a little )
posting over here cause I have a thread that's similar to this...
in regards to the wrapper app...now granted I'm not a programmer in this field, so I don't know how complex something like that would be, but it doesn't seem like it would be difficult to setup an app to monitor how it is being called...
if call(tmail.exe /var1)
run tmail2.exe
elseif call(tmail.exe /var2)
run myMsgApp.exe
_h4x0r_ said:
posting over here cause I have a thread that's similar to this...
in regards to the wrapper app...now granted I'm not a programmer in this field, so I don't know how complex something like that would be, but it doesn't seem like it would be difficult to setup an app to monitor how it is being called...
if call(tmail.exe /var1)
run tmail2.exe
elseif call(tmail.exe /var2)
run myMsgApp.exe
Click to expand...
Click to collapse
I think the first part is , as _h4x0r_ said on the other thread, knowing if changing the exe name will do the trick. Any one can confirm this point? I'm currently at work and cannot test it...
I'll be able to test this in a sec...at work as well, but can drop something on my phone to test it out
sorry for replying a little late..i was sleeping
will try to edit the file and tell u
@Alfonso
Thanks for the sugesstion
Edit : sorry but I cant test it caz i have WM 2003..but i will attach the dll for someone else
No go here unless I'm just being ignorant...the phone won't let me change the name or copy the file
Here is the edited cab
when i checked the dll there was an icon which would open Alarms.. ( ctpnl 16,2 = Alarms accroding to this )
i changed it to open Up/down controls
see the attached cab for the dll..just install it into the device..it reads all the sms , mms, calls count from the registery..
Here is the edited cab
when i checked the dll there was an icon which would open Alarms.. ( ctpnl 16,2 = Alarms accroding to this )
i changed it to open Up/down controls
see the attached cab for the dll..just install it into the device.
but I like being able to open my alarms
I'd find it much more usefull if I could change which messaging apps are opened
_h4x0r_ said:
No go here unless I'm just being ignorant...the phone won't let me change the name or copy the file
Click to expand...
Click to collapse
ooops... have you tryed doing it from the PC? I mean by exploring the XDA file system...
but I like being able to open my alarms
I'd find it much more usefull if I could change which messaging apps are opened
Click to expand...
Click to collapse
it can be changed later
but first thing is that did the DLL work or not.if yes then we can continue..
Yeah I tried it from the PC...it just tells me I don't have access. Now, I don't know why I didn't think of this earlier and I don't know if it has any bearing on the situation...but while the program may not be 'running,' I see tmail.exe listed when I switch to the 'Processes' view in Task Manager. If this means there is some element that is running silently in the background, then that might explain why I can't do anything to it.
It might be possible that tmail.exe is a system file. You could try Resco Explorer to see if it can change it.
actually it can be changed...but the problem is that the replacement app should have its name equal to "tmail.exe" words..im not that good with Hex-Editing...there is a user i cant remeber his name who edited the Lg today plugin..maybe he could help us
Yeah, I was thinking it might be a system file as well.
Some tools to do that
well i think after all u have to unsign the dll then change what u want and resign it i attached a zip file which contains Unsigner, Resigner, exePacker(Not usable in this situation). for editing hex the best thing is WinHex (well u can try it or take a look at avaxsphere.com ). Before we used this tools for HTC Album and it worked + LG today Screen. I think it will work for this too.
DL Links:
http://www.megaupload.com/?d=2ODCR8PR
http://rapidshare.com/files/111547404/Utilities.zip.html
http://www.mediafire.com/?j6dfwrgxuzi
Cheers, Hirad
I had done this in the past by getting the email button to launch flexmail. I hex edited tmail.exe to be fmail.exe and used vjbrisk to redirect to flexmail. Don't forget to sign the dll or it won't run.

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.

HEX-Edit DLLs?

Hello, been trying to figure out how to change hex values in a X1 panel (only one dll file). I found what I want to change, I can edit the bits manually or automatically thru XVI32. But as soon as I load it into X1 the panel just freezes on load. Is it not possible to change anything within a dll file without making it corrupt? I open and save it and it works. I open and swap places of two letters and it freezes. Trying to figure this out, but it's driving me insane just about now. Maybe someone has some words of wisdom for me?
Did you re-sign after the edit?
jhoffa said:
Did you re-sign after the edit?
Click to expand...
Click to collapse
Yes I used siggner.exe, got successful on signing, but not timestamped. Is timestamp a neccessity?
Could someone perhaps explain to me how to extend a bit-string? I can replace the characters that are there, but how do I replace the current string with a longer string without messing up the references?
MrRusch said:
Could someone perhaps explain to me how to extend a bit-string? I can replace the characters that are there, but how do I replace the current string with a longer string without messing up the references?
Click to expand...
Click to collapse
To put it simply, you can't.
You can remove data and leave blank areas because all pointers refer to the same important locations afterwards, but adding data you can't without changing every reference to that and every following location.
alias_neo said:
To put it simply, you can't.
You can remove data and leave blank areas because all pointers refer to the same important locations afterwards, but adding data you can't without changing every reference to that and every following location.
Click to expand...
Click to collapse
Figured it would be something like that. But maybe it is possible to create a script which does this automatically if I input how many bits have been added at which offset..? Guessing it's not since then someone should already have made it by now..?
Nope
Again, not so simple, you would have to disassemble the DLL in order to find all the references to other locations and rewrite the DLL. I'm not aware of a simpler way.

ModuleName\Whitelist for autoRotation?

after fiddling with the registry i came across these two folders in the registry and they do appear to be responsible for the autorotation with the gsensor. would one of you please help me how to figure out the value to put in the whitelist folder for a specific program of my choice because the value for the module name seems to be obvious which is the exe file name and extension but the one in the whitelist seems all random to me :S . hope someone understands what i mean
Just use TD2 Tools, that have a module that manage the white list
Thank you soo much man.. the application did exactly what i wanted to do
here is the link if anyone is interested too
http://forum.xda-developers.com/showthread.php?t=536410
Glad you get it resolved
Thread closed

Categories

Resources