Jump to content
Macro Express Forums

stan

Members
  • Posts

    278
  • Joined

  • Last visited

Posts posted by stan

  1. Cory,

     

    Do you have an example macro(s) of the Variable Save and Restore commands not working in the current version? We'll look at it and see if there is something else we're missing.

     

    I created a simple macro that generates several different variable types and then does a Variable Save. The second macro restores the variables and displays them in a text box. It has worked the dozen or so times I tried.

  2. Terry,

     

    I think you are misunderstanding how these command works. When you use the Variable Save command, the values for the variables are saved in virtual memory on your computer. Once you close Macro Express or shut down Windows, the values are lost.

     

    The variables are not automatically created in another macro when using the Variable Restore command. The values are available for use, grabbing the values from memory.

     

    These command work the same way in Macro Express 3. If you save variable T1, then just select variable T1 in the second macro. The only difference in the Pro version is with named variables. If you restore a named variable from macro 1, you will need to define it first in order to use it in the second macro.

     

    Hopefully this helps.

  3. If you can Tab to the check box, another option may be to use the browser's Find function (depending on how the page is written). Find some unique text located right before the check box. Then Tab once to the check box. You can quickly test this manually to see if it will work on the site before writing a macro to do it. Pressing the Space Bar once typically checks or un-checks the box.

  4. My guess is that you are running another program that is conflicting with Macro Express. The other program is blocking the Windows keyboard hooks.

     

    Try closing other applications running on the computer. Test Macro Express after closing each program. I would start with small utilities that run in the background. See if you can determine what program is causing the problem.

     

    If this doesn't help, contact support at info@wintools.com.

  5. Excel does add extra characters when copying a cell to the clipboard. Most likely this is what you are seeing in your test.

     

    Copy a cell to the clipboard and save to a text string variable. Then use the Variable Modify String - Trim command. Save the variable to a text file - Variable Modify String - Save to Text File. Open in the Hex Editor and the 0D0As should be gone.

     

    Do the same thing without the Trim and you will see the 0D0As.

  6. When Vista originally was released, this command did not work. We made a change to fix this in a subsequent release of Macro Express. It looks like something has changed in Vista again that breaks this. We'll take a look at this and add a fix in the next release.

     

    For now, here is a low tech solution that will toggle the sound on or off.

     

     

    Move Mouse to Tray Icon: "Volume"

    Mouse Left Button Click

    Delay 250 Milliseconds

    Text Type: <ALT>m<ESC>

  7. Here is how I wrote the macro. It has worked every time I tried it. You may want to bump the milliseconds to 500 or more. With a larger number you should be able to see the mouse move to the first location and then to the second.

     

    Activate Window: "notepad"
    Wait For Window Title: "notepad"
    Mouse Speed: 250 Milliseconds
    Mouse Move Window 40, 705
    Mouse Left Button Down
     Mouse Move Window 10, 510
    Mouse Left Button Up

  8. Have you restarted Macro Express or rebooted your computer? Most likely this will take care of the problem.

     

    If not, close Macro Express - Editor and Player. Open My Computer to the folder where you installed Macro Express. Locate the macdef.exe file and double click on it. This runs a small utility to reset the program back to all of its default settings. Restart Macro Express and the problem should be gone.

     

    You will need to open Options | Preferences from the Macro Express - Explorer window and change back any settings you use that differ from the defaults.

  9. Yes, you should stick to the same thread.

     

    You are pasting from the clipboard. You need to play back the text of the variable. If the number sequence is saved to variable T1, then you need to enter %T1% in the Text Type command rather than <CTRLD>v<CTRLU>.

  10. I haven't looked at John's example, but here is how I would approach this.

     

     

    Variable Set String %T1% from Clipboard

    Variable Set Integer %N1% from Position of Text in Variable %T1% - Look for the position of the "-" in the text.

    Variable Modify Integer: %N2% = %N1% - 4 - Subtract 4 to find the last character before the number string.

    Variable Modify String: Delete Part of %T1% - Delete the text up to the number string - %N2% characters

    Variable Modify String: Copy Part of %T1% to %T2% - After deleting the string, copy the next 19 characters, the numbers plus dashes to variable T2.

     

    This will work if your text does not contain any other dashes before your number string. If it does, then you would need to put some logic in place to handle it.

  11. Use the Variable Set String command and save the clipboard contents to a text string variable. Then use the Replace Substring option in the Variable Modify String command.

     

    Variable Set String %T1% from Clipboard

    Replace "-" with "" in %T1%

     

    Replace the dash with nothing.

     

    This will change a string such as 123-7-7 to 12377. I assume that is what you are looking for.

  12. Below are the steps you need to take. Set the ASCII Values for Carriage Returns (13) and Lines Feeds (10) to text string variables. Consolidate the two into one variable with 13 followed by 10. Use the Replace Substring option to replace the consolidated variable (carriage return/line feed) with a space.

     

    Variable Set %T1% to ASCII Char of 13

    Variable Set %T2% to ASCII Char of 10

    Variable Modify String: Append %T2% to %T1%

    Replace "%T1%" with " " in %T10%

×
×
  • Create New...