C# Redirect IP and Search Memory Adresses?

07/20/2011 21:58 bootdisk#16
"Read" is defined?
could you post the errors?
07/21/2011 13:35 vitalka#17
it shows me german error, but something with read
07/21/2011 17:01 bootdisk#18
perhaps you're missing 'Read' definition... at that url there is just an small snippet.
Did that guy release a library or something like that?

*although I'm not german, if you post it here someone will translate it.
07/21/2011 21:28 vitalka#19
I had send a email his answer was:

The Read<byte[]> is just a managed wrapper for ReadProcessMemory
07/22/2011 10:02 lesderid#20
Quote:
Originally Posted by vitalka View Post
I had send a email his answer was:

The Read<byte[]> is just a managed wrapper for ReadProcessMemory
So recreate it with P/Invoke?
07/22/2011 15:37 vitalka#21
really!! i dont know ;/
07/29/2011 22:57 sarkoplata#22
To Oriya and benco...
I start the sro_client with the code at first page , posted by oriya.
I want to change the title of sro_client and i use
Code:
SetWindowText(p.MainWindowHandle , "example" )
But sometimes it work , sometimes it doesnt , really there is no point , just random.
Anything to solve this?
07/29/2011 23:46 benco#23
wait until window is not showed with Thread.Sleep(x) before to call SetWindowText
exemple : Thread.Sleep(1000);
07/30/2011 00:11 sarkoplata#24
Quote:
Originally Posted by benco View Post
wait until window is not showed with Thread.Sleep(x) before to call SetWindowText
exemple : Thread.Sleep(1000);
I already do it after i login to game. I added it to a button..
07/30/2011 00:59 benco#25
i have tested and it works great, tryt this code :
<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, "b3nc0") Then
Debug.Print("ok")
End If
End Sub
07/30/2011 01:11 sarkoplata#26
Quote:
Originally Posted by benco View Post
i have tested and it works great, tryt this code :
<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, "b3nc0") Then
Debug.Print("ok")
End If
End Sub
Well , it should already work because you search for sro_clients and select the first one. I want to change the name of the client which has started from my tool.But , i will try yours setwindowtext func. :)
07/30/2011 01:15 benco#27
Quote:
Originally Posted by sarkoplata View Post
Well , it should already work because you search for sro_clients and select the first one. I want to change the name of the client which has started from my tool.But , i will try yours setwindowtext func. :)
yes I use search but you can use your p.MainWindowHandle.
07/30/2011 01:26 sarkoplata#28
Quote:
Originally Posted by benco View Post
yes I use search but you can use your p.MainWindowHandle.
The strange thing is , it sometimes work sometimes doesnt. I check p.Mainwindowhandle , even though it's not 0 , sometimes it doesnt work.
And i worry about the gameguard because when i hit start gg + sro_client opens in the same time so it may take the handle of gg?
07/30/2011 01:37 benco#29
i have tested on CSRO, maybe GG deny access to setwindowtext
07/30/2011 01:46 sarkoplata#30
Quote:
Originally Posted by benco View Post
i have tested on CSRO, maybe GG deny access to setwindowtext
I disable GG