Jump to content
Macro Express Forums


  • Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Samrae

  1. This may get you started. This assumes the number in the field is highlighted. Clipboard Copy Variable Set Integer %Value%: Set to the Clipboard Value Variable Modify Integer: %Result% = %Value% - 1 <CLIPBOARD COPY/> <VARIABLE SET INTEGER Option="\x0C" Destination="%Value%"/> <VARIABLE MODIFY INTEGER Option="\x01" Destination="%Result%" Value1="%Value%" Value2="1"/>
  2. You might want to look at the "Date Time Math" macro in the samples.mex macro file.
  3. The Alt-Key Sequence feature of the Text Type command allows Unicode characters to be typed. The Type Special Characters macro in the samples.mex macro file contains a sample macro.
  4. The "Run Macro" command runs another macro in a macro file. If you want to run a macro in a variable use the "Run Macro in Variable" command. The "Run Macro in Variable" command can be a bit tricky. There is a sample macro that demonstrates its use: Date String to DateTime Variable
  5. Try "Variable Modify String %StrVar%: Convert to Integer (%IntVar%)"
  6. If you choose the 'Floating box until "Close Box" or end of macro' option in Text Box Display you can use the 'Update Textbox' comand later in your macro. To see how this works check out the "Show Macro Progress" macro in the samples.mex macro file.
  7. Neither did I before this. Google is your friend. ?
  8. Pressing Ctrl+G or F5 in Excel brings up a dialog box to go to a cell. You can create a macro to type what is needed. Something like this: Text Type: <CONTROL>g Wait For Window Title: "Go To" Text Type: C4<ENTER>
  9. Yes, create a new key. Use DWORD in the registry value and use a Decimal Macro Express variable. This means you did not enter a variable name. Enter the name of a Macro Express variable. Be sure to create a Decimal variable. A Macro Express "Global" variable is only global to a single macro thread. In other words, to a specific macro and any macros launched by that macro via the Macro Run command. A variable set or changed in a secondary macro will not affect a variable in the primary macro, even if the variable name is the same. As suggested previously, to do what you want you will need to create a secondary macro that modifies and stores the value in an external location such as a file or the registry. The primary macro will need to read the value from the external location.
  10. I am comfortable with the registry. It may be a bit more efficient than file I/O. But, as rberq said, it doesn't really matter where you store it. What have you tried? How did it work out? Uh, put a "Write Registry Value" command in your second macro.
  11. Yes, you can initiate another macro while the first one is running. The idea is to have your main macro read a value from the registry and adjust the playback speed. Something like this: Read Registry Value "HKEY_CURRENT_USER\Software\Insight Software Solutions\Macro Express 4\$Temp\MacSpeed" into %MacSpeed% Macro Playback Speed: %MacSpeed% // Do something Delay: 0.5 seconds Read Registry Value "HKEY_CURRENT_USER\Software\Insight Software Solutions\Macro Express 4\$Temp\MacSpeed" into %MacSpeed% Macro Playback Speed: %MacSpeed% // Do something else Delay: 0.25 seconds
  12. Try this: Variable Set From Misc: "Installation Path" into %Path% Variable Set String %Path% to "%Path%\macedit.exe" Program Launch: "%Path%" (Normal) <VARIABLE SET FROM MISC Destination="%Path%" Value="Installation Path"/> <VARIABLE SET STRING Option="\x00" Destination="%Path%" Value="%Path%\\macedit.exe" NoEmbeddedVars="FALSE"/> <PROGRAM LAUNCH Path="%Path%" Mode="\x00" Default_Path="TRUE" Wait="1" Get_Console="FALSE"/>
  13. When I press the Ctrl+Alt+Shift+W shortcut the Macro Express Pro Explorer window comes up in about 1 second. It is so quick it is hard to measure. I currently have 23 macro files open with over 2080 macros (many are disabled). My computer is not new, around 9 years old, running Windows 7. Norton Internet Security is running and presumably scans all 23 macro files when the Macro Express Pro Explorer loads them.
  14. The Macro Express Pro Explorer can be launched by typing Ctrl+Alt+Shift+W. You can change the hotkey. Open the Macro Express Pro Explorer Click on System Macros in the Categories column Double click on "Run Macro Express Editor" Click the Change button
  15. The toolbar settings are stored in the registry. In previous versions of Macro Express Pro the toolbar settings were located here: HKCU\Software\Insight Software Solutions\Macro Express 4\Toolbars\Editor However in later versions of Macro Express Pro the toolbar settings are located here: HKCU\Software\Insight Software Solutions\Macro Express 4\$Temp\Toolbars Other temporary values stored in the $Temp are the window sizes and positions (...\$Temp\Windows), things you have searched for in the Script Editor or Macro Explorer (...\$Temp\Search History), settings relating to the grids found in various dialogs, and the last path used when browsing for files from different dialogs (...\$Temp\Paths). To restore Toolbars to their default positions right-click on the M icon in the Notification Area, click Tools, and then click Restore Toolbars. Similarly clicking M, Tools, and Restore Window Positions will reset the size and positions of a bunch of dialog windows. Whenever I do this I first close all the visible parts of Macro Express (Script Editor, Menu Builder, and Macro Explorer). But, if I recall correctly the default location for the toolbars looks like the image you shared where the Save and Close toolbar is on a different line than the Test Run toolbar. It seems to me that after resetting the toolbars I always have to drag the Test Run toolbar up next to the other toolbars.
  16. Do you have any macros with multiple activations? If a macro has more than one activation, a hotkey and a shortkey for example, then the activation is displayed as "Multiple". To find the macro I would disable half of the macros and see if the we- still activates the macro. Repeat until the macro no longer runs. Enable macros until the activation starts to activate the macro. To see if another macro tool is running you can terminate or suspend Macro Express. To suspend Macro Express click the M icon in the Notification Area and then Suspend Macro Express.
  17. A clue to the answer is in acantor's answer. TextType <CONTROL><ESC> works like Control Key Down, ESC, Control Key Up. This can also be written like this: TextType <CTRLD><ESC><CTRLU> If you use <WIN> in a TestType command it affects the next keystroke. For example, use TextType <WIN>e to bring up File Explorer. This can also be written like this: TextType <WIND>e<WINU>. So, as garlicnonions & Stan said, to bring up the Start Menu To just press and release the Windows key: TextType: <WIND><WINU> All modifier keys work this way in Macro Express and Macro Express Pro. Any of these affect the next keystroke: <ALT>, <CTRL>, <SHIFT> and <WIN>.
  18. That makes it appear that there is another macro in one of your macro files with that activation. These are normal. MacExp.exe is the macro player. MacExit.exe is the macro explorer. MEProx64.exe provides an interface between the 32-bit player (macexp.exe) and 64-bit programs that are running. If you had multiple copies of Macro Express running you would see more than one copy of MacExp.exe in task manager. If you have more than one macro file loaded try closing all but one of your macro files.
  19. You might also want to try clearing the Macro Recycle bin.
  20. You could put the commands to run the PowerShell script into a batch file and run it from Macro Express Pro using the Program Launch command. A quick Google search turned up this example of how to run a PowerShell script in a batch file: Powershell.exe -executionpolicy remotesigned -File C:\Users\SE\Desktop\ps.ps1
  21. You might try running Macro Express as Administrator.
  22. When you define an array variable you need to specify the number of elements. Sometimes that is tricky if you aren't sure how many you will need. I usually just guess high. So, for your array variable that needs 0-107 elements I would specify 150 or 200 elements. Sometimes I use the Get Array Length command in my macros to check to display a warning if the array size is too small. That prompts me to edit the macro and increase the size of the array. To access elements in the array use something like %ArrayVar[1]%, %ArrayVar[99]%, etc. You can also use another variable to access the array. %ArrayVar[%Idx%]%. Also note that array variables start with 1, not 0. %ArrayVar[1]% is okay but %ArrayVar[0]% is not.
  23. Try the Wait for File to be Ready command. If Folder Exists: "\\SCANSERVERHOST\PPLImageDepot\Processing Temp" Repeat with Folder C:\Scans // PLow thru the folder Clear Variables Variable Set From File path // Get teh file extension Variable Set From File: Set to the Size of a File (C:\Scans\%File%) If File Exists: "C:\Scans\%File%" If Variable %Size% Is Greater Than "0" Wait for File to be Ready: C:\Scans\%File% Copy File/Files: "C:\Scans\%File%" to "c:\Scans Sav" Move File/Files: "C:\Scans\%File%" to "\\SCANSERVERHOST\PPLImageDepot\Processing Temp\%File%" On Error Catch Error: File could not be located Macro Stop End Catch Error End Error End If End If End Repeat End If
  24. Some thoughts: Windows programs have the ability to define their own mouse cursors. If the program has it's own arrow mouse icon then the If Mouse Cursor: Arrow will not work. Maybe you can use the if Mouse Cursor: change command instead. If one program is running with elevated privileges (as admin) then Macro Express cannot interact with it. See if running Macro Express as Administrator helps.
  25. Make sure you are using a Windows server on AWS. Also, be sure that the applications running on AWS are not sandboxed. Macro Express needs to see all other applications that are running in order to interact with them. Sandboxing isolates each application from the others. And lastly, as I mentioned in response to your other post, be sure that there is not a setting or feature that prevents the processing of keystrokes when the AWS server does not have focus. My minimal knowledge of Amazon AWS comes from reading information online and not from working experience. I may not be able to help any further. Perhaps another forum member has more experience with AWS and could provide further advice.
  • Create New...