Jump to content
Macro Express Forums

TwoWheels

Members
  • Posts

    9
  • Joined

  • Last visited

TwoWheels's Achievements

Newbie

Newbie (1/14)

  • Conversation Starter Rare
  • One Month Later Rare
  • One Year In Rare
  • Week One Done Rare

Recent Badges

0

Reputation

  1. Longtime user of Macro Express. Currently using Macro Express Pro 6, version 6.4.0.1, the latest. My SmartGit crashes after having been up for a while. Reporting this bug to Syntevo produced this analysis by their developer: According to the dump, the only piece of 3rd party code in SmartGit is: C:\Program Files (x86)\Macro Express Pro 6\mexhookx64.dll They recently fixed a "crash in the Menu Builder" https://www.macros.com/revisionhistory6/ This sounds super suspicious, as you might understand, now that we're looking for 3rd party code that destroys SmartGit's menu. I don't need Macro Express to run any macros involving SmartGit. Is there a way to prevent Macro Express from planting its hooks in smartgit.exe? I verified using SysInternals' Process Explorer that when Macro Express is NOT running and I start SmartGit, there is no MexHookx64.dll in the running process. When Macro Express IS running and I start SmartGit, I do see MexHookx64.dll in the running process. How do I know that? Process Explorer can show all the DLLs in a running process in the Lower Pane View. I'm sure your developers are very familiar with Process Explorer. I need Macro Express to keep its hooks out of the SmartGit.exe program. How can I control that? Thanks! Rich
  2. Some time back I submitted a Feature Request (ISS3199) for more variables. I find that 100 of each type is not nearly enough. I received an email on 5/2/2006 indicating that this issue had been resolved, and "The change will be available with the next release of Macro Express.". Yet I have seen no mention of it in the Revision History. You guys do Very Nice Work by the way. I have been using Macro Express for a couple years, I like it a lot and depend on it a lot. Has this feature been released? Thanks, Rich
  3. For what it's worth, the Boost libraries contain a well-known implementation of Regular Expressions. It's the implementation written by Dr. John Maddock. I've used this in C++ programs, and it has worked fine. You can go to www.boost.org to download the entire Boost system. The Boost licensing allows the software to be used in commercial applications without fees or royalties. Best thing about Boost is that it is peer-reviewed and is likely very stable and reliable. Regular expression code is by no means simple!
  4. I would like to see Regular Expression search and replace functionality in Macro Express. I don't log on very often, but I'm trolling the Forum tonight to see if this has been mentioned. Kevin / Joe / Floyd, has there been a Feature Request for this? Thanks, Rich
  5. vikingjames, I've had good success in capturing text from a window by highlighting with the arrow keys, then copying to the clipboard. You said you don't want to use CTRL-C. Are you able to use the Windows clipboard? That's the only way I know of to acquire the data. Here's what I do. Assuming you know your cursor is somewhere in the line and you want to capture the next 1 character, try this: Shift Key Down Text Type: <ARROW RIGHT> Shift Key Up Clipboard Copy If you wanted to capture a whole word, you'd add in the CTRL key, like this: Control Key Down Shift Key Down Text Type: <ARROW RIGHT> Shift Key Up Control Key Up Clipboard Copy The above examples are hand-typed. Here are the equivalent cut-n-pasted representations right from the Macro Express scripting editor. You might be able to cut-n-paste from here to your ME scripting editor. <SHIFTD><TEXTTYPE:<ARROW RIGHT>><SHIFTU><CLIPC> <CTRLD><SHIFTD><TEXTTYPE:<ARROW RIGHT>><SHIFTU><CTRLU><CLIPC> So far what we have are ways to collect some text and get it into the clipboard. To get it out of the clipboard into a text variable, do this: Variable Set String %T1% from Clipboard Here's the cut-n-paste representation: <TVAR2:01:03:>
  6. Kevin, Thank you so much! It does indeed work. I made that one change to the source code posted earlier, and it worked perfectly. Now that the macro activation is successful, does this Windows API technique also allow for passing command line parameters? I have been passing data in to my macros by writing it to an ASCII file and reading the file from MacroExpress, but that's probably lots slower than passing parameters. I really, really like Macro Express. Rich
  7. KFOR777, Here's a workaround for the lack of Window-relative coordinates. Use the "Mouse Move Window" command, passing it the Window-relative coords of your control. Then issue the "Capture Control" command, using its "Beneath Mouse" option. I found this works fine.
  8. jowensii, The approach you're using is basically what I'm trying to get away from. In C++, I'm currently spawning the meproc.exe program. The Windows API approach should be a fair amount faster. I've written a stock market trading program, and shaving a quarter second off my execution time is quite important to me. Rich
  9. I've followed the steps outlined in the Help topic "Macro Activation" and the macro I'm trying to run doesn't run. C++ code below. I am trying to invoke a macro whose nickname is "zquickly". Has anybody actually done this? Thanks, Rich #include <windows.h> #include <stdio.h> int main() { HWND handle = FindWindow(NULL, "Macro Express Player"); if(handle == NULL) { printf("FindWindow returned NULL handle.\n"); exit(0); } // Invoke the desired macro by sending Windows messages. // Evidently we're transmitting a NULL terminated string // to the player program, character-by-character. UINT nicknameConstant = WM_APP + 20; char *macroname = "zquickly"; for(int pm = 0; pm < strlen(macroname); pm++) { PostMessage(handle, nicknameConstant, macroname[pm], 0); } PostMessage(handle, nicknameConstant, 0, 0); return 0; }
×
×
  • Create New...