Résolu Problème codage TOOL C#

Statut
N'est pas ouverte pour d'autres réponses.

leroi du ode

Membre
Inscription
3 Janvier 2014
Messages
18
Réactions
1
Points
46
RGCoins
25
Pourquoi ma connexion ne marche pas !

Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using PS3Lib;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        private PS3API PS3 = new PS3API();
        private Random rand = new Random();
        public static uint ProcessID;
        public static uint[] processIDs;
        public static string snresult;
        public static string usage;
        public static string Info;
        public static PS3TMAPI.ConnectStatus connectStatus;
        public static string Status;
        public static string MemStatus;
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (PS3.ConnectTarget())
            {
                string Message = "Tu es connecter à la PS3 : " + PS3.GetCurrentAPIName();
                MessageBox.Show(Message, "COnnecté", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (PS3.AttachProcess())
            {
                MessageBox.Show("Attaché", "Sucess", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
            }
        }
    }
}


Ils me mette sa quand je clique sur connect :
 
tien essaye ça :ok:



private void button1_Click(object sender, EventArgs e)
{
if (PS3.ConnectTarget())
{

string Message = "Tu es connecté à la PS3 : " + PS3.GetCurrentAPIName();
MessageBox.Show(Message, "Connecté!", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
else
{

string Message = "Connection erreur !";
MessageBox.Show(Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
}

private void button2_Click(object sender, EventArgs e)
{
if (PS3.AttachProcess())
{

MessageBox.Show("Attaché.", "Bravo.", MessageBoxButtons.OK, MessageBoxIcon.Asterisk);
}
else
{
MessageBox.Show("Aucun process!", "Error.", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
{


edit: oublie pas les 2 RadioButton pour sélectionné CCAPI ou TMAPI
 
Voila pour tout se qui et connection ,

Public Class Form1
Private DEX As New PS3API(SelectAPI.TargetManager)
Private processIDs As UInteger()
Private ProcessID As UInteger
Dim Mw1X As Boolean

Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load

End Sub

Private Sub ConectionToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles ConectionToolStripMenuItem.Click
Try
DEX.ConnectTarget()
DEX.CCAPI.Notify(CCAPI.NotifyIcon.FINGER, "PS3 Connecter Mec !")
Catch Ex As Exception
MsgBox("Nous n'avons pas pu connecté la PS3 ! ", MsgBoxStyle.Critical)
End Try
End Sub

Private Sub AttachezToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles AttachezToolStripMenuItem.Click
Try
DEX.AttachProcess()
DEX.CCAPI.Notify(CCAPI.NotifyIcon.FINGER, "Tool Attached Mec !")
Catch Ex As Exception
MsgBox("Nous n'avons pas pu Attache le Process le jeu", MsgBoxStyle.Critical)
End Try
End Sub

Private Sub DeconectionToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles DeconectionToolStripMenuItem.Click
PS3TMAPI.Disconnect(0) 'Déconnecte la PS3
PS3TMAPI.ProcessStop(0, ProcessID) 'Arrête le processus
MsgBox("PS3 Disconnected", MsgBoxStyle.Information)
End Sub


Traduit le en C# sur se site , si non le codage de Mohaaa ma l'aire fonctionel tu peu aussi l'utiliser , mais precisse mieu ou et ton probleme si tu veu des meilleur reponce
 
Statut
N'est pas ouverte pour d'autres réponses.
Retour
Haut