Jump to content
Macro Express Forums

David Moen

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by David Moen

  1. Is this off-topic? I don't know about this issue.
  2. 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.
  3. 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
  4. 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
  5. Can you fix the disapearing variable in the next version? I use this feature all the time. I have to add a remark to the macro so that I can remember what variable I had used as the email address.
  6. ... 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
  7. 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
  8. I've tried capture control. I've even tried capturing the control and set the a variables from the control class and control text and viewed the text it captured. It appears to recoginize the control, but the mouse click on control command gets ignored. From what little I understand JUCE is a C++ library, High-level API, for creating audio apps that work on Windows, Mac and Linux. I'm not a programmer so that is the best that I understand. David
  9. I've been trying to automate a program was created with JUCE. I've tried the Mouse Click on Control at specific cordinates and it doesn't work. I can move the mouse to the position in relation to the control and then left mouse click and that works. But I need to use the mouse click on control command so that the program does not need to be active. A demo of JUCE is available at http://www.rawmaterialsoftware.com/juce/do...ds/jucedemo.exe This demo has the same problem as the program that I need to automate. Any ideas on making this work or why it doesn't work. Thanks, David Moen
  10. I was thinking it would be useful to have the Get Pixel Color at a specific coordinate in a control. Is this something that can be added?
  11. Thanks that is a good way to get the title bar height. It is too bad there is not a function like "Variable Set Integer to title bar height". That would solve the problem. Thanks again for your help. David Moen
  12. You're right. I had it right in my macro but when I typed it up for the forum I typed it incorrectly. There should be a feature to measure the height of the title bar so that the macros can take that into account. To handle this in the past I've installed a little program that I launch hidden anytime that I need to make sure the title bar size hasn't changed. This program's window size can not be changed. I know the height of the window and title bar and I know the height of the window without the title bar. The macro always checks the window's (with the title bar) height, if on another computer the user changes the title bar size, I have the macro factor in the difference in the title bar size so that the clicks happen in the correct places.
  13. The button I need to click on is in a window that can be resized by the user. When the window is resized the button moves. Although, it does stay in the same place in relation to the bottom right corner. So I figured out how to many pixels from the bottom right corner it is and then I can subtract those numbers from the Width and Height of the control. my macro looks like this: Get Control %C1% Variable Set Interger %N1% from Control %C1% Width Variable Set Interger %N2% from Control %C1% Height //Subtract distance of button from right side Variable Modify Interger: %N1%=%N1%-170 //Subtract distance of button from bottom Variable Modify Interger: %N2%=%N1%-60 //X=%N1% Y=%N2% Mouse Single Left Click on Control %C1% But it doesn't work unless I subtract an additional 25 from %N2% to make up for the height of the title bar. You may notice I was not measuring the width and height of the window, but rather the Control. Therefore, I should not need to subtract the height of the title bar. The following macro works without subtracting 25 from %N2%: Get Control %C1% Variable Set Interger %N1% from Control %C1% Width Variable Set Interger %N2% from Control %C1% Height //Subtract distance of button from right side Variable Modify Interger: %N1%=%N1%-170 //Subtract distance of button from bottom Variable Modify Interger: %N2%=%N1%-60 //X=%N1% Y=%N2% Mouse Move to Control %C1%: %N1%, %N2% Mouse Left Button Click This seems like a bug! I'm doing all of the commands in relation to the Control %C1% and I'm getting different results.
  14. I subtracted the height of the title bar from the Y coordinate and the mouse click on control worked. This presents another problem. Based on the users windows settings the title bar height changes. Thanks, David M.
  15. The Mouse move and click works all the time. Even when the mouse click on control doesn't. I would prefer the mouse click on control command because it doesn't mess up if the user moves the mouse during the macro. Slowing down does not seem to help. The problem occurs mostly when there is a window with a few buttons in it and the buttons can not be captured using the get control method. The window appears to be the only control that can be captured. So I capture the window and move the mouse in relation to the control and mouse click on the button and that works. The mouse click on control at the same coordinates does not. One other time this happened to me was a window that had a place to double click on and it opened an edit box that allowed a value to be altered. Once that edit box was open it became a control that had an index number that changed each time that it was double clicked on. The capture contol using text was not an option because the text was what needed to be changed. This may never work for me but I thought I'd ask. Otherwise, I think macro express is the best thing that has ever happened to Windows!
  16. Yes, I'm using Coordinates that work with the mouse move relative to control. The same coordinates do not work with the Mouse Click on Control command. I've tried this on may occasions and sometimes get the same problem. Maybe I doing something wrong, but I don't thing so. There have been times this has worked but not all the time. Could it be the program I'm trying to automate will not allow it to work?
  17. I don't seem to be able to get the Mouse Click on Control to work with the Advanced - Other X: and Y: Coordinates set. The Center of Control option works. If need to click some place other than the center of the control I use the Mouse Move command relative to the Control and then the Mouse Left Button. Anything I'm doing wrong or is this a bug?
×
×
  • Create New...