KurtKubic Posted April 24, 2014 Report Share Posted April 24, 2014 Hi I want to activate a macro by pressing down left mouse button, wait 1 second and then check if the mouse button is still pressed. Is this possible? Quote Link to comment Share on other sites More sharing options...
Cory Posted April 24, 2014 Report Share Posted April 24, 2014 To my knowledge this can't be done. Quote Link to comment Share on other sites More sharing options...
Samrae Posted April 24, 2014 Report Share Posted April 24, 2014 You can activate a macro by a mouse click and then use the Delay command to wait one second. But I do not think you can check to see if the mouse button is still pressed. Quote Link to comment Share on other sites More sharing options...
rberq Posted April 24, 2014 Report Share Posted April 24, 2014 I don't know any way to do it directly from ME. However, if you can write the C# or VB code, your macro could call a program to check the mouse. Google "detect mouse button state" and you will find a number of examples of simple C# or VB or Javascript code to check it. It sounds like a useful command that Insight could "easily" add to ME -- I suggest you ask them to do so. Won't help you right now, but maybe in the future .... Quote Link to comment Share on other sites More sharing options...
KurtKubic Posted April 25, 2014 Author Report Share Posted April 25, 2014 Thanks for your prompt answers. I will definitely ask the crew to integrate this feature i MI. rberg: I will try to use your methode and will return if I find a work around! Quote Link to comment Share on other sites More sharing options...
terrypin Posted April 29, 2014 Report Share Posted April 29, 2014 Maybe you could do it as follows: 1. Start macro X with a left mouse click. 2. In macro X after a 1 second delay open or activate or focus a unique window W and end X. 3. Activate macro Y with the Window Title option. Proceed to do your required operations in macro Y. --Terry, East Grinstead, UK 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.