| 
			
				|  | Cheat Engine The Official Site of Cheat Engine
 
 
 |  
 
	
		| View previous topic :: View next topic |  
		| Author | Message |  
		| Oxcorp Newbie cheater
 
 ![]() Reputation: 0 
 Joined: 06 Mar 2007
 Posts: 14
 
 
 | 
			
				|  Posted: Wed Mar 14, 2007 12:07 am    Post subject: Making Trainers in Visual Basic 6.0 |   |  
				| 
 |  
				| 6.0 cause I hate 2005. I can make flash hacks buy using the call shockplayer1.setvariable() thing but I want to know how to make other trainers, I forget how to use TMK so if anyone cause teach me how to make a trainer I'd be thankful.
 |  |  
		| Back to top |  |  
		|  |  
		| appalsap Moderator
 
  Reputation: 0 
 Joined: 27 Apr 2006
 Posts: 6753
 Location: Pakistan
 
 | 
			
				|  Posted: Wed Mar 14, 2007 6:10 am    Post subject: |   |  
				| 
 |  
				| learn a real language and it'll be much easier. |  |  
		| Back to top |  |  
		|  |  
		| dLICIOUS Advanced Cheater
 
  Reputation: 0 
 Joined: 14 Mar 2007
 Posts: 83
 
 
 | 
			
				|  Posted: Wed Mar 14, 2007 6:49 am    Post subject: |   |  
				| 
 |  
				| If I were you, I wouldn't start with Visual Basic. Try c/c++ |  |  
		| Back to top |  |  
		|  |  
		| Noz3001 I'm a spammer
 
  Reputation: 26 
 Joined: 29 May 2006
 Posts: 6220
 Location: /dev/null
 
 | 
			
				|  Posted: Wed Mar 14, 2007 9:43 am    Post subject: |   |  
				| 
 |  
				| Yes, learn C. VB IS bad for you. Its like a drug only not fun. |  |  
		| Back to top |  |  
		|  |  
		| Haruhi Suzumiya. Master Cheater
 
  Reputation: 1 
 Joined: 05 Feb 2005
 Posts: 463
 
 
 | 
			
				|  Posted: Wed Mar 14, 2007 3:27 pm    Post subject: |   |  
				| 
 |  
				| visual basic is the best! |  |  
		| Back to top |  |  
		|  |  
		| Drkgodz Flash moderator
 
  Reputation: 2 
 Joined: 17 Jul 2006
 Posts: 2997
 Location: Houston
 
 | 
			
				|  Posted: Wed Mar 14, 2007 3:34 pm    Post subject: |   |  
				| 
 |  
				| Err...this is how you hack in C++. 
  	  | Code: |  	  | #include <iostream>
 #include "Windows.h"
 
 void WriteMem(int Address ,BYTE Value, DWORD Window)
 {
 unsigned long PID;
 HANDLE hProcess;
 HWND hWindow = FindWindow(NULL, Window);
 if (hWindow == NULL)
 {
 MessageBox(hWindow, "The process doesn't seem to be running!", "Error!", MB_ICONERROR);
 }
 else
 {
 CreateRemoteThread(hWindow, NULL, 0, 0, 0, NULL, NULL);
 GetWindowThreadProcessId(hWindow, &PID);
 hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, PID);
 }
 WriteProcessMemory(hProcess, (LPVOID)Address, &Value, sizeof(Value), 0);
 CloseHandle(hProcess);
 }
 
 int main()
 {
 WriteMem(0x01002FF5, 0x90, "Minesweeper");
 cout<<"Done";
 while(0 == 0){
 }
 return 0;
 }
 
 | 
 That freezes the timer in Mine Sweeper.
 _________________
 
 |  |  
		| Back to top |  |  
		|  |  
		| appalsap Moderator
 
  Reputation: 0 
 Joined: 27 Apr 2006
 Posts: 6753
 Location: Pakistan
 
 | 
			
				|  Posted: Wed Mar 14, 2007 4:03 pm    Post subject: |   |  
				| 
 |  
				| That's some pretty awful code, drkgodz. Luckily for you, I've improved it. (and it now compiles as C too  ) 
 
  	  | Code: |  	  | #include <windows.h>
 
 BOOL WriteMem(DWORD Address, BYTE Value, DWORD PID)
 {
 HANDLE hProcess = NULL;
 
 hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, PID);
 if (!hProcess)
 return FALSE;
 if (!WriteProcessMemory(hProcess, Address, &Value, 1, 0))
 return FALSE;
 
 CloseHandle(hProcess);
 return TRUE;
 }
 
 int main()
 {
 HANDLE std = NULL; HWND mass = 0;
 DWORD ass = 0, nop = 0x90;
 //should be a BYTE but it doesn't matter because its a small number
 
 std = GetStdHandle(-11);
 if (!std) return 1;
 
 mass = FindWindow("Minesweeper", "Minesweeper");
 if (!mass)
 MessageBox(NULL,"Could not find window",0,64);
 
 GetWindowThreadProcessId(mass, &ass);
 if (!ass) return 2;
 
 if (!WriteMem(0x01002FF5, nop, ass))
 WriteFile(std, "Fail.", 5, &ass, NULL);
 else
 WriteFile(std, "Success.", 8, &ass, NULL);
 
 CloseHandle(std);
 Sleep(INFINITE);
 return 0;
 }
 
 | 
 |  |  
		| Back to top |  |  
		|  |  
		| Oxcorp Newbie cheater
 
 ![]() Reputation: 0 
 Joined: 06 Mar 2007
 Posts: 14
 
 
 | 
			
				|  Posted: Wed Mar 14, 2007 11:53 pm    Post subject: |   |  
				| 
 |  
				| As I said, I didn't JUST start visual basic, I've been working with it for about a year now. |  |  
		| Back to top |  |  
		|  |  
		| Drkgodz Flash moderator
 
  Reputation: 2 
 Joined: 17 Jul 2006
 Posts: 2997
 Location: Houston
 
 | 
			
				|  Posted: Thu Mar 15, 2007 12:02 am    Post subject: |   |  
				| 
 |  
				|  	  | appalsap wrote: |  	  | That's some pretty awful code, drkgodz. Luckily for you, I've improved it. (and it now compiles as C too  ) 
 
  	  | Code: |  	  | #include <windows.h>
 
 BOOL WriteMem(DWORD Address, BYTE Value, DWORD PID)
 {
 HANDLE hProcess = NULL;
 
 hProcess = OpenProcess(PROCESS_ALL_ACCESS, TRUE, PID);
 if (!hProcess)
 return FALSE;
 if (!WriteProcessMemory(hProcess, Address, &Value, 1, 0))
 return FALSE;
 
 CloseHandle(hProcess);
 return TRUE;
 }
 
 int main()
 {
 HANDLE std = NULL; HWND mass = 0;
 DWORD ass = 0, nop = 0x90;
 //should be a BYTE but it doesn't matter because its a small number
 
 std = GetStdHandle(-11);
 if (!std) return 1;
 
 mass = FindWindow("Minesweeper", "Minesweeper");
 if (!mass)
 MessageBox(NULL,"Could not find window",0,64);
 
 GetWindowThreadProcessId(mass, &ass);
 if (!ass) return 2;
 
 if (!WriteMem(0x01002FF5, nop, ass))
 WriteFile(std, "Fail.", 5, &ass, NULL);
 else
 WriteFile(std, "Success.", 8, &ass, NULL);
 
 CloseHandle(std);
 Sleep(INFINITE);
 return 0;
 }
 
 | 
 | 
 Thanks.
 _________________
 
 |  |  
		| Back to top |  |  
		|  |  
		| Flyte Peanuts!!!!
 
  Reputation: 6 
 Joined: 19 Apr 2006
 Posts: 1887
 Location: Canada
 
 | 
			
				|  Posted: Thu Mar 15, 2007 10:28 am    Post subject: |   |  
				| 
 |  
				|  	  | Oxcorp wrote: |  	  | As I said, I didn't JUST start visual basic, I've been working with it for about a year now. | 
 
 Thats a year of your life wasted.
 |  |  
		| Back to top |  |  
		|  |  
		| appalsap Moderator
 
  Reputation: 0 
 Joined: 27 Apr 2006
 Posts: 6753
 Location: Pakistan
 
 | 
			
				|  Posted: Thu Mar 15, 2007 10:53 am    Post subject: |   |  
				| 
 |  
				| No, that's a lifetime of failure and regret. First language (programming or not) you learn affects how you think all your life, just like how since English was my first language I think and solve problems in English, while it may be different from someone else. |  |  
		| Back to top |  |  
		|  |  
		|  |  
  
	| 
 
 | 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
 
 |  |