C# Redirect IP and Search Memory Adresses?

07/30/2011 09:57 lesderid#31
How do you get your window handle?
07/30/2011 10:19 benco#32
it's weird, I will try it with isro
07/30/2011 12:04 sarkoplata#33
Quote:
Originally Posted by lesderid View Post
How do you get your window handle?
p.MainWindowHandle
07/30/2011 13:04 benco#34
i have tested and it works great with GG look :
[Only registered and activated users can see links. Click Here To Register...]
07/30/2011 13:07 sarkoplata#35
Quote:
Originally Posted by benco View Post
i have tested and it works great with GG look :
[Only registered and activated users can see links. Click Here To Register...]
Can i see your code to start client if its not problem ?
07/30/2011 13:24 benco#36
the code is same to up :
<DllImport("user32.dll")> _
Public Function SetWindowText(ByVal hdl As IntPtr, ByVal title As String) As Boolean

End Function

Sub Main()
Dim prc As Process = Process.GetProcessesByName("sro_client")(0)
If SetWindowText(prc.MainWindowHandle, "Tati") Then
Debug.Print("ok")
End If
End Sub

post your code please
07/30/2011 13:28 sarkoplata#37
Code:
Private Sub btn_StartClient_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_StartClient.Click
        Proxy.Str.Start()

        Thread.Sleep(10)
        Connected = True
        Dim Path As String = "E:\EliteSilkRoad[GameGuardNopped]\sro_client.exe"
        Dim Mutex1 As New Mutex(False, "Silkroad Online Launcher")
        Mutex1.WaitOne()
        Dim Mutex2 As New Mutex(False, "Ready")
        Mutex2.WaitOne()
        Me.p.StartInfo.FileName = Path
        Me.p.StartInfo.Arguments = " 0 /38 0 0"
        Me.p.Start()


        While Me.p.MainWindowHandle = IntPtr.Zero
            Application.DoEvents()
        End While

        Mutex1.Close()
        Mutex1.Dispose()
        Mutex2.Close()
        Mutex2.Dispose()

    End Sub
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        SetWindowText(Me.p.MainWindowHandle, "TESTSTRING")
    End Sub
I press button2 after i login to game.
Btw searching and choosing the (0)th one of sro_client's doesnt help me . Because my tool is based on multi-client.
07/30/2011 14:03 benco#38
Quote:
Originally Posted by sarkoplata View Post
Code:
Private Sub btn_StartClient_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_StartClient.Click
        Proxy.Str.Start()

        Thread.Sleep(10)
        Connected = True
        Dim Path As String = "E:\EliteSilkRoad[GameGuardNopped]\sro_client.exe"
        Dim Mutex1 As New Mutex(False, "Silkroad Online Launcher")
        Mutex1.WaitOne()
        Dim Mutex2 As New Mutex(False, "Ready")
        Mutex2.WaitOne()
        Me.p.StartInfo.FileName = Path
        Me.p.StartInfo.Arguments = " 0 /38 0 0"
        Me.p.Start()


        While Me.p.MainWindowHandle = IntPtr.Zero
            Application.DoEvents()
        End While

        Mutex1.Close()
        Mutex1.Dispose()
        Mutex2.Close()
        Mutex2.Dispose()

    End Sub
Code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        SetWindowText(Me.p.MainWindowHandle, "TESTSTRING")
    End Sub
I press button2 after i login to game.
Btw searching and choosing the (0)th one of sro_client's doesnt help me . Because my tool is based on multi-client.
try this :
PHP Code:
Imports System.Diagnostics
Imports System
.Runtime.InteropServices
Imports System
.Threading


Public Class Form1
    
<DllImport("user32.dll")> _
    
Public Shared Function SetWindowText(ByVal hdl As IntPtrByVal title As String) As Boolean
    End 
Function

    Private 
As Process
    
Private Const pathSro As String "E:\Games\ISilkroad\sro_client.exe"

    
Public Sub New()
        
InitializeComponent()
    
End Sub

    
Private Sub Form1_Load(ByVal sender As System.ObjectByVal e As System.EventArgsHandles MyBase.Load

    End Sub

    
Private Sub _StartSro_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles _StartSro.Click
        Dim Mutex1 
As New Mutex(False"Silkroad Online Launcher")
        
Dim Mutex2 As New Mutex(False"Ready")

        
Process.Start(pathSro"/18 0 0")
        While 
p.MainWindowHandle IntPtr.Zero

        End 
While

        
Mutex1.Close()
        
Mutex2.Close()
    
End Sub

    
Private Sub _SetWindowText_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles _SetWindowText.Click
        SetWindowText
(p.MainWindowHandle"xdfff")
    
End Sub
End 
Class 
It works great for me, I don't have problems
07/30/2011 14:45 sarkoplata#39
@benco
Even though i message box the mainwindowhandle and the value isn't 0 , window text is same. I think mainwindowhandle is WRONG but how.
07/30/2011 14:57 benco#40
did you test with my code ? If not, try it. MainWindowHandle should be different 0.

did u start your application as admin ? test with admin
07/30/2011 15:12 sarkoplata#41
Quote:
Originally Posted by benco View Post
did you test with my code ? If not, try it. MainWindowHandle should be different 0.

did u start your application as admin ? test with admin
I tried your and it didnt work as i said.
Ok , i will try as admin and edit my post about did it work or not , ( but i think it wont work . When you start sro with code , gameguard and sro_client are executed together. I think when I hit start client gameguard handle is taken.)
07/30/2011 15:16 benco#42
when did you click button2 ?
07/30/2011 15:30 sarkoplata#43
Quote:
Originally Posted by benco View Post
when did you click button2 ?
after i spawn ingame.
07/30/2011 16:02 benco#44
i don't know what's the problem. It works with my sro & GG enabled. did you solved problem ?
08/06/2015 18:02 avivper#45
its gives me C8 error , i managed to lucnh but not log in