computergroove Posted November 6, 2009 Posted November 6, 2009 I am playing GTA San Andreas on the pc and I hate to push the space bar really fast along with the left mouse button to upgrade my strength in the gym so I made a script. #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_outfile=Space and left click very fast.exe #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** Global $Paused HotKeySet("{PAUSE}", "TogglePause") HotKeySet("{HOME}", "Terminate") $Paused = $Paused send("{pause}") While 1 send("{space}") MouseClick("left") wend Func TogglePause() $Paused = NOT $Paused While $Paused sleep(100) ToolTip('Script is "Paused"',0,0) WEnd ToolTip("") EndFunc Func Terminate() Exit 0 EndFunc What happens is that I start the script while I am in the game and the script starts in paused mode and then I get to the point in the game where I want to unleash it and when I do I get a slow space and left click combination. It doesnt make the bar go across the top of the screen when I am trying to do a rep of the bar bells or weights. It makes the bar flicker a small amount from the left like its going to work and then it goes back to the starting position. I have monkeyed around with the sleep command between: send("{space}") MouseClick("left") to look like: send("{space}") Sleep(10) MouseClick("left") Sleep(10) I have also tried Sleep(100) with pretty much the same result. Is there a different way to do this? I already know that I can cheat somehow but I want to know how to do this. Thanks Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html
computergroove Posted November 9, 2009 Author Posted November 9, 2009 bump. Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html
omikron48 Posted November 9, 2009 Posted November 9, 2009 Try altering the SendKeyDownDelay option to a longer value. Opt("SendKeyDownDelay", 50) It may be that the keys are being sent too fast for the game to recognize.
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