Home | Stories | Reviews | Treo™ Store | Accessories | Software | Discussion | Mobile | About | Search

 
 
BackBeat 903 Stereo Bluetooth Headset Plantronics BackBeat 903 Stereo Bluetooth Headset
Just $89.95
Pen Stylus  (3-Pack) SPE Pen Stylus for Treo 755p, Treo 750
Just $14.95
Slip Case Palm Slip Case for Pixi
Just $27.95
WEP870 Convertible Mono and Stereo Bluetooth Headset Samsung WEP870 Convertible Mono and Stereo Bluetooth Headset
Just $79.95
 
Old 04/12/2007, 11:50 AM   #1 (permalink)
Member
 
crazie.eddie's Avatar
 
Join Date: Mar 2007
Posts: 1,140
Thanks: 0
Thanked 1 Time in 1 Post
Default cDate: Today date to replace the carrier logo

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
File Type: zip cDate2.4b.zip (3.6 KB, 233 views)

Last edited by crazie.eddie; 05/06/2007 at 08:01 PM.
crazie.eddie is offline   Reply With Quote
Old 04/12/2007, 12:14 PM   #2 (permalink)
Member
 
dbarrett5381's Avatar
 
Join Date: Dec 2004
Location: Salt Lake City, Utah
Posts: 494
Thanks: 14
Thanked 14 Times in 9 Posts
Default

SWEET! Thanks! Good work!
dbarrett5381 is offline   Reply With Quote
Old 04/12/2007, 01:32 PM   #3 (permalink)
Member
 
fumblerooski's Avatar
 
Join Date: Oct 2005
Location: Chicago
Posts: 395
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yeah, nice job, works great!
__________________
OH-IO!!!
Current Record: 1-2 in BCS Championships
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Current Rank: #5
Next Game: 8/30 - Youngstown State

Formerly "Tre-i-e-i-o"
Former Treo owner (iPhone 3G baby!)
fumblerooski is offline   Reply With Quote
Old 04/12/2007, 01:38 PM   #4 (permalink)
Member
 
Join Date: May 2005
Posts: 455
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is this "hack" easy to uninstall?
psywzrd is offline   Reply With Quote
Old 04/12/2007, 01:49 PM   #5 (permalink)
Member
 
Join Date: May 2005
Posts: 455
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
psywzrd is offline   Reply With Quote
Old 04/12/2007, 03:04 PM   #6 (permalink)
Member
 
codyppc's Avatar
 
Join Date: May 2006
Location: Kansas City, Missouri
Posts: 2,806
Thanks: 6
Thanked 46 Times in 14 Posts
Default

how is this different than the one in the thread you started last week?
codyppc is offline   Reply With Quote
Old 04/12/2007, 03:30 PM   #7 (permalink)
Member
 
crazie.eddie's Avatar
 
Join Date: Mar 2007
Posts: 1,140
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
crazie.eddie is offline   Reply With Quote
Old 04/12/2007, 03:43 PM   #8 (permalink)
Member
 
codyppc's Avatar
 
Join Date: May 2006
Location: Kansas City, Missouri
Posts: 2,806
Thanks: 6
Thanked 46 Times in 14 Posts
Default

right on.
codyppc is offline   Reply With Quote
Old 04/12/2007, 11:11 PM   #9 (permalink)
Member
 
crazie.eddie's Avatar
 
Join Date: Mar 2007
Posts: 1,140
Thanks: 0
Thanked 1 Time in 1 Post
Default

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/13/2007 at 01:36 AM.
crazie.eddie is offline   Reply With Quote
Old 04/13/2007, 03:54 PM   #10 (permalink)
Member
 
Join Date: Dec 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

eddie, there is a clock.exe in my device >> windows

you can hyperlink it there.
slyaii is offline   Reply With Quote
Old 04/13/2007, 04:13 PM   #11 (permalink)
Member
 
crazie.eddie's Avatar
 
Join Date: Mar 2007
Posts: 1,140
Thanks: 0
Thanked 1 Time in 1 Post
Default

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 04:51 PM.
crazie.eddie is offline   Reply With Quote
Old 04/13/2007, 04:49 PM   #12 (permalink)
Member
 
jchrist's Avatar
 
Join Date: Dec 2006
Location: Rock 3
Posts: 146
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
jchrist is offline   Reply With Quote
Old 04/13/2007, 05:48 PM   #13 (permalink)
Member
 
codyppc's Avatar
 
Join Date: May 2006
Location: Kansas City, Missouri
Posts: 2,806
Thanks: 6
Thanked 46 Times in 14 Posts
Default

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
File Type: zip Date with Crazy Eddie.zip (48.1 KB, 196 views)
codyppc is offline   Reply With Quote
Old 04/13/2007, 06:15 PM   #14 (permalink)
Member
 
Join Date: Feb 2007
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Nice work... easy install!
joe_mcp is offline   Reply With Quote
Old 04/13/2007, 06:21 PM   #15 (permalink)
Member
 
crazie.eddie's Avatar
 
Join Date: Mar 2007
Posts: 1,140
Thanks: 0
Thanked 1 Time in 1 Post
Default

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.
crazie.eddie is offline   Reply With Quote
Old 04/13/2007, 06:37 PM   #16 (permalink)
Member
 
Join Date: Apr 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
GabGold is offline   Reply With Quote
Old 04/13/2007, 07:09 PM   #17 (permalink)
Member
 
Join Date: Dec 2006
Posts: 50
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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 idiot proof.
slyaii is offline   Reply With Quote
Old 04/13/2007, 07:53 PM   #18 (permalink)
Member
 
codyppc's Avatar
 
Join Date: May 2006
Location: Kansas City, Missouri
Posts: 2,806
Thanks: 6
Thanked 46 Times in 14 Posts
Default

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 08:05 PM.
codyppc is offline   Reply With Quote
Old 04/13/2007, 08:23 PM   #19 (permalink)
Member
 
slingbox's Avatar
 
Join Date: Oct 2006
Posts: 2,101
Thanks: 17
Thanked 3 Times in 3 Posts
Default

Cody I will cab your builds if needed.Just let me know

WinCE CAB Manager hmm I love it!!
slingbox is offline   Reply With Quote
Old 04/13/2007, 08:34 PM   #20 (permalink)
Member
 
crazie.eddie's Avatar
 
Join Date: Mar 2007
Posts: 1,140
Thanks: 0
Thanked 1 Time in 1 Post
Default

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 idiot 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.
crazie.eddie is offline   Reply With Quote
Reply


Thread Tools
Display Modes

~


All times are GMT -4. The time now is 08:20 AM.

Creating smartphone communities
Android Central - Android reviews, news and forums Crackberry - Blackberry news, reviews and community TiPb - iPhone news, accessory reviews & forums
Pre Central - Palm Pre Review, News and Community Treo Central - Treo & Centro News and Forums WMExperts - Windows Mobile Reviews & News

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
 
 

Copyright ©1999- TreoCentral. All rights reserved : Terms of Use : Privacy Policy

TREO and TreoCentral are trademarks or registered trademarks of palm, Inc. in the United States and other countries;
the TreoCentral mark and domain name are used under license from palm, Inc.
The views expressed on this website are solely those of the proprietor, or
contributors to the site, and do not necessarily reflect the views of palm, Inc.

Explore More: Crackberry | WMExperts | the iPhone Blog | Android Central | Smartphone Experts Combined Forums