Astaroth Posted March 26, 2008 Share Posted March 26, 2008 Can someone tell me how to make my mouse keep the right button down with hotkey?I tried withHotKeySet ("{F6}", "rpress")HotKeySet ("{F7}", "stop")$stop = 0Func rpress() if $stop = 0 Then MouseDown ("Right") EndIfEndFuncFunc stop() if $stop = 0 Then $stop = 1 EndIfEndFuncbut something was wrong and when the script starts and I press F6 nothing happens :| Link to comment Share on other sites More sharing options...
Achilles Posted March 26, 2008 Share Posted March 26, 2008 Add a While 1 Sleep(200) WEnd in there somewhere... Your script is starting and exiting faster then you can press F6. My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
Vindicator209 Posted March 26, 2008 Share Posted March 26, 2008 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] 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