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 


Making Trainers in Visual Basic 6.0

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Oxcorp
Newbie cheater
Reputation: 0

Joined: 06 Mar 2007
Posts: 14

PostPosted: Wed Mar 14, 2007 12:07 am    Post subject: Making Trainers in Visual Basic 6.0 Reply with quote

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
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Wed Mar 14, 2007 6:10 am    Post subject: Reply with quote

learn a real language and it'll be much easier.
Back to top
View user's profile Send private message
dLICIOUS
Advanced Cheater
Reputation: 0

Joined: 14 Mar 2007
Posts: 83

PostPosted: Wed Mar 14, 2007 6:49 am    Post subject: Reply with quote

If I were you, I wouldn't start with Visual Basic. Try c/c++
Back to top
View user's profile Send private message
Noz3001
I'm a spammer
Reputation: 26

Joined: 29 May 2006
Posts: 6220
Location: /dev/null

PostPosted: Wed Mar 14, 2007 9:43 am    Post subject: Reply with quote

Yes, learn C. VB IS bad for you. Its like a drug only not fun.
Back to top
View user's profile Send private message MSN Messenger
Haruhi Suzumiya.
Master Cheater
Reputation: 1

Joined: 05 Feb 2005
Posts: 463

PostPosted: Wed Mar 14, 2007 3:27 pm    Post subject: Reply with quote

visual basic is the best!
Back to top
View user's profile Send private message
Drkgodz
Flash moderator
Reputation: 2

Joined: 17 Jul 2006
Posts: 2997
Location: Houston

PostPosted: Wed Mar 14, 2007 3:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Wed Mar 14, 2007 4:03 pm    Post subject: Reply with quote

That's some pretty awful code, drkgodz. Luckily for you, I've improved it. (and it now compiles as C too Smile)

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
View user's profile Send private message
Oxcorp
Newbie cheater
Reputation: 0

Joined: 06 Mar 2007
Posts: 14

PostPosted: Wed Mar 14, 2007 11:53 pm    Post subject: Reply with quote

As I said, I didn't JUST start visual basic, I've been working with it for about a year now.
Back to top
View user's profile Send private message
Drkgodz
Flash moderator
Reputation: 2

Joined: 17 Jul 2006
Posts: 2997
Location: Houston

PostPosted: Thu Mar 15, 2007 12:02 am    Post subject: Reply with quote

appalsap wrote:
That's some pretty awful code, drkgodz. Luckily for you, I've improved it. (and it now compiles as C too Smile)

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
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Thu Mar 15, 2007 10:28 am    Post subject: Reply with quote

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
View user's profile Send private message
appalsap
Moderator
Reputation: 0

Joined: 27 Apr 2006
Posts: 6753
Location: Pakistan

PostPosted: Thu Mar 15, 2007 10:53 am    Post subject: Reply with quote

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
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