Sign in to follow this  
Followers 0
Destruktive

Cant make mouse click!

4 posts in this topic

#1 ·  Posted (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 );Idle

WEnd

Run( "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 ;==>StartMainScript

Func StopMainScript( )

While 1

Sleep( 10000 );Idle

WEnd

EndFunc ;==>StopMainScript

Func Terminate( )

Exit

EndFunc ;==>Terminate

How 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 by Destruktive

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Try play around with the different Opt like MouseClickDelay, MouseClickDownDelay.

To hold down the button use MouseDown() and MouseUp().

Edited by Pain

Share this post


Link to post
Share on other sites

The parameter "{left}" in MouseClick is false, it has to be "left"

Share this post


Link to post
Share on other sites

hmm i see well let me try these options... see what happens.

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  
Followers 0