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-05-2014, 12:28 AM #2
jagex
Gym leader
lol you don't need those try catches
12-05-2014, 12:29 AM #3
XxBlud23xX
< ^ > < ^ >
I know but i have so i can put a exception in
12-05-2014, 12:30 AM #4
XxBlud23xX
< ^ > < ^ >
Heres the link to the dlls: You must login or register to view this content.
12-05-2014, 03:59 AM #5
jagex
Gym leader
Then whats the point of the else statement. Plus your not even doing anything with the catch lol

You're just slowing your program down for no reason 0.0
12-05-2014, 08:51 AM #6
One
At least I can fight
you didnt even say you had to define PS3, and maybe explain how to code a function so someone could actually use this rather than copy and pasting a poorly coded connect and attach button.

The following user thanked One for this useful post:

XxBlud23xX
12-06-2014, 06:59 PM #7
XxBlud23xX
< ^ > < ^ >
Originally posted by Astek View Post
you didnt even say you had to define PS3, and maybe explain how to code a function so someone could actually use this rather than copy and pasting a poorly coded connect and attach button.


Yeah after i put that in i realized i put it in wrong, well for the exception i put connection failed.
12-06-2014, 07:21 PM #8
One
At least I can fight
Originally posted by DEXBLUD23 View Post
Yeah after i put that in i realized i put it in wrong, well for the exception i put connection failed.

not wrong just inefficient, this does the same in alot less code

    
try
{
PS3.ConnectTarget(); PS3.AttachProcess();
}
catch
{
MessageBox.Show("failed");
}
12-06-2014, 08:26 PM #9
XxBlud23xX
< ^ > < ^ >
Originally posted by Astek View Post
not wrong just inefficient, this does the same in alot less code

    
try
{
PS3.ConnectTarget(); PS3.AttachProcess();
}
catch
{
MessageBox.Show("failed");
}


I understand but thats how i do it, i try to do things different so i dont look like a complete noob or someone who steals codes.
12-06-2014, 10:35 PM #10
jagex
Gym leader
Originally posted by DEXBLUD23 View Post
I understand but thats how i do it, i try to do things different so i dont look like a complete noob or someone who steals codes.


The thing you did to look different makes you look like a complete noob lol.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo