Sign in to follow this  
Followers 0
DW1

disable mouse

8 posts in this topic

without using the trapmouse function is there a way to disable the mouse from user input?

Share this post


Link to post
Share on other sites



The script I wrote click a button that it finds dynamicaly through a UDF I wrote. Everything works fine as long as you do not move the mouse right after you click the button in the script GUI. I already have the speed set to 0 (instant) for the mouse click, but still, if you move the mouse fast enough it will fuck up.

Share this post


Link to post
Share on other sites

I just want to disable user input to the mouse, do about a quarter second worth the stuff and then give control back.

Share this post


Link to post
Share on other sites

Check out BlockInput in the help files. I think that will do what you want. Of course it also shuts out the keyboard. But it does not sound like that will be a big deal in this case.

Share this post


Link to post
Share on other sites

When you use blockinput(1), start it, do your mouseclick, then use blockinput(0). That way the user won't see much disruption, and you can make the app more stable. Did you look into doing a controlclick on the control you are working with? It may be a better approach to your issue.

Share this post


Link to post
Share on other sites

I have used controlclick for most of the mousing that needs to be done, but this program that I use internaly at work is really weird and doesn't play nice with control commands

The BlockInput worked fine for what I needed though

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