PDA

View Full Version : Hide Phone after Call


khemu
29th May 2008, 06:24 PM
I have an O2 Atom and tried ALL the ROMS - WM5 / WM6 / WM6.1 in this forum.

Question: WM6 Phone application has a kinda Idle Timeout or something which automatically shows Today Screen after about 10 seconds of idle time on Phone Application. How can the same be replicated in WM5 ?

Tried with Mortscript, did'nt work and the script went heavy on the system (because of while loop)

Desperately looking for a solution......:)

irus
29th May 2008, 07:01 PM
I have an O2 Atom and tried ALL the ROMS - WM5 / WM6 / WM6.1 in this forum.

Question: WM6 Phone application has a kinda Idle Timeout or something which automatically shows Today Screen after about 10 seconds of idle time on Phone Application. How can the same be replicated in WM5 ?

Tried with Mortscript, did'nt work and the script went heavy on the system (because of while loop)

Desperately looking for a solution......:)

post the code for mortscript, also r u wanting the today screen when your on a call or just if the phone app is open. send me a pm when you post so i know otherwise i will forget :D

khemu
29th May 2008, 07:29 PM
What I want is that after a call has ended, 10 secs or so later Phone App should close/hide. In WM6 this happens, but in WM5 Phone App stays on screen indefinitely!

Here is my script:


sleep(1000)
Message("Phone Scanner is Active !")
phone = 0

while(phone = 0)
PhoneActive = RegValueExists("HKLM","System\State\Phone","Active Call Count")
#this gets the reg setting to see if the phone is active or not

while(PhoneActive = TRUE)
phone = 1
Sleep(100)
PhoneActive = RegValueExists("HKLM","System\State\Phone","Active Call Count")
endwhile

If (phone = 1)
Show("Desktop")
phone = 0
EndIf

sleep(2000)
endwhile