yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Development and Hacking General] Grondinm:
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
[Windows Mobile Development and Hacking General] mssmison:
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. :)
[Windows Mobile Development and Hacking General] yay adarsh:
You can just use kaisernotification its a program that lets you customize the LEDs and also this feature is under "repeating alerts"
[Windows Mobile Development and Hacking General] Grondinm:
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.
[Windows Mobile Development and Hacking General] mssmison:
Awesome!

Thanks a tonne, I'm a little suprised no one has done this before.
[Windows Mobile Development and Hacking General] Grondinm:
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.
[Windows Mobile Development and Hacking General] l3v5y:
You're a mortscript power house! I'll be using this one when it's done :D
[Windows Mobile Development and Hacking General] carrozza:
Grondinm I promise you'll reach Nirvana if you manage to do this script! :)
[Windows Mobile Development and Hacking General] dan1967:
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).
[Windows Mobile Development and Hacking General] carrozza:
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!
[Windows Mobile Development and Hacking General] Grondinm:
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.
[Windows Mobile Development and Hacking General] xd1936:
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
[Windows Mobile Development and Hacking General] l3v5y:
My first script went around and deleted random registry entries and files... Wasn't too productive, but worked well!
[Windows Mobile Development and Hacking General] mssmison:
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 ?
[Windows Mobile Development and Hacking General] Grondinm:
no the path would be \windows\blah.wav
[Windows Mobile Development and Hacking General] l3v5y:
I think it should be "\windows\blah.wav"

EDIT: Grondimn got there first! Ignore this post!
[Windows Mobile Development and Hacking General] carrozza:
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
[Windows Mobile Development and Hacking General] Grondinm:
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.
[Windows Mobile Development and Hacking General] carrozza:
I see, but let me go straight to the point: what is the difference between this free solution and a commercial ones like Best Reminder or Don't Forget ?

I'm happy with free software, it's not a case I have OpenOffice, Gimp, Inkscape, Blender, etc. etc. :)
[Windows Mobile Development and Hacking General] mssmison:
Why the ever made more than 1 slash I'll never understand :) Thanks.
[Windows Mobile Development and Hacking General] Grondinm:
lol very true...no prob. thanx for your support.

I will be trying out the time restrictions tonight and probably posting new version in a few days once i'm sure they are working....they will be configurable as well...look for it by the end of this week early next week.
[Windows Mobile Development and Hacking General] Grondinm:
see my original post for a flaw/bug
[Windows Mobile Development and Hacking General] carrozza:
LOL Grondinm, today I turned on the computer just to tell that I discovered this issue, when the device goes sleep. :p

Edit: I just did a search in Mortscript website forums but didn't find anything useful; looked for words "screen" "idle" "power" "blank"... no luck.
[Windows Mobile Development and Hacking General] dan1967:
Inserting IdleTimerReset command in the loop should solve partially the problem.

Than the main point of the script would be:

If you have your phone unnatended and have a missed call/sms while away, the phone will

stay

awake and notify you until dismissed. If powered off intentionally whithout checking the status than the notification will be silenced, but alive again when powered back on.

I think is enough for me.
[Windows Mobile Development and Hacking General] carrozza:
Then, to keep repeating notifications and avoid battery drain, we should insert also a SetBackLight command that keeps the light to zero until... a tap is detected? :confused:

Mamma mia, this is turning out complicated!

Edit: Oh, I see that tap on screen are not detectable, but maybe there's a workaround
[Windows Mobile Development and Hacking General] Grondinm:
i was trying out new ways to do it...caused me a few hard resets cause it was getting stuck in the loop and i could not turn it off...i think i'm almost theire tho...just gotta understand a few new functions i had never used before...(runat and removenotifications) i will research thos today and hopefully come up with something more usable...i would hate to have the device stay on...but that might be the only option....
[Windows Mobile Development and Hacking General] dan1967:
Be careful with those! Gave me some hard time also.

It will be a little complicated.

To be honest I am happy with the actual performance.
[Windows Mobile Development and Hacking General] Grondinm:
ok just an update...i think i figured out how to get it to work....give me a few days to fully test it....also i'm going to try to implement the time of day cut off....will update further once i have more...
[Windows Mobile Development and Hacking General] carrozza:
Mmmh, IdleTimerReset don't seem to work for me. Maybe I put the command in the wrong point?

For me it is the third command before end of the script, I wrote it just before the last long sleep.

As a side note, I put a ToggleDisplay(0) after each PlaySound command, so when I have a pending notification the display stay blank.

I think this is good according to the fact that missed notifications mean the device is unattended.

Nice to hear! Please try to keep it as simple as possible, so we can understand and customize the script as needed (for example I'm not interested in time management because if I miss something I want to know it, always).

Thanks mates!
[Windows Mobile Development and Hacking General] Grondinm:
i did not try with idletimerreset....i might give that a go also if the way i'm going now does not pan out
[Windows Mobile Development and Hacking General] dan1967:
You have to put it together with the check period and that should not be bigger than the power off timer.

SO if you have set the notification at each 3 mins and power off in 2 mins you probably will have 1 notification max and than the device will power off.

Here's a piece of my sequence:

while (missed_cal>0)

playsound("\Extended_ROM\My Ringtones\lost_sms.wav")

IdleTimerReset

#check period

sleep(30000)

missed_cal=RegRead ("HKCU" , "\System\State\Phone","Missed Call Count")

EndWhile

You can play further with sleep command depending on wishes.
[Windows Mobile Development and Hacking General] carrozza:
I see, that was the case. I've got 1 minute power off timer and 90 seconds notification check cicle. :p

Now I'm trying to think a way to get this:

- in normal condition the device power off in 1 minute;

- with missed notifications the device power off in 2 minutes and every 90 seconds plays a reminder.

Thinkthinkthinkthink...
[Windows Mobile Development and Hacking General] dan1967:
make your notification cycle 59 seconds...
[Windows Mobile Development and Hacking General] carrozza:
This is my script so far, still thinking of a way to keep the power off as much as possible, because at the moment I set it to 2 minutes to let the script loop run completely.

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")
ToggleDisplay(0)
IdleTimeReset
Sleep(1000)
Else
Sleep(1000)
Endif
If(sms > 0)
PlaySound("\Windows\Alert-Chime.wav")
ToggleDisplay(0)
IdleTimeReset
Else
Sleep(1000)
EndIf
If(mms > 0)
PlaySound("\Windows\Alert-Chime.wav")
ToggleDisplay(0)
IdleTimeReset
Else
Sleep(1000)
EndIf
Sleep(90000)
EndWhile
[Windows Mobile Development and Hacking General] dan1967:
You would need to work on some reg entry:

[HKLM\System\CurrentControlSet\Control\Power\Timeouts]

"BattSuspendTimeout"

You may need to change the script structure maybe (i think) to achieve that.

I believe there will be still a problem if you power it off manually though...
[Windows Mobile Development and Hacking General] carrozza:
Thanks Dan, will work on it. Your help is much appreciated! :)

I noticed your post about backup via bluetooth and will come back if will find something useful.
[Windows Mobile Development and Hacking General] Grondinm:
should have something to upload tonight that works even if phone is sleeping....just have to test a little more....i am still working on the time restriction part....might have it ready by tonight as well...
[Windows Mobile Development and Hacking General] carrozza:
In this times of pain and darkness, our only hope is... something... unbelievable...

...sorry, must have seen Hulk trailer too much times now... :D

Great news Grondinm, can't wait to see what you'll come up with, because I'm a bit short of ideas ATM.
[Windows Mobile Development and Hacking General] l3v5y:
Someone's always being "funny"... :D

By "tonight" do you mean American/Canadian time, or GMT? :p
[Windows Mobile Development and Hacking General] Grondinm:
Canadian time...it's 20 after 6 at night right now and i'm just doing some final testing
[Windows Mobile Development and Hacking General] l3v5y:
Damnit! It's 10:20 here, so I guess I may miss the initial release...
[Windows Mobile Development and Hacking General] Grondinm:
about 10 min and it should be up...just got to do some placement testing...wich should be quick...
[Windows Mobile Development and Hacking General] Grondinm:
New version uploaded see this post for download now i will work on time constraints.....for now you can use the turn off option befor you go to bed and activte when you wake up...hopefully i have time to get the time factor in by this weekend...no prommisses tho.
[Windows Mobile Development and Hacking General] carrozza:
Woot woot! Just downloaded and... learning right now! :)

Grondinm you are the best... skull around, you know! :p
[Windows Mobile Development and Hacking General] l3v5y:
Missed the release, but I'm using it now! :D
[Windows Mobile Development and Hacking General] Grondinm:
yhea my 10min last night turned into 30min....i wanted to make sure it was just right...
[Windows Mobile Development and Hacking General] carrozza:
After some reading here is the simplification I made, just to suit my needs.

First file "Start.mscr" put in \Programmi folder, and a link put in \Windows\Autorun:

runtime=timestamp()+90
runat(runtime,"\Programmi\ExtraNotify.mscr")

Second file "ExtraNotify.mscr" put in \Programmi folder:

call=RegRead("HKCU" , "\System\State\Phone","Missed Call Count")
sms=regread("HKCU" , "\System\State\messages\sms\unread","Count")
mms=RegRead("HKCU" , "\System\State\messages\mms\unread","Count")
if(call > 0)
playsound("\Windows\Alert-Tonic.wav")
else
sleep(100)
endif
if(sms > 0)
playsound("\Windows\Alert-Chime.wav")
sleep(1000)
else
sleep(100)
endif
if(mms > 0)
playsound("\Windows\Alert-Chime.wav")
else
sleep(100)
endif
removenotifications("\Programmi\ExtraNotify.mscr")
run("\Programmi\Start.mscr")

Edit: uh, no, is not working when the device falls sleeping. Any idea why?
[Windows Mobile Development and Hacking General] Grondinm:
i'm going to be posting a quick update later to change the shortcut placed in the startup folder....i realize that having the message pop up saying it's activated might not be wanted by everyone....and might be just annoying anyways....
[Windows Mobile Development and Hacking General] carrozza:
Please Grondinm take a look at my script, notification is not repeating when device go sleeping.
[Windows Mobile Development and Hacking General] Grondinm:
where did you put the files...are the files located in the root of your \programmi folder? it's strange that it does not work when the device is sleeping...it works when it is awake tho?? I'm going to be away from the computer for a little while....sorry this does not work for you....i will have a look at it later....just confirm that they work when device is not sleeping....also did you try it befor you modified it? did it work then?(just wondering cause it was working fine on my phone) Anyone else having this issue with notifications not playing when device is sleeping
[Windows Mobile Development and Hacking General] carrozza:
Yes I confirm that repeated notifications are working if I keep the device awake; as soon as I let it power off... ciao ciao!

In a few minutes I'll try your original script to see if it works...
[Windows Mobile Development and Hacking General] carrozza:
Sorry for the late response, bad luck here: Grondinm's script - even in the original form - don't work when the device goes off.

Maybe it's an HTC Touch specific issue, it's not the first time I see something strange like this... :(
[Windows Mobile Development and Hacking General] Grondinm:
that's really odd...especially since i have a touch(vogue) myself...i will investigate over the weekend....anyone else having this problem...
[Windows Mobile Development and Hacking General] Grondinm:
quick change update going up tonight...will stop the message from popping up on boot...sorry for delays here have been crazy at work...still working on this tho...also has anyone else had issues with the notifications not playing when device is sleeping...i have left txt's unread for a while to test this and the notifications plays on mine every time...can't think of why it would not work....
[Windows Mobile Development and Hacking General] Grondinm:
quick change version posted...hopefully i have yime this weekend to look at time restrictions...i think i got it figured out just have to test it out...
[Windows Mobile Development and Hacking General] Grondinm:
hey guys sorry for delays i got caught up with another project...should be able to work on this one this week....
[Windows Mobile Development and Hacking General] Grondinm:
Finally new version should be going up tonight...i'm going to change things around a bit(not much just reducing size of script files and might use reg keys instead of text files) This version will allow you to specify a time to ignore notifications(say if your sleeping then) and start them back up at another specified time. Hopefully it will function properly for everyone. Next i will be implementing option to not play the notification if certain apps are running.(hopefully you guys did not give up on me)
[Windows Mobile Development and Hacking General] brunoisa10:
Hi All

same problem for me , seems that notifications doesn't work when device is asleep , I'm making tests now , I assume there was a program which is freezing my ppc

I'm testing today just with BatterySTatus ,Mortsrcipt and notifications inside

carrozza : it makes me crazy to see notifications not working because I know my WakeUp use notifications and it works everyday

from yesterday evening : no problem with this configuration (big cleanUp into my installed programms LOL)

Precision :

but seems to me : the script must be on Main memory to run well
[Windows Mobile Development and Hacking General] Grondinm:
i am really confused as to why the notifications are not working on your devices when they go standby.....i run my script from the storage card and it seems to work fine...it should be able to run from either but running from storage card could slow it down some...
[Windows Mobile Development and Hacking General] brunoisa10:
@grondinm : it is my testing with my script , I thought it was good to hear that it is something is working in the same way as yours on other devices

I am testing a program about notification now (lol not free but not expensive (15 $ ) I'm in trial period now
[Windows Mobile Development and Hacking General] Grondinm:
I see so you wrote your own notification script from scratch and it does the same thing as mine does...odd...maybe using regkeys instead of text files will fix it for some reason...maybe the phone just can't read the text file when sleeping but it will be able to read the reg..hopefully...should be up tonight if all goes well....but this week for sure...

Just another quick update...i got it working now. had the times set wrong at first but now it should work just got to modify for customization. i think this is going to work great...i'm really hopping this version will fix the issue some of you are having with the notifications not playing.
[Windows Mobile Development and Hacking General] Grondinm:
Update Posted see here

Another update comming soon that will allow you to stop the notifications from playing if specified programs are running...that's going to be the last version i think...(unless someone has something they would like added)...how about a check for just missed calls....request away guys...
[Xiaomi Redmi Note 4 Questions & Answers] M i L i N:
So my phone just got stuck while normal usage. Tried restarting and the phone began boot looping.

Did plenty of research and finally decided to flash. Tried to flash using mi flash in fastboot mode but failed then google search made me realise my bootloader was locked. Did more research and decided to flash using test point EDL method.

Things went pretty well and the flash (miui v8) and the process became successful and when I powered my device the phone went back to boot loop again.

Tried flashing again and the result was the same.

It would be really helpful if somebody could actually help clear the issue. Did pretty much everything I could do as a newbie to flashing. :(

thank you!
[Xiaomi Redmi Note 4 Questions & Answers] thisbearisdrunk:
There are 2 varients of rn4 one is mediatek(note 4x) and the other is Snapdragon so check if u flashed right firmware
[Xiaomi Redmi Note 4 Questions & Answers] M i L i N:
No, I have flashed the correct file(Mido) and the flashing process went quite well but the problem still exists.
[Xiaomi Redmi Note 4 Questions & Answers] thisbearisdrunk:
How is ur phone being recognised in mi flash tool?

A serial number appears or something else like "com_port" appears?
[Xiaomi Redmi Note 4 Questions & Answers] M i L i N:
It's recognised as COM4 the first time I tried then sometimes when I connect it shows COM3.
[Xiaomi Redmi Note 4 Questions & Answers] thisbearisdrunk:
If it recognises ur phone like that then flashing does nothing to ur phone so the only way is to go into edl mode and then flashing

https://xdaforums.com/redmi-note-4/...ool-redmi-note-4-edl-mode-o-removing-t3684024

Use this tool to go into edl mode and then flash

This thread can help ,because i bricked my phone once without unlocking the bootloader and the miflashtool recognised my phone like how it recognised urs and this thread saved my phone

Good luck
[Samsung Galaxy S10 Questions & Answers] .TanTien:
Hello,

is full device encryption available on this device? By that I mean the kind of encryption for which a password is needed in order to boot the phone into android. Haven't found anything in settings yet.

Or maybe a different question. Is the encryption key stored on the device or generated each time you put in your password?
[OnePlus 6T  Questions & Answers] yahaa08:
hello I've got notification about a new update

OnePlus6TOxygen_34_1909112343

but my device is ROOTED

shall I update or I lose my root ?

Thanks
[OnePlus 6T  Questions & Answers] jp0469:
This thread has all the info you need:

https://xdaforums.com/oneplus-6t/how-to/official-oxygenos-9-0-4-ota-oneplus-6t-t3860953

See the 3rd post specifically.