 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
Kalookakoo Expert Cheater
Reputation: 0
Joined: 03 Mar 2008 Posts: 117
|
Posted: Sat Apr 05, 2008 10:23 am Post subject: Auto Loot ~ Partial Failure? |
|
|
This is my auto loot code:
| Code: | procedure TForm1.Timer15Timer(Sender: TObject);
var
h:hwnd;
a:DWORD;
begin
if Checkbox1.Checked=True then
begin
h:=FindWindowA(nil,'MapleStory');
a:=MapVirtualKey($5A,0);
a:= a shr 16;
if h<>0 then
begin
hhPostMessageA(h,WM_KEYDOWN,$5A,a);
Application.ProcessMessages;
end;
end
else
end; |
It does "z" in chat, but when it comes to picking stuff up, it doesn't. And I triple checked if my loot was on z, and it is. Any help?
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Sat Apr 05, 2008 10:26 am Post subject: |
|
|
| Code: | procedure TForm1.Timer15Timer(Sender: TObject);
var
h:hwnd;
a:DWORD;
begin
if Checkbox1.Checked=True then
begin
h:=FindWindowA(nil,'MapleStory');
a:=MapVirtualKey($5A,0);
a:= a shr 16;
if h<>0 then
begin
hhPostMessageA(h,WM_KEYDOWN,$5A,a);
Application.ProcessMessages;
end;
end
else
end; |
Hmm, that reminds me of an old source, Rot1 gave me, you need to make it "shl 16" not "shr 16"
fixed it for you:
| Code: | procedure TForm1.Timer15Timer(Sender: TObject);
var
h:hwnd;
a:DWORD;
begin
if Checkbox1.Checked=True then
begin
h:=FindWindowA(nil,'MapleStory');
a:=MapVirtualKey($5A,0);
a:= a shl 16;
if h<>0 then
begin
hhPostMessageA(h,WM_KEYDOWN,$5A,a);
Application.ProcessMessages;
end;
end
else
end; |
|
|
| Back to top |
|
 |
Kalookakoo Expert Cheater
Reputation: 0
Joined: 03 Mar 2008 Posts: 117
|
Posted: Sat Apr 05, 2008 10:34 am Post subject: |
|
|
thanks anden.
+rep
|
|
| Back to top |
|
 |
Anden100 Grandmaster Cheater
Reputation: 0
Joined: 20 Apr 2007 Posts: 668
|
Posted: Sat Apr 05, 2008 11:01 am Post subject: |
|
|
| Kalookakoo wrote: | thanks anden.
+rep |
You should thank Rot1 instead, he told me this
btw, i fixed another fail here:
http://forum.cheatengine.org/viewtopic.php?t=222367
using doing it the way i think you would like to do it
|
|
| 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
|
|