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 


Implementing global hotkeys and finding a pointer.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source
View previous topic :: View next topic  

Did you actually read my entire huge post?
Yes
20%
 20%  [ 1 ]
No
80%
 80%  [ 4 ]
I kinda skimmed it
0%
 0%  [ 0 ]
Total Votes : 5

Author Message
XTrinityX
Expert Cheater
Reputation: 0

Joined: 18 May 2006
Posts: 123
Location: Connecticut

PostPosted: Sun Oct 22, 2006 12:54 pm    Post subject: Implementing global hotkeys and finding a pointer. Reply with quote

Okay, two things to ask about.

One, I am making an internal trainer for MapleStory, and it works alright. However, I was wondering if I can implement global hotkeys into my program so if I press a combination of buttons while playing MapleStory, a checkbox becomes active. I was thinking of something like this, but I don't know the code for global hotkeys.

(I know I am missing the semi-colons)
Code:


Procedure HotKeyActivated
If Checkbox1.Checked = False Then
Checkbox1.Checked = True
Else
CheckBox1.Checked = False
End



This code has the general idea, but I don't know how to make a procedure run on a global hotkey, so my question is pretty much:

How do you get a procedure to run on a Hotkey that I press during MapleStory?



Okay, part 2. ^_^

Say I want to make it so if a checkbox is active, then change / freeze a (pointer) address. I am actually not even sure where to start on this, so I was looking for some help. I was thinking that I would have a procedure that freezes an address like:

Code:
 Procedure FreezeAddy(i:integer;address:dword;offset:dword;)
(Somewhere here enter in a code to freeze an addy)


I would also need a code to unfreeze an addy?

Code:
 Procedure UnFreezeAddy(address:dword;offset:dword;)
(Somewhere here enter in a code to unfreeze an addy)


And then in my checkbox code

Code:

Procedure CheckBox3Click(Sender: TObject)
var
address:integer;
i: integer;
begin
if CheckBox3.Checked then
begin
FreezeAddy(0,$SomeAddress, $SomeOffset);
end
else
begin
  UnfreezeAddy($SomeAddress, $SomeOffset);
  end;
end



I am not even sure if any of this code above would work, but I need some more information on how CE handles pointers and stuff. Any help is appreciated.

Thanks much,
~Trinity
Back to top
View user's profile Send private message AIM Address
XTrinityX
Expert Cheater
Reputation: 0

Joined: 18 May 2006
Posts: 123
Location: Connecticut

PostPosted: Sun Oct 22, 2006 11:47 pm    Post subject: Reply with quote

Nobody knows? I guess I'll do some more research...Rolling Eyes


~Trinity
Back to top
View user's profile Send private message AIM Address
Dark Byte
Site Admin
Reputation: 468

Joined: 09 May 2003
Posts: 25708
Location: The netherlands

PostPosted: Mon Oct 23, 2006 1:26 am    Post subject: Reply with quote

for hotkeys look at the hotkeyhandler functions and see how they are used in ce. (have to implement the hotkey handler for the hotkey you make)

and for freezing look under the mousedown event of one of those checkboxes (not onclick but onmousedown)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
vener
Grandmaster Cheater Supreme
Reputation: 0

Joined: 18 Feb 2006
Posts: 1668

PostPosted: Mon Oct 23, 2006 4:49 am    Post subject: Reply with quote

DB can you brifly explain how ur mousedown works?
i have been freezing via the ce pluginexports code,i have beenresearching on how to get the ct to respond when i freeze it?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 468

Joined: 09 May 2003
Posts: 25708
Location: The netherlands

PostPosted: Mon Oct 23, 2006 6:23 am    Post subject: Reply with quote

mousedown handles lots of things including marking a address as selected and stuff, but for the freezing part:
It reads the original memory
stores it in memrec[selected].frozenvalue
and sets memrec[selected].frozen to true
and calls update screen for the checkbox to become checked

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
N-Y-M
Master Cheater
Reputation: 0

Joined: 13 Jul 2006
Posts: 475
Location: Emergency

PostPosted: Thu Oct 26, 2006 9:09 am    Post subject: Reply with quote

@Dark Byte
i would like to ask question regarding hotkey. there is a hotkey to bring CE to front (Ctrl+Alt+Pg Down), i tried but it doens not work

GG hooked both keybd_event and sendinput, so can CE hotkey works?

Thanks.

_________________

---| Powered by Dark Byte |---
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Source 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