Jump to content
Macro Express Forums


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About TwoWheels

  • Rank
  1. 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
  2. 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!
  3. 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
  4. 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:>
  5. 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
  6. 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.
  7. 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
  8. 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...