Post: How to code a rtm tool c#
12-05-2014, 12:20 AM #1
XxBlud23xX
< ^ > < ^ >
(adsbygoogle = window.adsbygoogle || []).push({}); Hello NGU, i have decided to help with rtm since im not so popular on here yet. So to start you need
1.Microsoft Visual 2010 or better
2.Create a project using C#
3.Name it and click begin

Now that you done that you need some basic .dll files ill post a link to download them below. You should get:
1.CCAPI.dll
2.ps3lib.dll
3.ps3tmapi_net.dll
And metroframework.dll
None of these expire so you dont need to rush.

Now once you got those double click form 1, a new page should pop up called form1.cs. At the top you will see a list of using, go to the bottom and type:
1.using ps3lib;
2.using metroframework;
And thats it unless you have different ones or extra.

Now below that youll see:
public partial class Form1 : Form

Erase the form and put metroframework.forms.metroform

It should look like this:
public partial class Form1 : Metroframework.Forms.Metroform
And go back to your design.

Now you have a decent looking form, but you need the controls for it so now:
Go to toolbox
Right click hit add new tab
Name it metroframework or whatever you want.
Then right click in it and click add items and find the metroframework.dll and put it in.

Now you have your controls Smile
Add two metro buttons
And two metro radiobuttons

Once you designed it to your liking, heres the codes just double click on the thing your coding.

Heres the codes.

Metrobutton 1 (name it connect):
try
{
If (PS3.ConnectTarget())
{
MessageBox.Show(connected!, "success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);

}
else
{

string message = "Cant Connect";
MessageBox.Show(Message, "Error..."' MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
catch (exception)
{


}

Metrobutton 2(name it attach):
try
{

if (PS3.AttachProcess())
{
string message = " Attached, Enjoy! : " + PS3.GetCurrentAPIName();

MessageBox.Show(Message, " success!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}

else
{

string Message = "Failed, get in a game!;

MessageBox.Show(Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);

}

}
catch (exception)
{

}
}


Metroradiobutton1 (name ccapi):

PS3.ChangeAPI(SelectAPI.ControlConsole);

Metroradiobutton 2 ( name tmapi)

PS3.ChangeAPI(SelectAPI.TargetManager):

There you go but one more thing that alot of people forget, get the ccapi.dl and copy it:
1.go to my documents.
2.find the visual studio you are using
3.click projects, find yours click it, then click the first folder
Then click bin, debug, and paste the ccapi.dll there.

Thanks i hope you enjoyed this i love to help, and here is some bonus for reading my form.

Button 3(disconnect)
Code:
PS3.DisconnectTarget();

Button4(ps3 off)
Code:
PS3TMAPI.Poweroff(0, PowerOn);
PS3.CCAPI.Shutdown(0);

Button 5 (ps3 on tmapi only)
Code:
PS3TMAPI.PowerOn(0);

Hope you enjoyed, i tried to make it as simple as possible. If you need help comment below. :-)
(adsbygoogle = window.adsbygoogle || []).push({});
12-06-2014, 11:50 PM #11
RTE
Former Staff
Originally posted by DEXBLUD23 View Post
Hello NGU, i have decided to help with rtm since im not so popular on here yet. So to start you need
1.Microsoft Visual 2010 or better
2.Create a project using C#
3.Name it and click begin

Now that you done that you need some basic .dll files ill post a link to download them below. You should get:
1.CCAPI.dll
2.ps3lib.dll
3.ps3tmapi_net.dll
And metroframework.dll
None of these expire so you dont need to rush.

Now once you got those double click form 1, a new page should pop up called form1.cs. At the top you will see a list of using, go to the bottom and type:
1.using ps3lib;
2.using metroframework;
And thats it unless you have different ones or extra.

Now below that youll see:
public partial class Form1 : Form

Erase the form and put metroframework.forms.metroform

It should look like this:
public partial class Form1 : Metroframework.Forms.Metroform
And go back to your design.

Now you have a decent looking form, but you need the controls for it so now:
Go to toolbox
Right click hit add new tab
Name it metroframework or whatever you want.
Then right click in it and click add items and find the metroframework.dll and put it in.

Now you have your controls Smile
Add two metro buttons
And two metro radiobuttons

Once you designed it to your liking, heres the codes just double click on the thing your coding.

Heres the codes.

Metrobutton 1 (name it connect):
try
{
If (PS3.ConnectTarget())
{
MessageBox.Show(connected!, "success", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);

}
else
{

string message = "Cant Connect";
MessageBox.Show(Message, "Error..."' MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}
catch (exception)
{


}

Metrobutton 2(name it attach):
try
{

if (PS3.AttachProcess())
{
string message = " Attached, Enjoy! : " + PS3.GetCurrentAPIName();

MessageBox.Show(Message, " success!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}

else
{

string Message = "Failed, get in a game!;

MessageBox.Show(Message, "Error...", MessageBoxButtons.OK, MessageBoxIcon.Error);

}

}
catch (exception)
{

}
}


Metroradiobutton1 (name ccapi):

PS3.ChangeAPI(SelectAPI.ControlConsole);

Metroradiobutton 2 ( name tmapi)

PS3.ChangeAPI(SelectAPI.TargetManager):

There you go but one more thing that alot of people forget, get the ccapi.dl and copy it:
1.go to my documents.
2.find the visual studio you are using
3.click projects, find yours click it, then click the first folder
Then click bin, debug, and paste the ccapi.dll there.

Thanks i hope you enjoyed this i love to help, and here is some bonus for reading my form.

Button 3(disconnect)
Code:
PS3.DisconnectTarget();

Button4(ps3 off)
Code:
PS3TMAPI.Poweroff(0, PowerOn);
PS3.CCAPI.Shutdown(0);

Button 5 (ps3 on tmapi only)
Code:
PS3TMAPI.PowerOn(0);

Hope you enjoyed, i tried to make it as simple as possible. If you need help comment below. :-)


You should clean up your thread, it looks bit messy :p

The following user thanked RTE for this useful post:

XxBlud23xX
12-07-2014, 01:10 AM #12
XxBlud23xX
< ^ > < ^ >
Originally posted by ResistTheEarth View Post
You should clean up your thread, it looks bit messy :p


Yeah i know, i used my phone and it didnt turn out the way i wanted :(

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo