David Moen Posted April 7, 2005 Report Share Posted April 7, 2005 I've seen a few requests for a mouse blocking solution on this forum, so I'll share mine. I had a friend write a little program to disable/enable the mouse. I then wrote a few macros to automate the program to be used when needed. To use this in you own macros, unzip the attached file. Create a folder called TNT Mouse Disabler at C:\Program Files\TNT Mouse Disabler and put the TNTMouseDisabler.exe file in the folder. Import the macros from the Mouse.mex macro file into you macro file. In the macros that you wish to block the mouse from working, add the Log Errors command (check Use Default Log and Do not display error messages), then add the command Macro Run: Mouse Disable at the point you want the mouse to be blocked and add the command Macro Run: Mouse Enable at the point you want the mouse to be unblocked. If the macro gets aborted while the mouse is disabled the Errors will get logged and no message will appear, then the Mouse Enable After Abort macro will run automatically and re-enable the mouse and display a message that the macro was aborted and the mouse was re-enabled. The message also gives the user the option to view the error log. I hope this is useful to some of you. I use it all the time and it works very well. David Moen MouseDisable.ZIP Quote Link to comment Share on other sites More sharing options...
David Moen Posted April 7, 2005 Author Report Share Posted April 7, 2005 ... One thing you might want to add to the Mouse Disable and Mouse Enable macros is a Variable Save at the top and a Variable Restore and the bottom of these macros so that it doesn't mess with the variables in your macros. David Moen Quote Link to comment Share on other sites More sharing options...
randallc Posted April 7, 2005 Report Share Posted April 7, 2005 Hi, David, It looks great,; I will be interested to try it. Thanks, Randall Quote Link to comment Share on other sites More sharing options...
Strathos Posted October 24, 2006 Report Share Posted October 24, 2006 Just the program I was looking for! Thanks for sharing! Quote Link to comment Share on other sites More sharing options...
Tornalis Posted December 31, 2008 Report Share Posted December 31, 2008 This definitely what I'm looking for, except it's a shame the tntmousedisabler.exe has a dialog window instead of a simple command switch, aka... (tntmousedisabler -on / tntmousedisabler -off) or something...anyone know of an application or script that might work like that instead? Has there been any progress on integrating this functionality into ME directly? Any tips or suggestions would be much appreciated. Thanks, Tory Quote Link to comment Share on other sites More sharing options...
David Moen Posted December 31, 2008 Author Report Share Posted December 31, 2008 Has there been any progress on integrating this functionality into ME directly? I believe this function has been added into the new Pro version. I haven't tried it yet, I write macros for a living and I've been on vacation since before the Pro version came out. I'll probable give it a try after I get back to work in the new year. David Quote Link to comment Share on other sites More sharing options...
Tornalis Posted December 31, 2008 Report Share Posted December 31, 2008 Okay, thanks for the update David. Have a happy new year's eve. Quote Link to comment Share on other sites More sharing options...
rberq Posted November 18, 2009 Report Share Posted November 18, 2009 David - Any chance of getting hold of the source code for TntMouseDisabler.exe ???? It works great, but I would like to modify it as Tory suggested, so it could run with a command switch rather than a dialog window. Quote Link to comment Share on other sites More sharing options...
David Moen Posted November 18, 2009 Author Report Share Posted November 18, 2009 I did not write this. A former co-worker/friend of mine wrote is for me. He did give me the source code. I think it was written in Delphi, many versions ago. If you write a command line version please share it! Thanks. TntMouseDisabler_source.zip Quote Link to comment Share on other sites More sharing options...
rberq Posted November 18, 2009 Report Share Posted November 18, 2009 I'm afraid I won't be much help. I know nothing of Delphi. I tried to do it today as my first-ever project with AutoIt. It should be a one-line AutoIt script: BlockInput(1) or BlockInput(0) to lock / unlock both the mouse and keyboard. But it's not working for me. I must be doing something wrong. I suppose I should just give in and install ME Pro, since we just upped our licenses to 100. But we're in the middle of rolling out a couple projects developed with ME3, and that's not a good time to rock the boat. Quote Link to comment Share on other sites More sharing options...
David Moen Posted November 19, 2009 Author Report Share Posted November 19, 2009 I must say this solution has a couple of advantages over the one built into ME Pro. It blocks only the mouse, which may be a disadvantage for some. The biggest advantage is that the mouse blocking can be terminated with out terminating the macro that is running. I've done this many times on macros that are stuck waiting on something like a window or a control and some other window came to the front. Using the keyboard commands and/or terminating the mouse blocking allows me to correct the problem and let the macro finish. The ME Pro solution would kill the running macro to regain control of the mouse and keyboard. ME Pro would have been better if they allow you to block only the mouse in this case. Quote Link to comment Share on other sites More sharing options...
David Moen Posted November 23, 2009 Author Report Share Posted November 23, 2009 Hello. Im just inquiring if the mouse problem that effect MTW and STW when using an 8 or 9 series nVIDIA GeForce card has been solved yet? Thanks. Is this off-topic? I don't know about this issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.