DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Change your system's AM and PM  (Read 6,082 times)

nite_monkey

  • Member
  • Joined in 2006
  • **
  • Posts: 753
Change your system's AM and PM
« on: April 08, 2007, 08:28 PM »
That is a very bad subject, but owell, if you can come up with something better, let me know.
Anyways on with what I found out.
I found this really cool tweek for windows, I don't know what all it works with, but I am using xp pro SP2.
you can change the boring AM and PM on your clock in the system tray to what ever you want, but it has to be 5 characters or less, because anything after that wont show up.
[attach=#]
here is a screenshot of what my pm timestamp is. I was testing to see how many characters I could use, for that I typed <(O_O)> and <(O_O is all that shows. if you want to do this, then...

Code
'Author:    Frankie Miklos © 2003 PuPpYpc.com
'Date:      8/27/2003

Dim ws, key, am, pm

    Set ws = WScript.CreateObject("WScript.Shell")

    key = "HKCU\Control Panel\International\"

    am = InputBox("Type in the new AM time stamp:", "Change AM Time Stamp", "AM")

    If am <> "" Then
        ws.RegWrite key & "s1159", am
        MsgBox "The AM time stamp has been successfully changed to " & am & "!" & vbNewLine & "Double-click the time in the system tray and click OK", vbInformation, "Success"
    End If
    
    pm = InputBox("Type in the new PM time stamp:", "Change PM Time Stamp", "PM")

    If pm <> "" Then
        ws.RegWrite key & "s2359", pm
        MsgBox "The PM time stamp has been successfully changed to " & pm & "!" & vbNewLine & "Double-click the time in the system tray and click OK", vbInformation, "Success"
    End If
put that code into a new file and save it as whatever.vbs and then you too can change your AM and PM timestamps
edit:I forgot to mention, after you change the timestamps, double click on the clock, and then close the time settings dialog that opens.
[Insert really cool signature here]
« Last Edit: April 08, 2007, 08:32 PM by nite_monkey »

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Change your system's AM and PM
« Reply #1 on: April 09, 2007, 02:49 AM »
or you also use tClock2 for a GUI approach.. :)

[attach=#]

nite_monkey

  • Member
  • Joined in 2006
  • **
  • Posts: 753
Re: Change your system's AM and PM
« Reply #2 on: April 09, 2007, 09:24 PM »
with my meathod, you have a some what gui, it was just a quick thing, all it does is change the AM and PM to what ever you type into the box, that seems to be more in depth.
[Insert really cool signature here]

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: Change your system's AM and PM
« Reply #3 on: April 10, 2007, 01:39 AM »
i can see that, nite_monkey.. i was just pointing out an alternative way to do it.. :)

nite_monkey

  • Member
  • Joined in 2006
  • **
  • Posts: 753
Re: Change your system's AM and PM
« Reply #4 on: April 10, 2007, 01:49 AM »
Well I never said you meathod was bad, I just didn't know about your meathod, mine is just a quick one, yours is better, and gives you more control over the time, so its cool
[Insert really cool signature here]

Original address: https://www.donationcoder.com/forum/index.php?topic=8017.0