Results 1 to 6 of 6
  1.    #1  
    i saw this in the palm os side. it sounds awesome. http://discussion.treocentral.com/sh...d.php?t=139900

    is this kind of thing possible with mort?
  2. #2  
    So darn easy cody.We will put it togther this week.
  3.    #3  
    Quote Originally Posted by slingbox View Post
    So darn easy cody.We will put it togther this week.
    that's what i thought. the pos guys are going to be so jelous.
  4. #4  
    SetVolume(0)
    Sleep(# of minutes in milliseconds)
    SetVolume(200)

    Palm III > HS Visor > Treo 600 > Treo 650 > Treo 750 > Treo Pro > PrePlus GSM

    "95% of all software issues are due to USER ERROR."
  5.    #5  
    Quote Originally Posted by scottymomo View Post
    SetVolume(0)
    Sleep(# of minutes in milliseconds)
    SetVolume(200)

    would this be one of the scripts that would need an ini file with it so people could change the duration of mute?

    scottymomo, what would the script look like for a 60 minute mute and then go back to normal?
  6. #6  
    Quote Originally Posted by codyppc View Post
    would this be one of the scripts that would need an ini file with it so people could change the duration of mute?
    Depends on the use case

    If the idea is to execute the script manually when you need to go on mute for a certain period of time and that time is going to vary, then no need for an ini file.

    The user would execute the script, it would ask the user how many minutes to mute, they'd type it in (or choose from a list of choices), that value would be stored as a variable, converted to milliseconds, and would be used as the Sleep value.

    Quote Originally Posted by codyppc View Post
    scottymomo, what would the script look like for a 60 minute mute and then go back to normal?
    One problem is you can't get the current system volume you can only set it so the script will need to restore the volume to a fixed level (which could be user defined in an INI file or just fixed at a certain number, like 200 which is about 78% of max)

    MuteMinutes = Input( "Set Mute Duration" , "Mute Duration" )
    MuteMilliseconds = MuteMinutes*60000
    SetVolume(0)
    Sleep(MuteMilliseconds)
    SetVolume(200)

    Something like that...
    Palm III > HS Visor > Treo 600 > Treo 650 > Treo 750 > Treo Pro > PrePlus GSM

    "95% of all software issues are due to USER ERROR."

Posting Permissions