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 


[Release] my first auto clicker :D

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sun Feb 17, 2008 10:36 am    Post subject: [Release] my first auto clicker :D Reply with quote

finally i succed to make it click faster... Very Happy

it's my first auto clicker so be nice Cool
it was made in C#
great thanks to samurai that helped me with mouse events =]

first attachment is source code
sencond attachment auto clicker

i fixed the code btw
Have fun :>



The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


The Extension 'rar' was deactivated by an board admin, therefore this Attachment is not displayed.


_________________
Stylo


Last edited by Stylo on Sun Feb 17, 2008 11:05 am; edited 1 time in total
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Sun Feb 17, 2008 10:43 am    Post subject: Reply with quote

You used samuri's keyboard hook. Rolling Eyes
Back to top
View user's profile Send private message
AlienX-P
Advanced Cheater
Reputation: 0

Joined: 31 Jan 2008
Posts: 52

PostPosted: Sun Feb 17, 2008 10:43 am    Post subject: Reply with quote

Gj, anyway, try to use hotkeys, sucks when trying to stop..
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sun Feb 17, 2008 10:44 am    Post subject: Reply with quote

oh it's becuase of the "using keyboardhook" i guess ignore it i wanted to make a hotkey but i messed with that and i gave up his help was with mouse events
_________________
Stylo
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: Sun Feb 17, 2008 10:57 am    Post subject: Reply with quote

I've made the Keyboard hook a bit easier to use.

Try it out now--as a previous poster said, it is a bit hard to get to the stop button.

Symbol wrote:
You used samuri's keyboard hook. Rolling Eyes


There's nothing wrong with that--that's what it's for. Wink

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sun Feb 17, 2008 11:41 am    Post subject: Reply with quote

samurai i need a little help with your KeyboardHook
i added it as a class to my project and i copied the KeyHandler method to my Project (the Form.cs page)
now i have no idea what do i need to do next.. :\

i define F10 as Hotkey that turns off the auto clicker..

_________________
Stylo
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: Sun Feb 17, 2008 12:18 pm    Post subject: Reply with quote

1) Did you change the namespace of the keyboard hook?

2) Look at my example KeyHandler code, and see if you can't figure out how to make F10 do what you want to do. =p

3) Follow the steps that it gives you in the post.

I think the 4th step was something like, call Hook.CreateHook(blahblah).
You should do that on your Form_Load event, and kill it (Hook.DestroyHook()) on the Form_Closing. See if you can't figure out how to do that.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sun Feb 17, 2008 1:42 pm    Post subject: Reply with quote

well i have one more problem.. with that code.

that's my method that checks when F10 is clicked

Code:

    public void KeyHandler(IntPtr wParam, IntPtr lParam)
    {
        int key = Marshal.ReadInt32(lParam);
        TestKeybdHook.Hook.VK vk = (TestKeybdHook.Hook.VK)key;
        if (vk == TestKeybdHook.Hook.VK.VK_F10)
        {
            MessageBox.Show("blah");
        }


but when i hit F10 i get more than 1 messageBox instad of 1 :\ what is the problem with code Confused

_________________
Stylo
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Sun Feb 17, 2008 2:17 pm    Post subject: Reply with quote

Probably holding it down too long.
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Sun Feb 17, 2008 2:21 pm    Post subject: Reply with quote

no i hit it pretty fast :\ ..
_________________
Stylo
Back to top
View user's profile Send private message
HolyBlah
Master Cheater
Reputation: 2

Joined: 24 Aug 2007
Posts: 446

PostPosted: Mon Feb 18, 2008 8:50 am    Post subject: Reply with quote

You need to wait until F10 is up:

Code:
if (vk == TestKeybdHook.Hook.VK.VK_F10)
{
     while(vk == TestKeybdHook.Hook.VK.VK_F10);
     { }
     MessageBox.Show("blah");
}
Or something like that.
Back to top
View user's profile Send private message
Stylo
Grandmaster Cheater Supreme
Reputation: 3

Joined: 16 May 2007
Posts: 1073
Location: Israel

PostPosted: Mon Feb 18, 2008 11:02 am    Post subject: Reply with quote

it doesn't work :\ .. any other idea? Confused
_________________
Stylo
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: Mon Feb 18, 2008 7:35 pm    Post subject: Reply with quote

I'm thinking that it calls the Keyboard hook, not only with the WM_KEYDOWN event, but also with the WM_KEYUP event.

I'm still thinking about how to solve that;

Give me some time.

_________________
Wiccaan wrote:

Oh jeez, watchout I'm a bias person! Locked.


Auto Assembly Tuts:
In Depth Tutorial on AA
Extended
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