View previous topic :: View next topic |
Author |
Message |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Thu Apr 02, 2009 2:38 pm Post subject: Delphi Prob....Need Help Please.... |
|
|
Well here are the codes and thier placements as follows...
HookSend
Code: |
function hookSend(s:Integer; buf:PAnsiChar; len:Integer; flags:Integer; i:Integer):Integer; stdcall;
begin
try
if (Main.SendToggle.Checked) then begin
typeStrings.Add('Sent');
dataStrings.Add(PAnsiChar(@buf^));
sockStrings.Add(IntToStr(s));
for i:= 1 to typestrings.count -2 do
Main.SockDisp.text := sockstrings.strings[i];
Main.updateLists;
end;
Finally
Result := unhookedSend;
end;
end;
|
RecvList
Code: |
procedure TMain.RecvListClick(Sender: TObject);
begin
pmemo.text:=SendList.items[RecvList.itemindex];
end;
|
SendList
Code: | procedure TMain.SendListClick(Sender: TObject);
begin
pmemo.text:=RecvList.items[SendList.itemindex];
end;
end.
|
I'm attempting to creat an AutoSocket ID for my trainer for AQW, can anyone help me with this? Everytime i choose a server it crashes(it's just because of one of these codes or all of them), it works fine without them... Will+REP it suggestion helps, appreciate anyone's help and comments, thank you.
_________________
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25796 Location: The netherlands
|
Posted: Thu Apr 02, 2009 7:57 pm Post subject: |
|
|
you don't seem to be passing the parameters of send to unhookedSend
Check that the pointer type is defined with the proper function declaration
Then there's also the thing of thread safety. (calling gui stuff from isnide a different thread will cause a crash 99% of the time. Try using message based events and fill the message with the send event data and send it off to the window or thread handler)
The rest of the code looks buggy as well, but the main problem is with the unhookedSend
for a pe example in delphi check the plugin sourcecode of the packet editor
_________________
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 |
|
 |
NoManchesPuto I post too much
Reputation: 0
Joined: 24 Jan 2009 Posts: 2820
|
Posted: Thu Apr 02, 2009 8:49 pm Post subject: |
|
|
Dark Byte wrote: | you don't seem to be passing the parameters of send to unhookedSend
Check that the pointer type is defined with the proper function declaration
Then there's also the thing of thread safety. (calling gui stuff from isnide a different thread will cause a crash 99% of the time. Try using message based events and fill the message with the send event data and send it off to the window or thread handler)
The rest of the code looks buggy as well, but the main problem is with the unhookedSend
for a pe example in delphi check the plugin sourcecode of the packet editor |
Oh, well im using Yoshi's Tut and just editing it to my standards, he told me to use those codes but they don't work and are buggy like you said. Do you know what they need to be? i didn't really make the source myself ^.^ All i can really do is mess with the simple stuff like buttons and toggles and implementations, that's about it ^.^....... Please help, i really need it lol....
_________________
|
|
Back to top |
|
 |
|