Sign in to follow this  
Followers 0
kaox

Clicking Script

5 posts in this topic

Can anyone tell me how to make a Script that If I press F12 or w/e button, it will start to Left Click like Crazy and then If I repress the button it will stop ?

I try'd to google it but nothing came up.

Thanks.

Share this post


Link to post
Share on other sites

#include <GUIConstants.au3>

hotkeyset("{BS}","quit")
hotkeyset("{ESC}","start")

global $time = "100"

 While 1
      $nMsg = GUIGetMsg()
      Switch $nMsg
          Case $GUI_EVENT_CLOSE
              Exit
          EndSwitch
          wend

func start()
do
    sleep($time)
    mousedown("left")
    sleep("50")
    mouseup("left")
until false
endfunc

    
func quit()
    exit
endfunc

Why do i do this

Share this post


Link to post
Share on other sites

because u care

But, why do you have any referances to guis?

You could simply use:

hotkeyset("{BS}","quit")
hotkeyset("{ESC}","start")

global $time = "100"

While 1
Sleep (1000)
Wend


func start()
While 1
    sleep($time)
    mousedown("left")
    sleep("50")
    mouseup("left")
Wend
endfunc

    
func quit()
    exit
endfunc
Thanks !!

but how we exit the thing ?

o yea a noob question... can Valve Anti-Cheat detects AutoIt as a Hack ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0