Post: Release: Button Monitoring local client ( Key_IsDown ) ( 1.05 )
12-12-2013, 10:35 AM #1
ZeiiKeN
Group 935
(adsbygoogle = window.adsbygoogle || []).push({}); Hi,

I will share a small code i have for some time, and that I use for my menu non host.

it possible to assign functions to keys.

Works only for local client.

C#:

Add GetMemory Function in your form:

    public static void GetMemory(uint Address, ref byte[] bytes)
{
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, ref bytes);
}


Key_IsDown:

    public class Buttons
{
public static int
X = 0x01,
O = 0x02,
Square = 0x03,
Triangle = 0x04,
L1 = 0x05,
R1 = 0x06,
L2 = 0x12,
R2 = 0x13,
R3 = 0x11,
Dpad_Up = 0x14,
Dpad_Down = 0x15,
Dpad_Left = 0x16,
Dpad_Right = 0x17,
Start = 0x0E,
Select = 0x0F;
}
private bool Key_IsDown(int localClientIndex, int buttonsIndex)
{
if (buttonsIndex < 0) return false;
byte[] buttons = new byte[4];
GetMemory((uint)(0xC8B6C0 + (buttonsIndex << 4) + (localClientIndex * 0xD2Cool Man (aka Tustin)), ref buttons);
Array.Reverse(buttons);
return BitConverter.ToInt32(buttons, 0) == 1;
}


How to use the Key_IsDown.

Create a timer and add this in:

    if (Key_IsDown(0, Buttons.X))
{
MessageBox.Show("Client 0 Pressed X");
}
if (Key_IsDown(0, Buttons.O))
{
MessageBox.Show("Client 0 Pressed O");
}



Now choose the keys you want.

Credits:

ZeiiKeN ( Offsets Key_IsDown and shortening of C# code )
Choco ( You must login or register to view this content. )
(adsbygoogle = window.adsbygoogle || []).push({});

The following 5 users say thank you to ZeiiKeN for this useful post:

iMoDz-Baptiste, Mango_Knife, Notorious, x_action_x
12-12-2013, 12:34 PM #2
Mango_Knife
In my man cave
Originally posted by ZeiiKeN View Post
Hi,

I will share a small code i have for some time, and that I use for my menu non host.

it possible to assign functions to keys.

Works only for local client.

C#:

Add GetMemory Function in your form:

    public static void GetMemory(uint Address, ref byte[] bytes)
{
PS3TMAPI.ProcessGetMemory(0, PS3TMAPI.UnitType.PPU, ProcessID, 0, Address, ref bytes);
}


Key_IsDown:

    public class Buttons
{
public static int
X = 0x01,
O = 0x02,
Square = 0x03,
Triangle = 0x04,
L1 = 0x05,
R1 = 0x06,
L2 = 0x12,
R2 = 0x13,
R3 = 0x11,
Dpad_Up = 0x14,
Dpad_Down = 0x15,
Dpad_Left = 0x16,
Dpad_Right = 0x17,
Start = 0x0E,
Select = 0x0F;
}
private bool Key_IsDown(int localClientIndex, int buttonsIndex)
{
if (buttonsIndex < 0) return false;
byte[] buttons = new byte[4];
GetMemory((uint)(0xC8B6BC + (buttonsIndex << 4) + (localClientIndex * 0xD2Cool Man (aka Tustin)), ref buttons);
Array.Reverse(buttons);
return BitConverter.ToInt32(buttons, 0) == 1;
}


How to use the Key_IsDown.

Create a timer and add this in:

    if (Key_IsDown(0, Buttons.X))
{
MessageBox.Show("Client 0 Pressed X");
}
if (Key_IsDown(0, Buttons.O))
{
MessageBox.Show("Client 0 Pressed O");
}



Now choose the keys you want.

Credits:

ZeiiKeN ( Offsets Key_IsDown and shortening of C# code )
Choco ( You must login or register to view this content. )


Nice work ZeiiKeN :yes:
12-12-2013, 12:39 PM #3
ItsMagiicsz
Bounty hunter
What i was looking for :3
12-12-2013, 05:40 PM #4
Anonymo-_-
I am error
see if someone manages to make a mod menu with this no?

and its publication would be great .......

google traductor
a ver si alguien consigue hacer un mod menu con esto no?

y su publicacion estaria genial....

gracias por compartir
03-09-2014, 11:42 AM #5
enfin trouver le Key_isDown

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo