Post: [C++]Keyboard
10-17-2014, 06:08 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); Hey everyone i wrote a keyboard for in my mod menu and i just decided to post it for anyone who may need it and I have tested it and it works flawlessly , Accept its host only like all other mw2 keyboards so here you go enjoy

You will need TOC for this also so here it is:
    
#define TOC 0x00724C38


You will also need Sharks PS3Functions Class:

    
namespace PS3
{
float floatArray[100];
float* ReadFloat(int address, int length)
{
for (int i = 0; i < length; i++)
{
floatArray[i] = *(float*)(address + (i * 0x04));
}
return floatArray;
}
char byteArray[100];
char* ReadBytes(int address, int length)
{
for (int i = 0; i < length; i++)
{
byteArray[i] = *(char*)(address + (i));
}
return byteArray;
}
void WriteFloat(int address, float* input, int length)
{
for (int i = 0; i < length; i++)
{
*(float*)(address + (i * 4)) = input[i];
}
}
void WriteBytes(int address, char* input, int length)
{
for (int i = 0; i < length; i++)
{
*(char*)(address + (i)) = input[i];
}
}
float intArray[100];
float* ReadInt(int address, int length)
{
for (int i = 0; i < length; i++)
{
intArray[i] = *(int*)(address + (i * 0x04));
}
return intArray;
}
void WriteInt(int address, int* input, int length)
{
for (int i = 0; i < length; i++)
{
*(int*)(intArray + (i * 0x04)) = input[i];
}
}
void WriteString(int address, char* string)
{
int FreeMem = 0x1D00000;
int strlength = std::strlen(string);
char* strpointer = *(char**)FreeMem = string;
char* StrBytes = PS3::ReadBytes(*(int*)FreeMem, strlength);
PS3::WriteBytes(address, StrBytes, strlength);
}
char returnRead[100];
char* ReadString(int address)
{
memset(&returnRead[0], 0, sizeof(returnRead));
int strlength = 100;
char* StrBytes = ReadBytes(address, strlength);
for (int i = 0; i < strlength; i++)
{
if (StrBytes[i] != 0x00)
returnRead[i] = StrBytes[i];
else
break;
}
return returnRead;
}
void WriteInt32(int Address, int Input)
{
*(int*)Address = Input;
}
int ReadInt32(int Address)
{
return *(int*)Address;
}
}



And finally the keyboard its self:
    char* Keyboard(char* Title)
{
opd_s swag = { 0x238070, TOC };
void(*Start)(int, char*, char*, int, int) = (void(*)(int, char*, char*, int, int))&swag;
Start(0, Title, "", 40, 0x70B4DCool Man (aka Tustin);
while (*(int*)0x203B4C8 != 0)
{
continue;
}
return PS3::ReadString(0x2510E22);
}


Credits

Shark
Seb5594
Therifboy


If i have missed anyone in the credits then please consider posting below before calling me a f a g g o t or whatever

ENJOY! Enzo
(adsbygoogle = window.adsbygoogle || []).push({});

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

FusionIsDaName, Callumeleyy, Script Kiddie
10-17-2014, 10:31 AM #2
thanks for sharing!
10-17-2014, 12:50 PM #3
Originally posted by xTennox View Post
thanks for sharing!


No problem Smile
10-17-2014, 05:35 PM #4
Daqe
Pokemon Trainer
Thx Tustin
10-17-2014, 07:56 PM #5
Callumeleyy
Scottish PS3 Modder!
Originally posted by Connerg123 View Post
Hey everyone i wrote a keyboard for in my mod menu and i just decided to post it for anyone who may need it and I have tested it and it works flawlessly , Accept its host only like all other mw2 keyboards so here you go enjoy

You will need TOC for this also so here it is:
    
#define TOC 0x00724C38


You will also need Sharks PS3Functions Class:

    
namespace PS3
{
float floatArray[100];
float* ReadFloat(int address, int length)
{
for (int i = 0; i < length; i++)
{
floatArray[i] = *(float*)(address + (i * 0x04));
}
return floatArray;
}
char byteArray[100];
char* ReadBytes(int address, int length)
{
for (int i = 0; i < length; i++)
{
byteArray[i] = *(char*)(address + (i));
}
return byteArray;
}
void WriteFloat(int address, float* input, int length)
{
for (int i = 0; i < length; i++)
{
*(float*)(address + (i * 4)) = input[i];
}
}
void WriteBytes(int address, char* input, int length)
{
for (int i = 0; i < length; i++)
{
*(char*)(address + (i)) = input[i];
}
}
float intArray[100];
float* ReadInt(int address, int length)
{
for (int i = 0; i < length; i++)
{
intArray[i] = *(int*)(address + (i * 0x04));
}
return intArray;
}
void WriteInt(int address, int* input, int length)
{
for (int i = 0; i < length; i++)
{
*(int*)(intArray + (i * 0x04)) = input[i];
}
}
void WriteString(int address, char* string)
{
int FreeMem = 0x1D00000;
int strlength = std::strlen(string);
char* strpointer = *(char**)FreeMem = string;
char* StrBytes = PS3::ReadBytes(*(int*)FreeMem, strlength);
PS3::WriteBytes(address, StrBytes, strlength);
}
char returnRead[100];
char* ReadString(int address)
{
memset(&returnRead[0], 0, sizeof(returnRead));
int strlength = 100;
char* StrBytes = ReadBytes(address, strlength);
for (int i = 0; i < strlength; i++)
{
if (StrBytes[i] != 0x00)
returnRead[i] = StrBytes[i];
else
break;
}
return returnRead;
}
void WriteInt32(int Address, int Input)
{
*(int*)Address = Input;
}
int ReadInt32(int Address)
{
return *(int*)Address;
}
}



And finally the keyboard its self:
    char* Keyboard(char* Title)
{
opd_s swag = { 0x238070, TOC };
void(*Start)(int, char*, char*, int, int) = (void(*)(int, char*, char*, int, int))&swag;
Start(0, Title, "", 40, 0x70B4DCool Man (aka Tustin);
while (*(int*)0x203B4C8 != 0)
{
continue;
}
return PS3::ReadString(0x2510E22);
}


Credits

Shark
Seb5594
Therifboy


If i have missed anyone in the credits then please consider posting below before calling me a f a g g o t or whatever

ENJOY! Enzo


Nice post mate Enzo stare
10-17-2014, 08:12 PM #6
Originally posted by Daqe View Post
Thx Tustin


No problem man Winky Winky
10-17-2014, 08:22 PM #7
Originally posted by iBRCKsHD View Post
Nice post mate Enzo stare


Thank You very much Callum Enzo

The following user thanked Connerg123 for this useful post:

Callumeleyy
02-11-2015, 04:07 AM #8
ItzMatriix
Are you high?
i want to use this but whenever i add my project wont build. it says something about not having "memset"

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo