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 


[Question] How to freeze Values???
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Two_Crush
Cheater
Reputation: 0

Joined: 15 Sep 2007
Posts: 29

PostPosted: Sat Sep 15, 2007 1:15 pm    Post subject: Reply with quote

aahaa^^ thx now i know how Razz


PS: How can i Unfreeze it? I mean i have 999 HP and it stay at 999, how can i Unfreeze it?
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Sep 15, 2007 1:20 pm    Post subject: Reply with quote

Make a button thats says Freeze or w/e you want. Double click it and put this code.

Code:

Timer1.Enabled := True;


Change Timer1 to whatever the name of your timer is. Btw, make the timer disabled already. Otherwise it will automaticly be enabled when you open the program. Now make another button called Stop or w/e you want. Double click it and put this code.

Code:

Timer1.Enabled := False;


These are pretty self explanatory. The first one turns your timer on making you hack go. The other one turns off your timer so your hack stops. Well, actually, if your using writeprocessmemory, you prolly are going to have to write back all the bytes xP, idk i dont rly used writeprocessmemory with taking back what i wrote, so im not sure.

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
oOoNyquiloOo
Grandmaster Cheater Supreme
Reputation: 0

Joined: 18 Jun 2006
Posts: 1420

PostPosted: Sat Sep 15, 2007 8:50 pm    Post subject: Reply with quote

Use a hotkey! xP
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sat Sep 15, 2007 9:14 pm    Post subject: Reply with quote

Yea, hotkey would be better. But look up global hotkeys, hotkeys on timers take up more CPU power.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Two_Crush
Cheater
Reputation: 0

Joined: 15 Sep 2007
Posts: 29

PostPosted: Sat Sep 15, 2007 11:51 pm    Post subject: Reply with quote

1. Thanks oib111^^
2. How to make Hotkey lol (sorry im really new to this:P)
Back to top
View user's profile Send private message
igoticecream
Grandmaster Cheater Supreme
Reputation: 0

Joined: 23 Apr 2006
Posts: 1807
Location: 0x00400000

PostPosted: Sun Sep 16, 2007 12:13 am    Post subject: Reply with quote

http://www.thedarkalliance.org/viewtopic.php?f=32&t=1281

hope it helps

_________________
+~
Back to top
View user's profile Send private message
Two_Crush
Cheater
Reputation: 0

Joined: 15 Sep 2007
Posts: 29

PostPosted: Sun Sep 16, 2007 12:26 am    Post subject: Reply with quote

im using VB 6 not C/C++ Smile
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 Sep 16, 2007 1:40 am    Post subject: Reply with quote

RegisterHotKey is what you're looking for.
Back to top
View user's profile Send private message
SkatSkat
Grandmaster Cheater
Reputation: 0

Joined: 30 Oct 2006
Posts: 648

PostPosted: Sun Sep 16, 2007 7:24 am    Post subject: Reply with quote

Hook the procedure that decrements your health (you can find it through CE's "what writes to this" function) and don't decrement.
_________________
"We're betting everything on ourselves tonight" - The Bouncing Souls
Back to top
View user's profile Send private message AIM Address
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Sun Sep 16, 2007 9:49 am    Post subject: Reply with quote

As the person said, you must use the RegisterHotkey API. I am not really familliar with this API. But I know other ways to do this. Here is some delphi code on how to do global hotkeys. If your good enough in vb, you might be able to translate it to vb code. If you can't I will gladly have my friend see to it. And delphi and vb are pretty similar so you should understand most of the code.

Code:

     



{
  The following example demonstrates registering hotkeys with the
  system to globally trap keys.

  Das Folgende Beispiel zeigt, wie man Hotkeys registrieren und
  darauf reagieren kann, wenn sie gedrückt werden. (systemweit)
}

unit Unit1;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
  Dialogs;

type
  TForm1 = class(TForm)
    procedure FormCreate(Sender: TObject);
    procedure FormDestroy(Sender: TObject);
  private
    { Private declarations }
    id1, id2, id3, id4: Integer;
    procedure WMHotKey(var Msg: TWMHotKey); message WM_HOTKEY;
  public
    { Public declarations }
  end;

var
  Form1: TForm1;

implementation

{$R *.dfm}

// Trap Hotkey Messages
procedure TForm1.WMHotKey(var Msg: TWMHotKey);
begin
  if Msg.HotKey = id1 then
    ShowMessage('Ctrl + A pressed !');
  if Msg.HotKey = id2 then
    ShowMessage('Ctrl + Alt + R pressed !');
  if Msg.HotKey = id3 then
    ShowMessage('Win + F4 pressed !');
  if Msg.HotKey = id4 then
    ShowMessage('Print Screen pressed !');
end;

procedure TForm1.FormCreate(Sender: TObject);
  // Different Constants from Windows.pas
const
  MOD_ALT = 1;
  MOD_CONTROL = 2;
  MOD_SHIFT = 4;
  MOD_WIN = 8;
  VK_A = $41;
  VK_R = $52;
  VK_F4 = $73;
begin
  // Register Hotkey Ctrl + A
  id1 := GlobalAddAtom('Hotkey1');
  RegisterHotKey(Handle, id1, MOD_CONTROL, VK_A);

  // Register Hotkey Ctrl + Alt + R
  id2 := GlobalAddAtom('Hotkey2');
  RegisterHotKey(Handle, id2, MOD_CONTROL + MOD_Alt, VK_R);

  // Register Hotkey Win + F4
  id3 := GlobalAddAtom('Hotkey3');
  RegisterHotKey(Handle, id3, MOD_WIN, VK_F4);

  // Globally trap the Windows system key "PrintScreen"
  id4 := GlobalAddAtom('Hotkey4');
  RegisterHotKey(Handle, id4, 0, VK_SNAPSHOT);
end;

// Unregister the Hotkeys
procedure TForm1.FormDestroy(Sender: TObject);
begin
  UnRegisterHotKey(Handle, id1);
  GlobalDeleteAtom(id1);
  UnRegisterHotKey(Handle, id2);
  GlobalDeleteAtom(id2);
  UnRegisterHotKey(Handle, id3);
  GlobalDeleteAtom(id3);
  UnRegisterHotKey(Handle, id4);
  GlobalDeleteAtom(id4);
end;

end.

{
  RegisterHotKey fails if the keystrokes specified for the hot key have
  already been registered by another hot key.

  Windows NT4 and Windows 2000/XP: The F12 key is reserved for use by the
  debugger at all times, so it should not be registered as a hot key. Even
  when you are not debugging an application, F12 is reserved in case a
  kernel-mode debugger or a just-in-time debugger is resident.
}

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Sep 16, 2007 10:27 am    Post subject: Reply with quote

Registering hotkeys for VB6:
http://www.vbaccelerator.com/home/vb/code/Libraries/Subclassing/Registered_Hotkeys/article.asp
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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