| View previous topic :: View next topic |
| Author |
Message |
Kalookakoo Expert Cheater
Reputation: 0
Joined: 03 Mar 2008 Posts: 117
|
Posted: Thu Apr 03, 2008 10:42 am Post subject: [Help] I'm getting somwhere I guess... |
|
|
If anyone considers this spoon feeding then just close the topic or what ever, because I don't really know how you guys determine if it is or not.
Now on topic :
FIRST
I've been learning Delphi little by little, and have a semi-decent grip on it so far. I've been told in order to make bots, trainers and such for games (specifically Maplestory) I will need to learn how to call the Win32 API. The only problem is that I can't seem to find a decent tut on it though. Using various search engines, I've found tutorials and explanations to the WIn32 API functions through Delphi, but these same tuts and passages just make me copy/paste codes into delphi applications and I feel like I'm not learning anything. If anyone can link me to a decent tut/passage that would actually teach me something I'd be happy. (Don't link me to the search button as I've been using that thing a lot lately....)
SECOND
Can anyone tell me how to apply a hotkey to do a function, and to make the same hotkey undo the function it did? Here's what I tried, but it only does the first funtion and not the second. Would I have to apply an integer or such ( "i + 1" when function starts (i = 0) and something like ( if i > 0 *undo code* "i - 1"?
CODE:
procedure TForm1.Timer1Timer(Sender: TObject);
begin
if odd(GetAsyncKeyState(VK_F5)) then
CheckBox1.Checked := True
else
if odd(GetAsyncKeyState(VK_F5)) then
CheckBox1.Checked := False;
end;
EDIT: Great. A third...
While trying to customize the GUI of my application, I was aiming for the check box componets to be transparent to the picture behind it. I got the transparency part....to the point where the check box components are transparent to the desktop.
If anyone doesn't understand what I'm trying to ask, then just say it, because I think I did get a bit confusing after awhile.
Last edited by Kalookakoo on Thu Apr 03, 2008 12:51 pm; edited 2 times in total |
|
| Back to top |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Apr 03, 2008 11:09 am Post subject: |
|
|
1. Don't know Delphi, but don't you just need to include Windows.pas?
2. You need to add some way to signify that it's already been done once or similar. In this case, you can just simply check if the CheckBox is already checked when you hit the hotkey and then do the appropriate action.
|
|
| Back to top |
|
 |
Kalookakoo Expert Cheater
Reputation: 0
Joined: 03 Mar 2008 Posts: 117
|
Posted: Thu Apr 03, 2008 12:22 pm Post subject: |
|
|
| Wow, number two was obvious. Idk how I managed to not notice that. My only problem truly left would be #3.
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Thu Apr 03, 2008 1:45 pm Post subject: |
|
|
I dont know about your first question, but the second is pretty simple actually:
| Code: | procedure TForm1.Timer1Timer(Sender: TObject);
begin
if odd(GetAsyncKeyState(VK_F5)) then
begin
if CheckBox1.Checked = True then
CheckBox1.Checked := false
else
CheckBox1.Checked := true;
end
end; |
btw, when you need to lines of codes executed, if an if statement is true/false, then you will need "begin" and "end" around them
|
|
| Back to top |
|
 |
Kalookakoo Expert Cheater
Reputation: 0
Joined: 03 Mar 2008 Posts: 117
|
Posted: Thu Apr 03, 2008 9:45 pm Post subject: |
|
|
I think i'll find 3 eventually. Ive also read GG patched "PostMessageA", and the mouse event functions. How do you go around bypassing that?
P.S.: Thanks Anden, I was complicating things.
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Fri Apr 04, 2008 4:33 pm Post subject: |
|
|
| Kalookakoo wrote: | I think i'll find 3 eventually. Ive also read GG patched "PostMessageA", and the mouse event functions. How do you go around bypassing that?
P.S.: Thanks Anden, I was complicating things.  |
To make an ac, you will need to bypass postmessage, using the rehooked PostMessage, that will need "hookHop.dll" or "PMX.dll", search them
|
|
| Back to top |
|
 |
|