Results 1 to 16 of 16
  1.    #1  
    Hi Guys,

    Treo 750 keeps on while a call is in progress, which is the biggest battery sucker. I am wondering if it is possible to write a script to detect a call is in progress and suspend the LCD after 30 seconds.

    Any suggestions are appreciated.

    Thanks
    Cell
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  2. #2  
    Scotty's InCall app already does this. Check it out.

    http://discussion.treocentral.com/sh...d.php?t=138702
  3. #3  
    My script (now basically defunct since WM6 brought us Mute and speakerphone icons on the today screen which is the main reason I wrote it) allows you to manually turn the screen off but doesn't do it automatically. The piece of code you need for that is (this :

    While(1)
    x = RegRead( "HKLM", "System\State\Phone", "Status" )
    If (x AND 536870912)
    Sleep(30000)
    ToggleDisplay(off)

    Endif
    Sleep(5000)
    EndWhile
    Palm III > HS Visor > Treo 600 > Treo 650 > Treo 750 > Treo Pro > PrePlus GSM

    "95% of all software issues are due to USER ERROR."
  4.    #4  
    Thanks all for help. Scotty's code is very nice and I already save it and put in my /startup folder.

    Is there anyway to get notification once a call is initilized? The current solution is check the registry every 5 secs which is OK, but not so elegant.

    Thanks
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  5. #5  
    Not directly using MortScript. You could do that in eVC. I think zbop has a little proggy that waits on a reg change and wakes up when detected. I've been thinking it would be a nice MortScript addition to make a generic proggy where you could register for reg changes from a script.
  6.    #6  
    Can you guys help me identify the error in this sentence? It always popup "-1" while the value is always something from 0 to ffffff.

    Message (regread("HKCU","ControlPanel\volume","system"))

    Thanks
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  7. #7  
    assign the output of the regread to a variable first (x=RegRead etc), then use Message(variable)
    Palm III > HS Visor > Treo 600 > Treo 650 > Treo 750 > Treo Pro > PrePlus GSM

    "95% of all software issues are due to USER ERROR."
  8. #8  
    Read section 9.4.2 in the MortScript manual. NumberToHex and HexToNumber. The issue is since MortScript is using signed integers hex values with the high bit true will be negative values. You should be able to use NumberToHex to display the hex value. A -1 is 0xFFFFFFFF in hex.
  9.    #9  
    Quote Originally Posted by scottymomo View Post
    assign the output of the regread to a variable first (x=RegRead etc), then use Message(variable)
    Same error ("-1"). Can you try it in your machine?

    Thanks
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  10.    #10  
    Quote Originally Posted by hannip View Post
    Read section 9.4.2 in the MortScript manual. NumberToHex and HexToNumber. The issue is since MortScript is using signed integers hex values with the high bit true will be negative values. You should be able to use NumberToHex to display the hex value. A -1 is 0xFFFFFFFF in hex.
    Thanks for the help, Why the online PDF manual has no 9.4.2 section?

    Best regards
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  11. #11  
    Yeah, Mort hasn't updated the online version recently I don't think. You have to use the one included in the zip file.

    I should mention that those functions are in MortScript 4.01 only.
    Last edited by hannip; 09/09/2007 at 07:14 PM.
  12.    #12  
    Quote Originally Posted by hannip View Post
    Yeah, Mort hasn't updated the online version recently I don't think. You have to use the one included in the zip file.

    I should mention that those functions are in MortScript 4.01 only.
    I can see the ffffff now after upgrading to 4.01. But it is always ffffff no matter the system volume is 0 or ffffff. Does anybody know which reg value I should check to see if the system volume is muted?
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  13. #13  
    If by "muted" you mean when the ringer switch on top of the treo is off you can check registry value under
    HKLM\System\State\Hardware\Ringer

    If the value is 0 the volume is muted.

    You can look this reg for ringer volume.
    HKCU\ControlPanel\Volume\Ringer
    It has a range of 0-5.

    Looks like the pda volume is
    HKCU\ControlPanel\Volume\System
    It has a range of 0-0xFFFFFFFF.
  14.    #14  
    Quote Originally Posted by hannip View Post
    If by "muted" you mean when the ringer switch on top of the treo is off you can check registry value under
    HKLM\System\State\Hardware\Ringer

    If the value is 0 the volume is muted.

    You can look this reg for ringer volume.
    HKCU\ControlPanel\Volume\Ringer
    It has a range of 0-5.

    Looks like the pda volume is
    HKCU\ControlPanel\Volume\System
    It has a range of 0-0xFFFFFFFF.
    Thanks for the info. When I check the pda volume at HKCU\ControlPanel\Volume\System using regread, it always return "-1" even the volume is 0 (I use resco explorer check it.)
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  15.    #15  
    Quote Originally Posted by cellneuron View Post
    Thanks for the info. When I check the pda volume at HKCU\ControlPanel\Volume\System using regread, it always return "-1" even the volume is 0 (I use resco explorer check it.)
    Figure out that for system volume the 0 will still be 0 after 5 secs while all other value will be -1.

    Does anybody know which key should I check to see the call goes to BT headset or wired headset? I know I can check the hardware state of headset and handsfree, but it always happened that both headset and handsfree are 1.

    Thanks
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.
  16.    #16  
    I made a cab to make it available for those who may be interested. It's a very simple program and does very simple thing.

    http://discussion.treocentral.com/sh...&postcount=213
    Treo 750 unbranded T-mobile, HTC WIZARD 8125 T-MOBILE (broken), Treo 650 T-mobile 1.43/1.14 OS 5.4.8 Garnet (sold).
    Dell X50v, X30 624Mhz and HP ipaq h2210 h1945.

    Treo 750 hacks thread.

Posting Permissions