Jump to content
Sign in to follow this  
kaox

Clicking Script

Recommended Posts

kaox

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
Legion

#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
qazwsx

Why do i do this

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

Share this post


Link to post
Share on other sites
kaox

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.