Post: C# Digital Clock Name - DEX
04-30-2014, 02:23 PM #1
(adsbygoogle = window.adsbygoogle || []).push({}); This codes makes your name change into clock local time.

- Insert 1 Label and 2 buttons

- Label1: shows clock in tool
- Button1: start button
- Button2: Stop button


Code:


//Setup Timer 1
public Form1()
{
InitializeComponent();
timer1.Tick += button1_Click;


}
// Timer
static Timer timer1 = new Timer();


// Button1 Start
private void button1_Click(object sender, EventArgs e)
{
timer1.Start();

// MM-dd-yyyy HH:mm:ss
this.label1.Text = DateTime.Now.ToString("HH:mm:ss");
byte[] Code1 = Encoding.ASCII.GetBytes("^2Time: ^6" + label1.Text);
Array.Resize(ref Code1, Code1.Length + 1);
PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x01BBBC2C, Code1);

timer1.Start();
}

// Button2 Stop

private void button2_Click(object sender, EventArgs e)
{
timer1.Stop();
}

Have fun !!!

(got the idea from xCSBKx).

You must login or register to view this content.
(adsbygoogle = window.adsbygoogle || []).push({});
04-30-2014, 03:53 PM #2
Will test this out now and see if it works.
05-01-2014, 11:31 AM #3
GMTPS3
Do a barrel roll!
Nice Smile

1. Make a public string:

    public static string Time;



2. Make a Timer and add this:

    timer.Interval = 1000;
Time = DateTime.Now.ToLongTimeString();
PS3.WriteString(0x1bbbc2c,Time);



(This is my Video where i make the Clock Happy)

The following user thanked GMTPS3 for this useful post:

RaGE_LoLo69
05-07-2014, 04:41 PM #4
kiwi_modz
I defeated!
Originally posted by mrdarkblue View Post
This codes makes your name change into clock local time.

- Insert 1 Label and 2 buttons

- Label1: shows clock in tool
- Button1: start button
- Button2: Stop button


Code:


//Setup Timer 1
public Form1()
{
InitializeComponent();
timer1.Tick += button1_Click;


}
// Timer
static Timer timer1 = new Timer();


// Button1 Start
private void button1_Click(object sender, EventArgs e)
{
timer1.Start();

// MM-dd-yyyy HH:mm:ss
this.label1.Text = DateTime.Now.ToString("HH:mm:ss");
byte[] Code1 = Encoding.ASCII.GetBytes("^2Time: ^6" + label1.Text);
Array.Resize(ref Code1, Code1.Length + 1);
PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x01BBBC2C, Code1);

timer1.Start();
}

// Button2 Stop

private void button2_Click(object sender, EventArgs e)
{
timer1.Stop();
}

Have fun !!!

(got the idea from xCSBKx).


Simple Simple Simple stuff. you forget one thing. A.M. And P.M. and not 24 hour clock to 12 hour clock Smile

do this

hh:mm:ss tt
05-09-2014, 03:51 AM #5
ByteSource
League Champion
Originally posted by mrdarkblue View Post
This codes makes your name change into clock local time.

- Insert 1 Label and 2 buttons

- Label1: shows clock in tool
- Button1: start button
- Button2: Stop button


Code:


//Setup Timer 1
public Form1()
{
InitializeComponent();
timer1.Tick += button1_Click;


}
// Timer
static Timer timer1 = new Timer();


// Button1 Start
private void button1_Click(object sender, EventArgs e)
{
timer1.Start();

// MM-dd-yyyy HH:mm:ss
this.label1.Text = DateTime.Now.ToString("HH:mm:ss");
byte[] Code1 = Encoding.ASCII.GetBytes("^2Time: ^6" + label1.Text);
Array.Resize(ref Code1, Code1.Length + 1);
PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x01BBBC2C, Code1);

timer1.Start();
}

// Button2 Stop

private void button2_Click(object sender, EventArgs e)
{
timer1.Stop();
}

Have fun !!!

(got the idea from xCSBKx).

You must login or register to view this content.


this is nice but i code my things with SetMemory.

//your coding
this.label1.Text = DateTime.Now.ToString("HH:mm:ss");
byte[] Code1 = Encoding.ASCII.GetBytes("^2Time: ^6" + label1.Text);
Array.Resize(ref Code1, Code1.Length + 1);
PS3TMAPI.ProcessSetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, 0x01BBBC2C, Code1);

//a little short way
this.label1.Text = DateTime.Now.ToString("HH:mm:ss");
PS3.SetMemory(0x01BBBC2C, Encoding.ASCII.GetBytes("^2Time: ^6" + label1.Text));

there both the same thing but yours runs under TMAPI, and PS3.SetMemory runs under ccapi and tmapi Happy

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo