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 


[Tutorial - Delphi]Coding a simple auto clicker *Rev 1105*

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Nov 24, 2007 1:13 pm    Post subject: [Tutorial - Delphi]Coding a simple auto clicker *Rev 1105* Reply with quote

If you people haven't met PMX.dll, go - http://forum.cheatengine.org/viewtopic.php?t=161006

Now, open a new project (Application)

Add 2 timers, 1 timer configue the hotkeys (Eg. F1 - On , F2 - Off)

the hotkey timer will use GetAsyncKeyState();

other hotkey calls PostMessageX from PMX.dll (Set the clicker timer interval to 1ms (fastest)).

PostMessageX(h,WM_LBUTTONDBLCLK,0,0); //i'm not sure it's the correct param

like a simple loop.

Code:
HWND h:=FindWindowA(nil,'MapleStory');


compile and enjoy
Back to top
View user's profile Send private message
Reak
I post too much
Reputation: 0

Joined: 15 May 2007
Posts: 3496

PostPosted: Sat Nov 24, 2007 1:15 pm    Post subject: Re: [Tutorial - Delphi]Coding a simple auto clicker *Rev 110 Reply with quote

Kaspersky wrote:
Code:
HWND h:=FindWindowA(nil,'MapleStory');


You should use MapleStory's class.
Code:
HWND h:=FindWindowA('MapleStoryClass', NIL);


Last edited by Reak on Sat Nov 24, 2007 1:54 pm; edited 1 time in total
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Nov 24, 2007 1:18 pm    Post subject: Reply with quote

btw, for those who want to know all about PostMessage messages go to - http://www.autohotkey.com/docs/misc/SendMessageList.htm

and for Virtual Keys - http://delphi.about.com/od/objectpascalide/l/blvkc.htm (VK_)
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Nov 24, 2007 1:29 pm    Post subject: Reply with quote

You sicken me Kaspersky. Always ready to capitalize on other peoples work, then take credit for it.
Back to top
View user's profile Send private message
DeletedUser14087
I post too much
Reputation: 2

Joined: 21 Jun 2006
Posts: 3069

PostPosted: Sat Nov 24, 2007 1:35 pm    Post subject: Reply with quote

Flyte wrote:
You sicken me Kaspersky. Always ready to capitalize on other peoples work, then take credit for it.


what are you talknig about ? and i didn't used spheres method, Gthuggin's also i credited them, what do you want ? you want me to add you too ?
Back to top
View user's profile Send private message
Flyte
Peanuts!!!!
Reputation: 6

Joined: 19 Apr 2006
Posts: 1887
Location: Canada

PostPosted: Sat Nov 24, 2007 1:38 pm    Post subject: Reply with quote

Kaspersky wrote:
what are you talknig about ? and i didn't used spheres method, Gthuggin's also i credited them, what do you want ? you want me to add you too ?


I want you to remove PMX.dll, it makes it look like you made the function when you didn't. If you don't want to remove it, at least put: "I did not make this!", in big letters on the post at the top.
Back to top
View user's profile Send private message
samuri25404
Grandmaster Cheater
Reputation: 7

Joined: 04 May 2007
Posts: 955
Location: Why do you care?

PostPosted: Sat Nov 24, 2007 1:46 pm    Post subject: Reply with quote

Lol @ Flyte.

Do you really think he'd do that?

Or are you gonna prove me wrong, Kasper?
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Sat Nov 24, 2007 1:50 pm    Post subject: Reply with quote

Why use 2 keys if you can use 1...
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sat Nov 24, 2007 1:53 pm    Post subject: Reply with quote

The credits are in the other threads assholes
_________________
Back to top
View user's profile Send private message
DoomsDay
Grandmaster Cheater
Reputation: 0

Joined: 06 Jan 2007
Posts: 768
Location: %HomePath%

PostPosted: Sat Nov 24, 2007 2:47 pm    Post subject: Reply with quote

Kaspersky, understand this:
What you wrote is not a tutorial, its an example of the usage of PostMessage, alot of people would not understand why the compiler does not know what PostMessageX mean when they'll try to compile without importing it first from the dll. Also I must say that the comment - //i'm not sure it's the correct param - Makes this entire thread an entirely big joke.

As for the PMX.dll issue - you compiled the code provided by sphere90, the least I've expected you to do is to rewrite it, but you didn't even do that - you copied it, line by line. You do not deserve credits for it at all.

I'm really sorry for the offensive post, but that's what I think. Sorry.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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