Page 1 of 7 123456 ... LastLast
Results 1 to 20 of 135
  1.    #1  
    As previously discussed on these threads (1 2 ), I decided to create a simple date script, using Mortscript. The script displays todays date on the field where the carrier logo is shown (see image)...



    As you know, having a 240x240 screen makes every space prime real estate. There are a few apps that could achieve what my script does...Hidelogo (hides the carrier logo field), TrueToolbar (display lower tray), BTIcon (displays bluetooth icon in lower tray of TrueToolbar), and TodayDate (displays todays date on Today screen).

    I liked the Bluetooth icon on the carrier logo field, because it changes color if a device is connected. Using the BTicon app, the only way I could tell if my headset was still connected would be by calling my voicemail to see if I can hear through the headset.

    Therefore, after some research, I developed a simple script to achieve the above...

    Code:
    #      Author: Crazie.Eddie@Flashmail.com
    # Description: Carrier line date replacement
    #     Version: 2.4 Beta
    
    # Mortscript ver: 4.0
    #  Supported PPC: Treo 700wx (WM5)
    #
    # CHANGE LOG:
    # 2007.04.05 - Initial creation (CE)
    # 2007.04.07 - Write to logo field into a seperate module (CE)
    # 2007.04.08 - Aborted seperate module to write to logo (CE)
    # 2007.04.09 - Create ini file (CE)
    # 2007.04.10 - Script establishes it's own script name and path (CE)
    # 2007.04.12 - Made functional on a 750, as well as 700w/wx (CE)
    # 2007.04.14 - Mortscript SOP compliant (CE)
    # 2007.04.14 - Aborted ini scripting (CE)
    # 2007.04.31 - Replaced RunAt with Sleep, due to increased battery usage (CE)
    # 2007.05.03 - Shorted month names, due to character limitation on field. (CE)
    # 2007.05.04 - Checked if registries exist. Terminate if they do not. (CE)
    # 2007.05.05 - Abort check registries. Compatible with Mortscript 4.01. (CE)
    #
    ##################################################################
    #
      ThisScriptPath = SystemPath("ScriptPath")
      ThisScriptName = SystemPath("ScriptName") & SystemPath("ScriptExt")
      ThisScript     = ThisScriptPath \ ThisScriptName
    
    # ================================================================
    
      While(1)
    # ================================================================
    #
    # If the script is somehow removed, it will terminate.
    # Used for script testing by placing script on SD card.
    # ----------------------------------------------------------------
    #
      If (NOT FileExists(ThisScript ))
          Message(ThisScriptName & " has been removed, script will terminate.  " \
                   & "Please turn phone radio OFF, then turn phone radio " \
                   & "ON to restore carrier line.", "SCRIPT ERROR")
          EXIT
      EndIf
    
    # ================================================================
    #
    # Determines current month by name.  Assigns each month into an
    # array.
    # ----------------------------------------------------------------
      MonthVal=FormatTime("m")
    
      MonthName["01"]="Jan"
      MonthName["02"]="Feb"
      MonthName["03"]="Mar"
      MonthName["04"]="Apr"
      MonthName["05"]="May"
      MonthName["06"]="Jun"
      MonthName["07"]="Jul"
      MonthName["08"]="Aug"
      MonthName["09"]="Sept"
      MonthName["10"]="Oct"
      MonthName["11"]="Nov"
      MonthName["12"]="Dec"
    
    # ================================================================
    #
    # Determines current day by name. Assigns each day into an array
    #
    # ----------------------------------------------------------------
      DayVal=FormatTime("w")
    
      DayName["0"]="Sunday"
      DayName["1"]="Monday"
      DayName["2"]="Tuesday"
      DayName["3"]="Wednesday"
      DayName["4"]="Thursday"
      DayName["5"]="Friday"
      DayName["6"]="Saturday"
    
    # ================================================================
    #
    # Retrieves the current date and year, then combines to display 
    # the field (example Friday, Apr 06, 2007)
    #
    # ----------------------------------------------------------------
      GetTime Date, " d, Y"
      DisplayDate = DayName[DayVal] & ", " & MonthName[MonthVal] & Date
    
    # ================================================================
    #
    # Writes the date in the carrier field
    #
    # HKLM\System\State\Phone\Current Operator Name  (Treo700wx & 750)
    # HKLM\Software\Microsoft\Ril                       (Treo700 ONLY)
    #
    # ----------------------------------------------------------------
    # PlaySound("\Windows\Default.wav")
    
      RegWriteString ("HKLM","Software\Microsoft\Ril","CarrierName", DisplayDate)
      RegWriteString ("HKLM","System\State\Phone","Current Operator Name", DisplayDate)
    
    # ================================================================
    #
    # Waits 60 seconds, before restarting loop.
    #
    # ----------------------------------------------------------------
      GetTime SleepVal, "s"
      SleepTime = ((60 - SleepVal) * 1075)
      Sleep (SleepTime)
    
    EndWhile
    VERSION:
    2.4 Beta


    CHANGE LOG:
    2007.04.05 - Initial creation
    2007.04.07 - Write to logo field into a seperate module
    2007.04.08 - Aborted seperate module to write to logo
    2007.04.09 - Create ini file
    2007.04.10 - Script establishes it's own script name and path
    2007.04.12 - Made functional on a 750, as well as 700w/wx
    2007.04.14 - Mortscript SOP compliant
    2007.04.14 - Aborted ini scripting
    2007.04.31 - Replaced RunAt with Sleep, due to increased battery usage
    2007.05.03 - Shorted month names, due to character limitation on field.
    2007.05.04 - Checked if registries exist. Terminate if they do not.
    2007.05.05 - Abort check registries. Now compatible with Mortscript 4.01.


    Install Instructions:

    1. Uninstall any previous versions and perform a soft reset.
    2. Download and extract the zip file.
    3. Copy the extracted cDate.CAB file onto your device.
    4. Click on cDate.CAB on your device to execute the installation.
    5. Perform a soft reset once the installation is complete.


    Cab files performs:
    1. Installs to \Windows\Programs\Start Menu\Mortscript
    2. Creates shortcut in \Windows\Programs
    3. Creates shortcut in \Windows\Startup
    4. Uninstall option

    Mortscript.exe must installed and registered on your device


    -----------------------------------------------------------------------------------------------------

    Other carrier plugins:
    Treo Alert - Tested and functions well with Treo Alert 4.8
    XCast - Will be testing in the future.


    Future cDate Releases:
    - Select field to activate Clock app
    - Convert to exe
    - Hourly chime (user configurable)
    Attached Files Attached Files
    Last edited by crazie.eddie; 05/06/2007 at 06:01 PM.
  2. #2  
    SWEET! Thanks! Good work!
  3. #3  
    Yeah, nice job, works great!
    OH-IO!!!
    Current Record: 1-2 in BCS Championships Current Rank: #5
    Next Game: 8/30 - Youngstown State

    Formerly "Tre-i-e-i-o"
    Former Treo owner (iPhone 3G baby!)
  4. psywzrd's Avatar
    Posts
    455 Posts
    Global Posts
    476 Global Posts
    #4  
    Is this "hack" easy to uninstall?
  5. psywzrd's Avatar
    Posts
    455 Posts
    Global Posts
    476 Global Posts
    #5  
    One thing I noticed about this is that you can't click on the date now and get to the Clocks and Alarms menu. Any way to add that functionality?
  6. #6  
    how is this different than the one in the thread you started last week?
  7.    #7  
    Quote Originally Posted by psywzrd View Post
    Is this "hack" easy to uninstall?
    Yes, just delete the app.

    Quote Originally Posted by psywzrd View Post
    One thing I noticed about this is that you can't click on the date now and get to the Clocks and Alarms menu. Any way to add that functionality?
    I'm working on getting that put back in.

    Quote Originally Posted by codyppc View Post
    how is this different than the one in the thread you started last week?
    It's the same one. I just figured I would start a new thread regarding it. I wanted to make the first post in the thread, the app and the details, so if I make changes in the future, I just modify the first thread.
  8. #8  
    right on.
  9.    #9  
    Thanks.

    I have a few requests to make it functional on a 750. It should be no prob now that I can determine the device, by reading the Software version (Settings > About > Phone), which is contained in the registry key...

    HKLM\Software\Palm\Version\SoftwareVersionString

    The first 7 characters should display either TREO700 or TREO750. According to my research, the Treo 750 has a different registry key that contains the Carrier/Operator name, which appears to be only contained in the registry key...

    HKLM\System\State\Phone\Current Carrier Operator Name

    Please correct me if I'm wrong or if you know of any other keys on the 750. Basically, I'm incorporating this in my script, which will read the key and use a substring to extract the first 7 characters, which will display as either TREO700 or TREO750.
    Last edited by crazie.eddie; 04/12/2007 at 11:36 PM.
  10. #10  
    eddie, there is a clock.exe in my device >> windows

    you can hyperlink it there.
  11.    #11  
    Quote Originally Posted by slyaii View Post
    eddie, there is a clock.exe in my device >> windows

    you can hyperlink it there.
    Thanks. I'm just not sure how to activate the clock app, by clicking on the date of my script. I'm working on it.
    Last edited by crazie.eddie; 04/13/2007 at 02:51 PM.
  12. #12  
    Killer!! One more row cleaned off my screen!

    Palm and Microsoft should hire some of you guys to run a customer wants and needs division. It seems you could also teach some of their programmers a thing or two about what they are doing!!

    You guys rule! Thanks.
  13. #13  
    since i was in the giving mood....

    i have attached a zip file with the cab inside. it creates a folder called "cDate" in the program files folder with the mortscript.exe and the cDate.mscr.

    i then put a shortcut to the cDate in the startup folder.

    enjoy, cody

    for unstalling just goto "remove programs" on your treo, and remove.
    Attached Files Attached Files
  14. #14  
    Nice work... easy install!
  15.    #15  
    Quote Originally Posted by codyppc View Post
    since i was in the giving mood....

    i have attached a zip file with the cab inside. it creates a folder called "cDate" in the program files folder with the mortscript.exe and the cDate.mscr.

    i then put a shortcut to the cDate in the startup folder.

    enjoy, cody

    for unstalling just goto "remove programs" on your treo, and remove.
    Thanks Cody. I'm still confused about making cabs, but just found WinCE CAB Manager, so hopefully, I'll figure it out.
  16. #16  
    Can't wait for the 750 version. I use hidelogo now and the other day I forgot to cut off my bluetooth. I didn't notice it until my battery was in the 60's.
  17. #17  
    eddie, i install in the cDate.mscr into Startup. everytime i soft reset, i get an error that it cannot be started, then i manually start it. is this normal? or am i doing something wrong...perhaps, just dl the cab file from you so that it will be ***** proof.
  18. #18  
    Quote Originally Posted by crazie.eddie View Post
    Thanks Cody. I'm still confused about making cabs, but just found WinCE CAB Manager, so hopefully, I'll figure it out.
    that's what I use. as well as many others on here. It gives you 20 free. after that it costs like $80. if you buy it, you need to share with me.
    Last edited by codyppc; 04/13/2007 at 06:05 PM.
  19. #19  
    Cody I will cab your builds if needed.Just let me know

    WinCE CAB Manager hmm I love it!!
  20.    #20  
    Quote Originally Posted by slyaii View Post
    eddie, i install in the cDate.mscr into Startup. everytime i soft reset, i get an error that it cannot be started, then i manually start it. is this normal? or am i doing something wrong...perhaps, just dl the cab file from you so that it will be ***** proof.
    That's not normal. I'm assuming mortscript.exe is already installed and registered on your device?

    I haven't tried the cab, but it should be fine.
Page 1 of 7 123456 ... LastLast

Posting Permissions