Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 30th, 2005, 2:20 PM   #1
Pissi
Newbie
 
Join Date: Oct 2005
Posts: 9
Rep Power: 0 Pissi is on a distinguished road
Auto Clicker: Need help

Hey im trying to make an autoclicker and its going to be in the same form as an autotyper though i cannot get it to work. Rory has tried to help me and its properbly just a mistake i am making.
Can someone help me make a quick autoclicker where you can set how many left mouse clicks it does per second? It would realy help, thanks.
Pissi is offline   Reply With Quote
Old Nov 26th, 2005, 12:55 PM   #2
13EN
Newbie
 
13EN's Avatar
 
Join Date: Nov 2005
Posts: 13
Rep Power: 0 13EN is on a distinguished road
hi i cannot help with the auto clicker program but i have 2 questions: Are you using them for Runescape? also Please can you tell me how to make an auto talker because all of my attempts have failed miserably!!
13EN is offline   Reply With Quote
Old Nov 26th, 2005, 12:59 PM   #3
Dameon
Troll
 
Dameon's Avatar
 
Join Date: Apr 2005
Location: Texas
Posts: 732
Rep Power: 4 Dameon is on a distinguished road
Perhaps you should...I don't know...post some details? Such as code?
__________________
MD5(sig) = bcef75433db02e9ad9bf81d6f7c5c270
Dameon is offline   Reply With Quote
Old Nov 26th, 2005, 2:37 PM   #4
ivan
Professional Programmer
 
ivan's Avatar
 
Join Date: Sep 2005
Location: serbia & montenegro
Posts: 484
Rep Power: 4 ivan is on a distinguished road
Can somebody explain to me why so many people are trying to code autoclikers? For what are they used???
ivan is offline   Reply With Quote
Old Nov 26th, 2005, 3:08 PM   #5
jayme
Professional Programmer
 
jayme's Avatar
 
Join Date: Nov 2005
Location: Canada
Posts: 495
Rep Power: 0 jayme is an unknown quantity at this point
Send a message via MSN to jayme
im going to guess for google ads on their own site? something along the lines of making money from ads probably..
__________________

Quote:
Originally Posted by Mohamed Jihad
Durka durka!
Due to incorrect calculations during the middle ages, our calendar actually begins a few years after Jesus' birth. Thus the real 6/6/6 happened a few years back. The world already ended and you missed it.

Download Code::Blocks now!
jayme is offline   Reply With Quote
Old Nov 26th, 2005, 4:49 PM   #6
zero771
Programmer
 
Join Date: Nov 2005
Posts: 37
Rep Power: 0 zero771 is an unknown quantity at this point
ooh runescape, i remember that game,
autoclickers repeatedly click in places you program it to click in
zero771 is offline   Reply With Quote
Old Nov 26th, 2005, 5:07 PM   #7
13EN
Newbie
 
13EN's Avatar
 
Join Date: Nov 2005
Posts: 13
Rep Power: 0 13EN is on a distinguished road
ok then this is the most recent attempt:


Private Sub Command1_Click()
Timer1.Interval = 100
Timer1.Enabled = True
End Sub

Private Sub Command2_Click()
Timer1.Enabled = False
End Sub

Private Sub Timer1_Timer()
Timer1.Interval = 5000
SendKeys Text1.Text
SendKeys "{enter}"
End Sub

i got help with that off another forum
13EN is offline   Reply With Quote
Old Nov 27th, 2005, 9:31 AM   #8
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
You want to use the mouse_event and keyb_event APIs, they are implemented at the driver level, so will work if the application is using DirectInput or event hooks, which SendKeys won't work for (as it's a wrapper for SendMessage WM_KEYUP I believe), especially if this is for a game.
Rory is offline   Reply With Quote
Old Dec 5th, 2005, 4:13 PM   #9
Pissi
Newbie
 
Join Date: Oct 2005
Posts: 9
Rep Power: 0 Pissi is on a distinguished road
Hey, i did it, and that code you found on a forum is right for the auto talker, they are simple to make, but the clicker..

Put this in as a new module:
Public Declare Sub mouse_event Lib "user32" (ByVal dwFlags As Long, ByVal dx As Long, ByVal dy As Long, ByVal cButtons As Long, ByVal dwExtraInfo As Long)
Public Declare Function SetCursorPos Lib "user32" (ByVal X As Long, ByVal Y As Long) As Long

    Public Const MOUSEEVENTF_LEFTDOWN = &H2
    Public Const MOUSEEVENTF_LEFTUP = &H4
    Public Const MOUSEEVENTF_MIDDLEDOWN = &H20
    Public Const MOUSEEVENTF_MIDDLEUP = &H40
    Public Const MOUSEEVENTF_RIGHTDOWN = &H8
    Public Const MOUSEEVENTF_RIGHTUP = &H10
    Public Const MOUSEEVENTF_MOVE = &H1

Then make a timer and add this code:

Private Sub Timer1_Timer()
mouse_event MOUSEEVENTF_LEFTDOWN, 0, 0, 0, 0
mouse_event MOUSEEVENTF_LEFTUP, 0, 0, 0, 0
End Sub

Then just add buttons start and stop and set each one of them to enable/disable the clicker, and also you could add a text box to define the interval of the clicks:

Private Sub Command1_Click()
Timer1.Interval = Text1.Text
Timer1.Enabled = True
End Sub

Private Sub Command2_Click()
Timer1.Interval = Text1.Text
Timer1.Enabled = False
End Sub



hmm...i swear i have made more posts than 2!
Pissi is offline   Reply With Quote
Old Dec 5th, 2005, 4:47 PM   #10
coldDeath
Expert Programmer
 
coldDeath's Avatar
 
Join Date: Aug 2005
Location: UK
Posts: 862
Rep Power: 4 coldDeath is on a distinguished road
Send a message via AIM to coldDeath Send a message via Yahoo to coldDeath
Hehe posts in "the lounge" don't count ;-)
__________________
Join us at #programmingforums @ irc.freenode.net!

My software never has bugs. It just develops random features.
coldDeath is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 5:58 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC