Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online
You last visited: Today at 15:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Status Bar Vb . net

Discussion on Status Bar Vb . net within the Silkroad Online forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 236
Received Thanks: 17
Status Bar Vb . net

Module :

Private Declare Function OpenProcess Lib "kernel32" Alias "OpenProcess" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
Private Declare Function WriteProcessMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
Private Declare Function WriteFloatMemory Lib "kernel32" Alias "WriteProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Single, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
Private Declare Function ReadFloat Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As IntPtr, ByVal lpBaseAddress As IntPtr, ByRef buffer As Single, ByVal size As Int32, ByRef lpNumberOfBytesRead As Int32) As Boolean
Private Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandle" (ByVal hObject As Integer) As Integer
Public Declare Function GetAsyncKeyState Lib "user32" Alias "GetAsyncKeyState" (ByVal vKey As Long) As Integer

Public RBuff1 As Long
Public RBuff2 As Single
Public RBuff3 As Integer

'WriteMemory
Public Function WriteMemory(ByVal Address As Integer, ByVal Value As Long, ByVal Bytes As Integer)
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
WriteProcessMemory(processHandle, Address, Value, Bytes, Nothing)
CloseHandle(processHandle)
End Function

'ReadFloat
Public Function ReadFloat(ByVal Address As Single)
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
ReadProcessMemory(processHandle, Address, RBuff1, 4, Nothing)
CloseHandle(processHandle)
Return RBuff1
End Function

'WriteFloat
Public Function WriteFloat(ByVal Address As Integer, ByVal Value As Single)
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
WriteFloatMemory(processHandle, Address, Value, 4, Nothing)
CloseHandle(processHandle)
End Function

'ReadLong
Public Function ReadLong(ByVal Address As Integer)
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
ReadProcessMemory(processHandle, Address, RBuff1, 4, Nothing)
CloseHandle(processHandle)
Return RBuff1
End Function

'ReadFloatPointer
Public Function ReadFloatPointer(ByVal Base As Integer, ByVal Offset As Short)
Dim fullAddress As Long
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
ReadProcessMemory(processHandle, Base, RBuff1, 4, Nothing)
fullAddress = RBuff1 + Offset
ReadFloat(processHandle, fullAddress, RBuff2, 4, Nothing)
Return RBuff2
CloseHandle(processHandle)
End Function

'ReadLongPointer
Public Function ReadLongPointer(ByVal Base As Integer, ByVal Offset As Short, ByVal Bytes As Integer) 'ReadLongPointer
Dim fullAddress As Long
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
ReadProcessMemory(processHandle, Base, RBuff1, 4, Nothing)
fullAddress = RBuff1 + Offset
ReadProcessMemory(processHandle, fullAddress, RBuff3, Bytes, Nothing)
Return RBuff3
CloseHandle(processHandle)
End Function

'WriteFloatPointer
Public Function WriteFloatPointer(ByVal Base As Integer, ByVal Offset As Short, ByVal Value As Single)
Dim fullAddress As Long
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
ReadProcessMemory(processHandle, Base, RBuff1, 4, Nothing)
fullAddress = RBuff1 + Offset
WriteFloatMemory(processHandle, fullAddress, Value, 4, Nothing)
CloseHandle(processHandle)
End Function

'WriteLongPointer
Public Function WriteLongPointer(ByVal Base As Integer, ByVal Offset As Short, ByVal Value As Long, ByVal Bytes As Integer)
Dim fullAddress As Long
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
ReadProcessMemory(processHandle, Base, RBuff1, 4, Nothing)
fullAddress = RBuff1 + Offset
WriteProcessMemory(processHandle, fullAddress, Value, Bytes, Nothing)
CloseHandle(processHandle)
End Function

'NOP
Public Function NOP(ByVal Address As Integer, ByVal value As Integer)
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
WriteProcessMemory(processHandle, Address, value, 1, Nothing)
CloseHandle(processHandle)
End Function


Public Function ReadNOP(ByVal Address As Integer)
Dim Sro_clientLookUp As Process() = Process.GetProcessesByName("Sro_client")
If Sro_clientLookUp.Length = 0 Then
End
End If
Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, Sro_clientLookUp(0).Id)
ReadProcessMemory(processHandle, Address, RBuff1, 1, Nothing)
CloseHandle(processHandle)
Return RBuff1
End Function



'WriteASM
Public Function WriteASM(ByVal Address As Long, ByVal ASM As String)
Dim i As Integer
Dim i2 As Integer

i2 = 1
While i < (Len(ASM) / 2)
Call NOP(Address + i, Val("&H" & Mid$(ASM, i2, 2)))
i = i + 1
i2 = i2 + 2
End While
End Function

Code in button :

ReadLongPointer (&Haddie, &Hoffset, label1.text)

But when i debug the program (start it) and press the button i get a framework error :S
daniellook is offline  
Old 03/09/2009, 16:47   #2
 
elite*gold: 0
Join Date: Nov 2007
Posts: 236
Received Thanks: 17
Bumperdiebumpbump...
daniellook is offline  
Reply


Similar Threads Similar Threads
Status.Php
01/30/2010 - Metin2 Private Server - 0 Replies
Hi ich habe ein mehr oder weniger großes Problem was ich alleine nicht gelöst bekomme. Ich habe mir eine HP gemacht mit dem Admin script hier aus dem forum. Jetzt ist aber so wenn ich alles gemacht habe, das ich keine status.php bekomme. Jetzt sind auf der HP so hässliche fehlermeldungen. Wenn ihr mir vlt eine Status.php machen könntet oder mir sagen könnt wie das geht bin ich euch sehr dankbar. Ps: BIn mir nicht sicher ob man hamachi IP posten darf, falss ja lasst es mich wissen dann...
Gm Status 999
10/06/2009 - Metin2 Private Server - 6 Replies
wie kann man den status str vit usw. auf 999 setzen? In der suchfunktion nix gefunden..
[Server Status] Server Status Programs From A Couple Servers.
11/05/2008 - Conquer Online 2 - 9 Replies
Hey i dont know in what section to post it so i hope that the mods will move it to the good section but i made this server status program i will make later more server status programs for other servers. PhoenixCo: Server Checker Qonquer Qonquer Server Checker Screenshot: http://i286.photobucket.com/albums/ll115/aschwinh /sdfsdfsdf.jpg



All times are GMT +2. The time now is 15:02.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.