kaox Posted May 26, 2008 Share Posted May 26, 2008 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 More sharing options...
Legion Posted May 27, 2008 Share Posted May 27, 2008 #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 More sharing options...
qazwsx Posted May 27, 2008 Share Posted May 27, 2008 Why do i do thisbecause 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 Link to comment Share on other sites More sharing options...
kaox Posted May 27, 2008 Author Share Posted May 27, 2008 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 More sharing options...
Bert Posted May 27, 2008 Share Posted May 27, 2008 person asking how to make a game bot The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now