Destruktive Posted September 28, 2008 Posted September 28, 2008 (edited) Okay guys i was helped and my bot runs perfectly fine but it just missing one command, the mouse wont click on the game and after that it wont down click the mouse to keep holding in the game gas pedal. It does nothing it reads the key board commands nice but i need help on that on the mouse clicking and clicking and holding down until race is over...also i need a script that will make a config. file so i can only change the time variebles.please...here is my script so you can see what am talking about, maybe i have something wrong or something.!I will put in blue what am having trouble on and ill leave the rest normal that works ok.HotKeySet( "{Home}", "StartMainScript")HotKeySet( "{End}", "StopMainScript")HotKeySet( "{ESC}", "Terminate")While 1 Sleep( 10000 );IdleWEndRun( "Nitto 1320 Legends.exe" ) WinActive( "C:\Program Files\Nitto 1320 Legends\NittoLegendsBeta.exe" );Wait for title: "Nitto 1320 Legends"Func StartMainScript( ) While 1 MouseClick( "{left}" , 679, 477 , 1, 10 );MOUSE DOESNT CLICK AT ALL IN WINDOW! Sleep( 500 );Moving car. Send( "{up}" ) Sleep( 1792 );Staging at green & Stoping at perfect. Send( "{down}" ) Sleep( 6000 ) Send( "{up}" ) MouseClick( "{left}" , 679, 477, 1, 10 );I HAVE PROBLEMS HERE MOUSE WONT DOWN CLICK ON ANYTHING! MouseDown( "{left}" );I NEED IT TO DOWN CLICK AND HOLD LEFT MOUSE BUTTON UNTIL RACE IS OVER! Sleep( 6800 ) Send( "{up}" ) Sleep( 6500 ) Sleep( 20000 );idle off ending bot. ;Need a code to release Mousedown left. WEnd;At this point should stop and terminate.EndFunc ;==>StartMainScriptFunc StopMainScript( ) While 1 Sleep( 10000 );Idle WEndEndFunc ;==>StopMainScriptFunc Terminate( ) ExitEndFunc ;==>TerminateHow do i do it so when i run my bot, that the bot reads the game window and refreshes and then it reads the bot????ive seen in a previous bot that it like closes the game window but it doesnt it just flashes and on top it reads the bots name how can i do that too to add in my script???please help...its my first time doing a prog. Edited September 28, 2008 by Destruktive
Pain Posted September 28, 2008 Posted September 28, 2008 (edited) Try play around with the different Opt like MouseClickDelay, MouseClickDownDelay. To hold down the button use MouseDown() and MouseUp(). Edited September 28, 2008 by Pain
bluelamp Posted September 28, 2008 Posted September 28, 2008 The parameter "{left}" in MouseClick is false, it has to be "left"
Destruktive Posted September 29, 2008 Author Posted September 29, 2008 hmm i see well let me try these options... see what happens.
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