Post: [Script/RTM] All Client Dpad Monitoring
02-12-2014, 12:17 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I don't know if people even make menus for this game anymore, but if you wanted to, I suggest using this button monitoring if you wanted it to be like a 1.11 menu because you can monitor dpads using this! It's pretty cool I guess. To use this you will need PS3Lib v4 from Imcsx.

Script

    
public class Buttonz
{
public static string
DpadUp = "+actionslot 1",
DpadDown = "+actionslot 2",
DpadRight = "+actionslot 4",
DpadLeft = "+actionslot 3",
Cross = "+gostand",
Circle = "+stance",
Triangle = "weapnext",
Square = "+usereload",
R3 = "+melee",
R2 = "+frag",
R1 = "+attack",
L3 = "+breath_sprint",
L2 = "+smoke",
L1 = "+speed_throw",
Select = "togglescores",
Start = "togglemenu";
}
public bool ButtonPressed(int client, string Button)
{
if (PS3.Extension.ReadString(0x34750E9F + ((uint)client * 0x97F80)) == Button)
return true;
else return false;
}


And if you don't know how to use it, just put it in a timer or background worker like this

    
if (ButtonPressed(7, Buttonz.Cross))
MessageBox.Show("Client 7 is pressing Cross");
else if (ButtonPressed(0, Buttonz.DpadRight))
MessageBox.Show("Client 0 is pressing dpad right");


I will update this thread with the offline version in a bit...

Credits to SC58 for the dword for client_s on mw2 Smile
Last edited by Black Panther ; 02-12-2014 at 08:19 PM. Reason: Credits

The following 3 users say thank you to Black Panther for this useful post:

Dannie Fresh, ItsLollo1000, Notorious
02-23-2014, 08:11 PM #11
Originally posted by Prime
i like that kind of button monitoring better Winky Winky


Oh idk why this is easier lol
02-23-2014, 08:12 PM #12
Notorious
Caprisuns Is Back
Originally posted by AlmightySo View Post
Oh idk why this is easier lol


im not that sure on how to make menu using this kind
02-23-2014, 08:59 PM #13
Originally posted by Prime
im not that sure on how to make menu using this kind


    
if(ButtonPressed(0, Buttonz.DpadUp))
{
//Open menu here
}
if(ButtonPressed(0, Buttonz.Cross))
{
//select
}

The following user thanked Black Panther for this useful post:

Notorious
02-23-2014, 09:03 PM #14
Notorious
Caprisuns Is Back
Originally posted by AlmightySo View Post
    
if(ButtonPressed(0, Buttonz.DpadUp))
{
//Open menu here
}
if(ButtonPressed(0, Buttonz.Cross))
{
//select
}


wow thanks man!
02-24-2014, 01:08 AM #15
Originally posted by Prime
wow thanks man!


Np 10 chars
02-24-2014, 02:21 PM #16
Originally posted by AlmightySo View Post
What... That doesn't even matter. This works perfectly...


Thats probably because all your monitoring is DPAD try to monitor like X or something after you hit actionslot1
02-24-2014, 05:31 PM #17
Originally posted by xFatalCoder View Post
Thats probably because all your monitoring is DPAD try to monitor like X or something after you hit actionslot1


Kid it works... Idk why you're complaining
08-10-2014, 12:53 AM #18
not working for me :C
08-14-2014, 03:55 PM #19
MegaMister
Former Mega Staff
Originally posted by BlackPanther View Post
I don't know if people even make menus for this game anymore, but if you wanted to, I suggest using this button monitoring if you wanted it to be like a 1.11 menu because you can monitor dpads using this! It's pretty cool I guess. To use this you will need PS3Lib v4 from Imcsx.

Script

    
public class Buttonz
{
public static string
DpadUp = "+actionslot 1",
DpadDown = "+actionslot 2",
DpadRight = "+actionslot 4",
DpadLeft = "+actionslot 3",
Cross = "+gostand",
Circle = "+stance",
Triangle = "weapnext",
Square = "+usereload",
R3 = "+melee",
R2 = "+frag",
R1 = "+attack",
L3 = "+breath_sprint",
L2 = "+smoke",
L1 = "+speed_throw",
Select = "togglescores",
Start = "togglemenu";
}
public bool ButtonPressed(int client, string Button)
{
if (PS3.Extension.ReadString(0x34750E9F + ((uint)client * 0x97F80)) == Button)
return true;
else return false;
}


And if you don't know how to use it, just put it in a timer or background worker like this

    
if (ButtonPressed(7, Buttonz.Cross))
MessageBox.Show("Client 7 is pressing Cross");
else if (ButtonPressed(0, Buttonz.DpadRight))
MessageBox.Show("Client 0 is pressing dpad right");


I will update this thread with the offline version in a bit...

Credits to SC58 for the dword for client_s on mw2 Smile


This is my function, online/offline! If you want, u can use this! :p
    
public static class Buttons
{
public static class Buttonz
{
public static string
DpadUp = "+actionslot 1",
DpadDown = "+actionslot 2",
DpadRight = "+actionslot 4",
DpadLeft = "+actionslot 3",
Cross = "+gostand",
Circle = "+stance",
Triangle = "weapnext",
Square = "+usereload",
R3 = "+melee",
R2 = "+frag",
R1 = "+attack",
L3 = "+breath_sprint",
L2 = "+smoke",
L1 = "+speed_throw",
Select = "togglescores",
Start = "togglemenu";
}
public static bool ButtonPressed(int client, string Button)
{
if (PS3.Extension.ReadString(0x34750E9F + ((uint)client * 0x97F80)) == Button) return true;
else if (PS3.Extension.ReadString(0x34760e9f + ((uint)client * 0x97F80)) == Button) return true;
else return false;
}
}

Copyright © 2025, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo