Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


WHAT AM I DOING WRONG?!

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
. . ,
Master Cheater
Reputation: 3

Joined: 05 Nov 2009
Posts: 337

PostPosted: Sun Jan 24, 2010 12:04 pm    Post subject: WHAT AM I DOING WRONG?! Reply with quote

I found a useful page and put it on my wow hack. Only problem is, "Of" is blue, So I couldnt type in World OF Warcraft
Heres what I have

Forms = 1
Buttons = 2
Module = 1
Timers = 1

I REPLACED THE HEX I WANTED TO CHANGE WITH CODE IN THIS TOPIC!

ONES MARKED IN RED ARE ERRORS

Ignore the labels their just advertisers.

Form1.vb

Public Class Form1

Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
Process.Start("www.youtube.com/megaforce300")
End Sub

Private Sub LinkLabel2_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel2.LinkClicked
Process.Start("www.google.co.uk")
End Sub

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Process.Start("www.youtube.com/megaforce300")
If RadioButton2.Checked Then
RadioButton1.Checked = False
End If
If RadioButton1.Checked Then
RadioButton2.Checked = False
End If
End Sub

Private Sub LinkLabel3_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel3.LinkClicked
Process.Start("http://forum.cheatengine.org/viewtopic.php?p=4661424#4661424")
End Sub

Private Sub RadioButton2_CheckedChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadioButton2.CheckedChanged
If RadioButton2.Checked Then
RadioButton1.Checked = False
End If
End Sub

Private Sub TabPage2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabPage2.Click
MsgBox("NOTICE: Megaforce300 IS NOT RESPONSIBLE FOR ANY BANNINGS OR SUSPENSIONS. IT IS ENTIRELY YOUR CHOICE TO USE HACKS.")
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Timer1.Enabled = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)

End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
Writememory(&H972F88, 0, 4)
End Sub
End Class

Module1.vb


Module Module1
Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
Private Declare Function WriteProcessMemory Lib "kernel32" (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" (ByVal hObject As Integer) As Integer
Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer
Public RBuff As Long
Public RBuff2 As Single
Public RBuff3 As Integer

Public Function Writememory(ByVal Address As Integer, ByVal Value As Long, ByVal Bytes As Integer)

Dim World Of WarcraftLookUp As Process() = Process.GetProcessesByName("World Of Warcraft")

If World Of WarcraftLookUp.Length = 0 Then

End

End If

Dim processHandle As IntPtr = OpenProcess(&H1F0FFF, 0, World Of WarcraftLookUp(0).Id)

WriteProcessMemory(processHandle, Address, Value, Bytes, Nothing)

CloseHandle(processHandle)

End Function


Last edited by . . , on Sun Jan 24, 2010 12:09 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zurkei
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Nov 2007
Posts: 1132
Location: Makakilo, Hawaii

PostPosted: Sun Jan 24, 2010 12:07 pm    Post subject: Reply with quote

Try it as wow.exe since that is it's name.
Back to top
View user's profile Send private message MSN Messenger
. . ,
Master Cheater
Reputation: 3

Joined: 05 Nov 2009
Posts: 337

PostPosted: Sun Jan 24, 2010 12:12 pm    Post subject: Reply with quote

The Mormon wrote:
Try it as wow.exe since that is it's name.


It shows as "World Of Warcraft" on task manager and its window name,

But I'll try your idea shall I change World Of Warcraft to wow.exe as

"WoW.exe"
(WoW.exe)
("WoW.exe")

Or leave it so it shows like

Dim WoW.exe LookUp As Process() = Process.GetProcessesByName("World Of Warcraft")
Back to top
View user's profile Send private message
Zurkei
Grandmaster Cheater Supreme
Reputation: 0

Joined: 15 Nov 2007
Posts: 1132
Location: Makakilo, Hawaii

PostPosted: Sun Jan 24, 2010 12:13 pm    Post subject: Reply with quote

Will have your answer in a second.

EDIT: helping via msn


Last edited by Zurkei on Sun Jan 24, 2010 12:22 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
. . ,
Master Cheater
Reputation: 3

Joined: 05 Nov 2009
Posts: 337

PostPosted: Sun Jan 24, 2010 12:16 pm    Post subject: Reply with quote

The Mormon wrote:
Will have your answer in a second.


Ok thanks, I was doing what everyone was telling me, "Google It", But still all I find is topics asking the qeustion I am. I'll PM you useful information including the hex code.
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Jan 24, 2010 2:45 pm    Post subject: Reply with quote

GetProcessesByName method, first hit: http://msdn.microsoft.com/en-us/library/z3w4xdc9.aspx

Quote:
Use this method to create an array of new Process components and associate them with all the process resources that are running the same executable file on the local computer. The process resources must already exist on the computer, because GetProcessesByName does not create system resources but rather associates them with application-generated Process components. A processName can be specified for an executable file that is not currently running on the local computer, so the array the method returns can be empty.

The process name is a friendly name for the process, such as Outlook, that does not include the .exe extension or the path. GetProcessesByName is helpful for getting and manipulating all the processes that are associated with the same executable file. For example, you can pass an executable file name as the processName parameter, in order to shut down all the running instances of that executable file.

Although a process Id is unique to a single process resource on the system, multiple processes on the local computer can be running the application specified by the processName parameter. Therefore, GetProcessById returns one process at most, but GetProcessesByName returns an array containing all the associated processes. If you need to manipulate the process using standard API calls, you can query each of these processes in turn for its identifier. You cannot access process resources through the process name alone but, once you have retrieved an array of Process components that have been associated with the process resources, you can start, terminate, and otherwise manipulate the system resources.



Just use the process name, not the window name.



and it's highlighted because that's a syntax error, don't use spaces in whatever it is you're declaring.

Code:
Dim p As Process() = Process.GetProcessesByName("Wow")


did you not read the error it gave you or what?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites