Jump to content

Clicking Script


Recommended Posts

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.

Link to comment
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

Link to comment
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 ?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...