Post: All Clients Buttons Monitoring (C# / 1.13)
10-29-2013, 10:00 PM #1
seb5594
Proud Former Admin
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU,

Quick Release for Today, someone asked me for a Buttons Monitoring for BO1 cause i released yesterday Hud Elements.
Add this somewhere to your Project


    
public class Buttons
{
public static UInt32
X = 2104320,
O = 512,
Square = 67108864,
Triangle = 8,
L3 = 1074003968,
R3 = 536870912,
L2 = 72704,
R2 = 131072,
L1 = 1048704,
R1 = 2147483648,
Crouch = 4194304,
Prone = 8388608,
StartButton = 4;
}
public Boolean ButtonPressed(Int32 clientIndex, UInt32 Button)
{
if (PS3Lib.ReadUInt32((UInt32)G_Client(clientIndex) + 0x271Cool Man (aka Tustin) == Button)
return true;
else return false;
}
public Int32 G_Client(Int32 clientIndex)
{
return (Int32)0x13950C8 + 0x2A38 * clientIndex;
}
public static UInt32 ReadUInt32(uint offset)
{
Byte[] YoLo= GetMemory(offset, 4);
Array.Reverse(YoLo, 0, 4);
return BitConverter.ToUInt32(YoLo, 0);
}


If you have not Chocos GetMemory Function, here is it
    public byte[] GetMemory(uint address, int length)
{
byte[] buffer = new byte[length];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, processID, 0L, (ulong)address, ref buffer);
return buffer;
}


How you can use it (Use a Timer!)
Syntax of this Function
            private void TestButtons()
{
if (ButtonPressed(0, Buttons.X))
MessageBox.Show("Client 0 Pressed X");
}


Credits:
seb5594 - Creating this Function
MegaMister - Fixed Buttons Values
Anera - G_Client Offset and Button Offset
iMCSx - PS3Lib for ReadUInt32 Function
(adsbygoogle = window.adsbygoogle || []).push({});

The following 9 users say thank you to seb5594 for this useful post:

AlexNGU, Authority Modz, EdiTzZ, lollo1000, John, SnaY, worrorfight, xPAQz, zZHackzZ
11-28-2013, 07:03 AM #11
Originally posted by seb5594 View Post
Hey NGU,

Quick Release for Today, someone asked me for a Buttons Monitoring for BO1 cause i released yesterday Hud Elements.
Add this somewhere to your Project


    
public class Buttons
{
public static UInt32
X = 1843200,
O = 147456,
Square = 4,
Triangle = 134217728,
L3 = 1088,
R3 = 32,
L2 = 131328,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768,
StartButton = 67108864;
}
public Boolean ButtonPressed(Int32 clientIndex, UInt32 Button)
{
if (PS3Lib.ReadUInt32((UInt32)G_Client(clientIndex) + 0x271Cool Man (aka Tustin) == Button)
return true;
else return false;
}
public Int32 G_Client(Int32 clientIndex)
{
return (Int32)0x13950C8 + 0x2A38 * clientIndex;
}
public static UInt32 ReadUInt32(uint offset)
{
Byte[] YoLo= GetMemory(offset, 4);
Array.Reverse(YoLo, 0, 4);
return BitConverter.ToUInt32(YoLo, 0);
}


If you have not Chocos GetMemory Function, here is it
    public byte[] GetMemory(uint address, int length)
{
byte[] buffer = new byte[length];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, processID, 0L, (ulong)address, ref buffer);
return buffer;
}


How you can use it (Use a Timer!)
Syntax of this Function
            private void TestButtons()
{
if (ButtonPressed(0, Buttons.X))
MessageBox.Show("Client 0 Pressed X");
}


Credits:
seb5594 - Creating this Function
Anera - G_Client Offset and Button Offset
iMCSx - PS3Lib for ReadUInt32 Function


I'm having troubles using this, could you hmu on skype and help me?
12-02-2013, 09:09 AM #12
Asian
Banned
noice Awesome face
12-02-2013, 12:12 PM #13
SnaY
Former Lead of GS
Originally posted by Corey View Post
I'm having troubles using this, could you hmu on skype and help me?


Hi corey you have deleted me from skype stare
12-02-2013, 05:53 PM #14
Originally posted by SnaY View Post
Hi corey you have deleted me from skype stare


Sorry bud, I went through a wave of deleting people, I probably delted you on accident.
01-26-2014, 01:29 PM #15
this is for get clients?
05-05-2014, 12:20 PM #16
makeabce
I defeated!
Originally posted by seb5594 View Post
Hey NGU,

Quick Release for Today, someone asked me for a Buttons Monitoring for BO1 cause i released yesterday Hud Elements.
Add this somewhere to your Project


    
public class Buttons
{
public static UInt32
X = 1843200,
O = 147456,
Square = 4,
Triangle = 134217728,
L3 = 1088,
R3 = 32,
L2 = 131328,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768,
StartButton = 67108864;
}
public Boolean ButtonPressed(Int32 clientIndex, UInt32 Button)
{
if (PS3Lib.ReadUInt32((UInt32)G_Client(clientIndex) + 0x271Cool Man (aka Tustin) == Button)
return true;
else return false;
}
public Int32 G_Client(Int32 clientIndex)
{
return (Int32)0x13950C8 + 0x2A38 * clientIndex;
}
public static UInt32 ReadUInt32(uint offset)
{
Byte[] YoLo= GetMemory(offset, 4);
Array.Reverse(YoLo, 0, 4);
return BitConverter.ToUInt32(YoLo, 0);
}


If you have not Chocos GetMemory Function, here is it
    public byte[] GetMemory(uint address, int length)
{
byte[] buffer = new byte[length];
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, processID, 0L, (ulong)address, ref buffer);
return buffer;
}


How you can use it (Use a Timer!)
Syntax of this Function
            private void TestButtons()
{
if (ButtonPressed(0, Buttons.X))
MessageBox.Show("Client 0 Pressed X");
}


Credits:
seb5594 - Creating this Function
Anera - G_Client Offset and Button Offset
iMCSx - PS3Lib for ReadUInt32 Function

Why your codes never work? Could you please post codes that you have ACTUALLY tested by yourself?
You must login or register to view this content.
Lol... it would be fun if i could scroll my menu...
[ATTACH=CONFIG]31051[/ATTACH]

The following user thanked makeabce for this useful post:

ShutTheCrunchUp
05-05-2014, 02:36 PM #17
seb5594
Proud Former Admin
Originally posted by makeabce View Post
Why your codes never work? Could you please post codes that you have ACTUALLY tested by yourself?
You must login or register to view this content.
Lol... it would be fun if i could scroll my menu...
[ATTACH=CONFIG]31051[/ATTACH]


In the ReadInt32 Function remove the "static". And everything i release is tested before ofcourse!

The following user thanked seb5594 for this useful post:

xPAQz
05-05-2014, 03:11 PM #18
makeabce
I defeated!
Originally posted by seb5594 View Post
In the ReadInt32 Function remove the "static". And everything i release is tested before ofcourse!

I'm using these codes becose i'm having itsLollo1000's MultiHudElem.dll, but these don't work. When i put some button in timer, nothing happens. Exept, when i putted this:
if(ButtonPressed(0,Buttons.Square)
{
MessageBox.Show("Hi");
}

Nothing actually happened,but when i pressed start instead of square, it activated the function...so there must be something wrong in the Buttons class?
    
public class Buttons
{
public static UInt32
X = 1843200,
O = 147456,
Square = 4,
Triangle = 134217728,
L3 = 1088,
R3 = 32,
L2 = 131328,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768,
StartButton = 67108864;
}
public Boolean ButtonPressed(Int32 clientIndex, UInt32 Button)
{
if (BO1TMAPI.PS3.Extension.ReadUInt32((UInt32)G_Client(clientIndex) + 0x271Cool Man (aka Tustin) == Button)
return true;
else return false;
}
public Int32 G_Client(Int32 clientIndex)
{
return (Int32)0x13950C8 + 0x2A38 * clientIndex;
}
public UInt32 ReadUInt32(uint offset)
{
Byte[] YoLo = GetMemory(offset, 4);
Array.Reverse(YoLo, 0, 4);
return BitConverter.ToUInt32(YoLo, 0);
}
public byte[] GetMemory(uint address, int length)
{
byte[] buffer = new byte[length];
BO1TMAPI.PS3.GetMemory(address, buffer);
return buffer;
}
05-05-2014, 03:26 PM #19
seb5594
Proud Former Admin
Originally posted by makeabce View Post
I'm using these codes becose i'm having itsLollo1000's MultiHudElem.dll, but these don't work. When i put some button in timer, nothing happens. Exept, when i putted this:
if(ButtonPressed(0,Buttons.Square)
{
MessageBox.Show("Hi");
}

Nothing actually happened,but when i pressed start instead of square, it activated the function...so there must be something wrong in the Buttons class?
    
public class Buttons
{
public static UInt32
X = 1843200,
O = 147456,
Square = 4,
Triangle = 134217728,
L3 = 1088,
R3 = 32,
L2 = 131328,
R2 = 512,
L1 = 2147487744,
R1 = 128,
Crouch = 16384,
Prone = 32768,
StartButton = 67108864;
}
public Boolean ButtonPressed(Int32 clientIndex, UInt32 Button)
{
if (BO1TMAPI.PS3.Extension.ReadUInt32((UInt32)G_Client(clientIndex) + 0x271Cool Man (aka Tustin) == Button)
return true;
else return false;
}
public Int32 G_Client(Int32 clientIndex)
{
return (Int32)0x13950C8 + 0x2A38 * clientIndex;
}
public UInt32 ReadUInt32(uint offset)
{
Byte[] YoLo = GetMemory(offset, 4);
Array.Reverse(YoLo, 0, 4);
return BitConverter.ToUInt32(YoLo, 0);
}
public byte[] GetMemory(uint address, int length)
{
byte[] buffer = new byte[length];
BO1TMAPI.PS3.GetMemory(address, buffer);
return buffer;
}


Please check my first post MegaMister fixed the Button Values. It should be fixed Smile

The following user thanked seb5594 for this useful post:

makeabce

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo