| View previous topic :: View next topic |
| Author |
Message |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Sat Oct 13, 2007 11:10 am Post subject: Thanks guys![Mod, delete please] |
|
|
Thanks.
Last edited by Never Again on Sun Oct 14, 2007 9:23 am; edited 1 time in total |
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Oct 13, 2007 11:23 am Post subject: |
|
|
mouse_event() although I think that got superseded so SendInput().
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Sat Oct 13, 2007 11:26 am Post subject: |
|
|
| What would I put between the parenthesis?
|
|
| Back to top |
|
 |
HolyBlah Master Cheater
Reputation: 2
Joined: 24 Aug 2007 Posts: 446
|
Posted: Sat Oct 13, 2007 11:29 am Post subject: |
|
|
Mouse_Event
eg:
| Code: |
mouse_event(MOUSEEVENTF_LEFTDOWN,90,300,0,0);
mouse_event(MOUSEEVENTF_LEFTUP,90,300,0,0);
|
this code will simulate one click on 90:300.
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Oct 13, 2007 11:30 am Post subject: |
|
|
mouse_event()
SendInput()
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Flyte Peanuts!!!!
Reputation: 6
Joined: 19 Apr 2006 Posts: 1887 Location: Canada
|
Posted: Sat Oct 13, 2007 11:39 am Post subject: Re: How would I make an Auto Clicker in Delphi? |
|
|
| Never Again wrote: | | I've seen many Auto Clickers compiled in Delphi but I wanted to learn how to make one myself because I'm making one for a trainer I'm going to make. I know how to make edit1 have the milliseconds and suc but what about the clicking function? |
SendInput(), but be careful, it is hooked.
Edit: Oh wow, post lag.
Last edited by Flyte on Sat Oct 13, 2007 11:50 am; edited 1 time in total |
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Sat Oct 13, 2007 11:49 am Post subject: |
|
|
My simple source:
| Code: |
procedure TForm1.Timer1Timer(Sender: TObject);
begin
Mouse_Event(MOUSEEVENTF_ABSOLUTE or
MOUSEEVENTF_LEFTDOWN,
0, 0, 0, 0);
Mouse_Event(MOUSEEVENTF_ABSOLUTE or
MOUSEEVENTF_LEFTUP,
0, 0, 0, 0);
end;
procedure TForm1.Timer2Timer(Sender: TObject);
begin
if odd(GetaSyncKeyState(VK_F9)) then
Timer1.Enabled := True;
//
if odd(GetaSyncKeyState(VK_F10)) then
Timer1.Enabled := False;
end;
|
Make Timer1 Interval 1ms. it will click every 1ms ^.^
Timer2 Interval 1ms also, and make Timer1.Eneabled := False;
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Sat Oct 13, 2007 12:04 pm Post subject: |
|
|
Lol, do not use GetASyncKeyState(). It uses more CPU power than you need. Use RegisterHotkey().
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
Never Again I post too much
Reputation: 0
Joined: 13 Jan 2007 Posts: 2000 Location: New Mexico
|
Posted: Sat Oct 13, 2007 9:56 pm Post subject: |
|
|
Ok so I did everything but I wanted to make it so that Edit1 will have the MS between a click, but I get an error when I try this :
| Code: | | Timer6.Interval:=edit1.text; |
edit:
NVM I got it.
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sun Oct 14, 2007 2:44 am Post subject: |
|
|
| But this wont work IN MapleStory, isn't it?
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Sun Oct 14, 2007 3:23 am Post subject: |
|
|
| lol rEakW0n, no it wont because off GG and you need to SetActiveWindow (Or w.e (Aslong you Focus your app)) to MapleStory.
|
|
| Back to top |
|
 |
Reak I post too much
Reputation: 0
Joined: 15 May 2007 Posts: 3496
|
Posted: Sun Oct 14, 2007 3:49 am Post subject: |
|
|
| Kaspersky wrote: | | lol rEakW0n, no it wont because off GG and you need to SetActiveWindow (Or w.e (Aslong you Focus your app)) to MapleStory. |
I knew it
Do you know how to make a bot for maplestory?
x0r said DispatchMessage() / TranslateMessage() would work, but idk how to use it correctly.
|
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Sun Oct 14, 2007 5:10 am Post subject: |
|
|
| rEakW0n wrote: | | Kaspersky wrote: | | lol rEakW0n, no it wont because off GG and you need to SetActiveWindow (Or w.e (Aslong you Focus your app)) to MapleStory. |
I knew it
Do you know how to make a bot for maplestory?
x0r said DispatchMessage() / TranslateMessage() would work, but idk how to use it correctly. |
I don't wanna try making Bots/Trainers for MS (Yet) since i'm not experienced yet, nor do you or any other Delphi "Programmer" here (except appal, Renko, db)
|
|
| Back to top |
|
 |
Noz3001 I'm a spammer
Reputation: 26
Joined: 29 May 2006 Posts: 6220 Location: /dev/null
|
Posted: Sun Oct 14, 2007 6:11 am Post subject: |
|
|
| oib111 wrote: | | Lol, do not use GetASyncKeyState(). It uses more CPU power than you need. Use RegisterHotkey(). |
Hardly.
|
|
| Back to top |
|
 |
TheIndianGuy Advanced Cheater
Reputation: 102
Joined: 14 Jan 2007 Posts: 88
|
Posted: Mon Oct 15, 2007 5:50 pm Post subject: Re: Thanks guys![Mod, delete please] |
|
|
| Never Again wrote: | | Thanks. |
its good to save this just in case anyone else needs this information so people do not have to repeat themselves
|
|
| Back to top |
|
 |
|