Sign in to follow this  
Followers 0
Astaroth

Mouse hold down...

3 posts in this topic

Can someone tell me how to make my mouse keep the right button down with hotkey?

I tried with

HotKeySet ("{F6}", "rpress")

HotKeySet ("{F7}", "stop")

$stop = 0

Func rpress()

if $stop = 0 Then

MouseDown ("Right")

EndIf

EndFunc

Func stop()

if $stop = 0 Then

$stop = 1

EndIf

EndFunc

but something was wrong and when the script starts and I press F6 nothing happens :|

Share this post


Link to post
Share on other sites



HotKeySet("{F5}","toggle")

While 1

Sleep(1000)

Wend

Func toggle()

EndFunc

What I would do is use the toggle function to toggle a variable, and in the While loop have it keep holding mouse, or let it go XD


[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

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