PS3API myPS3API = new PS3API();
YourAPIName.ChangeAPI(SelectAPI.ControlConsole); // for CCAPI
YourAPIName.ChangeAPI(SelectAPI.TargetManager); // for TMAPI.
Note: Using an if/else statement is one of the (if not the best) ways of checking if the user has connected, you could use other methods if you want.
if (YourAPIName.ConnectTarget(0)) //[B]You can change the 0 and have it get text from a textbox, or a preset string, such as "192.168.0.1 (Preset String)", YourTextBox.Text (One a user can input).[/B]
{
[B]// If user does connect to the PS3 selected.[/B]
MessageBox.Show("Input Message-box Message here", "Input Message-box Title here");
}
else
{
[B]// If the user does not connect to the PS3, by closing out of the selection window, inputting a bad IP address or whatever else.[/B]
MessageBox.Show("Input Message-box Message here", "Input Message-box Title here");
}
}
if (YourAPIName.AttachProcess())
{
[B]// If the user connects to whatever game process is running.[/B]
MessageBox.Show("Input Message-box Message here", "Input Message-box Title here");
}
else
{
[B]// If the user does not connect to anything.[/B]
MessageBox.Show("Input Message-box Message here", "Input Message-box Title here");
}
}
We are going to use an if/else statement for this Modification so we can enable or disable it.
if (YourCheckboxName.Checked) [B]//If your Check-box is clicked 'checked' do the following[/B]
{
Byte[] advanceduavon = new Byte[] { 02 };
YourAPIName.SetMemory(0x5F067, advanceduavon);
}
else [B]// If Check-box was unchecked then do the following[/B]
{
Byte[] advanceduavoff = new Byte[] { 0x01 };
YourAPIName.SetMemory(0x5F067, advanceduavoff); //0x5F067 is an offset, there is a thread below with more offsets.
}
}
if (button1.Text == "Hello") [B]// If the buttons text name equals hello[/B].
{
button1.Text = "World!"; [B]// then change the text name to world.[/B]
}
else [B]// If button text does not equal 'Hello'[/B]
{
button1.Text = "Bye!"; [B]// Changes the text to Bye![/B]
}
}
Copyright © 2025, NextGenUpdate.
All Rights Reserved.