Jump to content
Macro Express Forums

paul

Members
  • Content count

    1,043
  • Joined

  • Last visited

Everything posted by paul

  1. Help Me: Macro command in doc

    I have been wondering about this for years!
  2. Waiting for Key Press - more choices

    Here's an idea I wrote about several years ago which may, or may not, be helpful <g>! It's quite complex! It is possible to write a total of 39 macros (one for each character and number, plus 3 control macros) which are fired according to which key has been pressed. Thus, pressing 3 intiates macro-3, pressing h initiates macro-h. It involves writing a total of 39 macros (most of which are almost identical)! See Detecting Keys pressed for details. But this works only in ME4.
  3. I don't understand exactly what you mean. While ME is waiting for you to right-click (in my example) in order to continue on to the next file, are you not able to do any processing or editing of the opened file? Or does ME lock it?
  4. Here's an idea I wrote about several years ago which may, or may not, be helpful <g>! It's quite complex! It is possible to write a total of 39 macros (one for each character and number, plus 3 control macros) which are fired according to which key has been pressed. Thus, pressing 3 intiates macro-3, pressing h initiates macro-h. It involves writing a total of 39 macros (most of which are almost identical)! See Detecting Keys pressed for details. But this works only in ME4.
  5. How about this? Repeat with Folder YourFolderName (Return Files only) Wait for Right Mouse Click End Repeat This returns filenames in alphabetical order (as long as the file system is NTFS - order is random under FAT). In this instance the script waits for a right-click before continuing - you could have it wait for text, or for a window to lose focus, etc.
  6. Sluggish Mouse Move?

    IMHO ISS gave up on ME a long, long time ago. And the company structure doesn't appear to permit professional outcomes.
  7. robocopy not detectable anymore

    I've never seen the Capture Console Output option before - is it a recent development? You're right, if this option is selected then ME does indeed wait for the program to complete.
  8. I've not had any response from either of the email addresses I have for him, so I'm not holding my breath!
  9. robocopy not detectable anymore

    No, the macro continues on immediately without waiting for Robocopy to complete (as it does when running any .exe from within MEP).
  10. Actually, from memory, it's not one password, I seem to remember I wrote some macros to programatically generate a password for each macro. I'll try and look at the code for you so that I can send you the generated passwords. One word of warning: several months ago I needed to rebuild my Raid array of several Tb, so I backed up the Raid array, then set about destroying it, and recreating it with new disks, etc. When I came to populate my new Raid array with the backed up data, I experienced remarkable, sequential and catastrophic hardware failures of 3 of my backup disks, and I therefore lost a heap of data. I suspect the PGM macros were a casualty. So if I can't locate a copy, I'll contact Joe to see if he can help - all of which may take a bit of time!
  11. Sluggish Mouse Move?

    I don't understand why you need to move the mouse at all. You can specify the pixel address using variables, so simply increment or decrement the pixel address and test again. I'd have thought that would be much faster.
  12. robocopy not detectable anymore

    This is how I wait until Robocopy has finished running: Repeat Until %n[1]% Does not Equal "%n[1]%" If Not Program "ROBOCOPY.EXE" is running Repeat Exit End If Delay: 30 seconds, without ability to halt End Repeat
  13. Unless one invokes a macro from the command line and wishes to pass pre-initialized variables, in which case Variable Restore is mandatory.
  14. It sounds as if we might both be married to the same person! How is this possible?
  15. Ah, but are you THE administrator? (I don't know whether this is germane to the issue you raised, but I thought it worth commenting on). In Windows 7 (and, I believe, 8 and 10) there is a hidden account which is THE administrator account. In order to use it you need to make it visible. You can also rename this account, but the process is not straight-forward. In any case, this account is not the same as making yourself an administrator. Also, I'm not sure if this matters, but I am already an administrator for my computer (though it is a work computer).
  16. There are a few errors in your command line and macro! - You need to surround the C:\Program..... with double quotes (") because of the spaces contained in that command (I suspect you're actually doing this already, otherwise your macro would not run). - Your macro needs to display the variable %T[2]% instead of %T2%, since the T variable is an array. - I prefer meproc.exe to macexp.exe.
  17. Call ME in VBA

    Well, in my example, I've not set any. What properties are you referring to?
  18. Call ME in VBA

    Here's an example using AutoIt, for which you need to have an existing macro called TestMacro. I don't know whether it's possible to pass parameters to the target macro - I suspect not. Variable Set String %tMacroName% to "TestMacro" External Script: AutoIt <VARIABLE SET STRING Option="\x00" Destination="%tMacroName%" Value="TestMacro" NoEmbeddedVars="FALSE"/> <EXTERNAL SCRIPT Language="AutoIt" Dest="%t[1]%" Script="$dll = DllOpen(\"user32.dll\")\r\n$hwnd = DllCall($dll, \"hwnd\", \"FindWindowW\", \"wstr\", \"TMainWin\", \"wstr\", \"Macro Express Player\")\r\n$hwnd = $hwnd[0]\r\nFor $i = 1 to StringLen($CmdLine[1])\r\n $Result = DllCall($dll, \"bool\", \"PostMessage\", \"HWnd\", $hwnd, \"uint\", 1044, _\r\n \"wparam\", Asc(StringMid($CmdLine[1], $i, 1)), \"lparam\", 0)\r\nNext\r\n$Result = DllCall($dll, \"bool\", \"PostMessage\", \"HWnd\", $hwnd, \"uint\", 1044, \"wparam\", 0, \"lparam\", 0)\r\nDllClose($dll)\r\n\r\n" Parameters="%tMacroName%"/>
  19. Call ME in VBA

    There's a better way, which I will describe next time if you are interested.
  20. Take a look at True Launch Bar. http://www.truelaunchbar.com/?utm_source=properties&utm_medium=about&utm_campaign=truelaunchbar
  21. How to make Output from External Script

    The AutoIt command you need is ConsoleWrite. Here's a simple example. Variable Set String %T[1]% to ""Input Parameter"" External Script: AutoIt Text Box Display: <VARIABLE SET STRING Option="\x00" Destination="%T[1]%" Value="\"Input Parameter\""/> <EXTERNAL SCRIPT Language="AutoIt" Dest="%T[2]%" Script="ConsoleWrite($CmdLine[1] & \" - suffix added by AutoIt!\")" Parameters="%T[1]%" Encoding="0"/> <TEXT BOX DISPLAY Content="{\\rtf1\\ansi\\ansicpg1252\\deff0\\deflang3081{\\fonttbl{\\f0\\fnil\\fcharset0 Tahoma;}{\\f1\\fnil Tahoma;}}\r\n\\viewkind4\\uc1\\pard\\f0\\fs16 Passed in:\r\n\\par %T[1]%\r\n\\par \r\n\\par Returned:\r\n\\par %T[2]%\\f1 \r\n\\par }\r\n" Left="Center" Top="Center" Width="450" Height="200" Monitor="0" OnTop="FALSE" Keep_Focus="TRUE" Mode="\x00" Delay="0"/>
  22. Variable value from External Script to MEP

    I'm sure you would! Converting a VB6 call to a dll into Vbscript is by no means a trivial operation. I'd be very surprised if you could persuade someone to do this for you gratis.
  23. You're upside down! Instead of removing everything but commas and counting what's left, simply replace the commas with nothing and count the difference in length between the original and new strings!
  24. Text input on a locked workstation

    Schedule it to run when MEP starts - and you'll need to be able to distinguish between normal mode, and the special mode created by your auto log on tool, so that you run your desired macro only in this special mode.
  25. Text input on a locked workstation

    I did outline a solution above - it's up to you to request details if you're interested.
×