Jump to content
Macro Express Forums

kevin

Admin
  • Posts

    1,950
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by kevin

  1. At first I modified your macro to include a tab after each menu choice:

    Variable Set to ASCII Char 9 to %T[99]%
    Multiple Choice Menu: Grocery Categories
    
    <VARIABLE SET TO ASCII CHAR Value="9" Destination="%T[99]%"/>
    <MULTIPLE CHOICE MENU Style="\x01" Result="\x01" Dest="%T[2]%" Title="Grocery Categories" Prompt="Choose from Grocery Categories" Options="Dairy/Juice%T[99]%\r\nMeat/Fish/Chicken%T[99]%\r\nPasta/Bread/Grains%T[99]%\r\nFruits%T[99]%\r\nVegetables%T[99]%\r\nCheeses%T[99]%\r\nHousehold Items%T[99]%\r\nVitamins%T[99]%\r\nCat%T[99]%\r\nPersonal Care%T[99]%" Left="Right" Top="Bottom" Monitor="0" Width="265" Height="275" OnTop="FALSE"/>

    But that had the undesired effect of pre-checking all of the check boxes in the Multiple Choice Menu.

     

    Then I tried using another non-displayable ASCII char:

    Variable Set to ASCII Char 1 to %T[99]%
    Multiple Choice Menu: Grocery Categories
    
    <VARIABLE SET TO ASCII CHAR Value="1" Destination="%T[99]%"/>
    <MULTIPLE CHOICE MENU Style="\x01" Result="\x01" Dest="%T[2]%" Title="Grocery Categories" Prompt="Choose from Grocery Categories" Options="Dairy/Juice%T[99]%\r\nMeat/Fish/Chicken%T[99]%\r\nPasta/Bread/Grains%T[99]%\r\nFruits%T[99]%\r\nVegetables%T[99]%\r\nCheeses%T[99]%\r\nHousehold Items%T[99]%\r\nVitamins%T[99]%\r\nCat%T[99]%\r\nPersonal Care%T[99]%" Left="Right" Top="Bottom" Monitor="0" Width="265" Height="275" OnTop="FALSE"/>

    That method shows the spaces between variables.

     

    If, later in your macro, you need Tabs between the choices you can use the Variable Modify String: Replace command, like this:

    Variable Set to ASCII Char 1 to %T[99]%
    Variable Set to ASCII Char 9 to %TAB%
    Multiple Choice Menu: Grocery Categories
    Variable Modify String: Replace "%T[99]%" in %T[2]% with "%TAB%"
    
    <VARIABLE SET TO ASCII CHAR Value="1" Destination="%T[99]%"/>
    <VARIABLE SET TO ASCII CHAR Value="9" Destination="%TAB%"/>
    <MULTIPLE CHOICE MENU Style="\x01" Result="\x01" Dest="%T[2]%" Title="Grocery Categories" Prompt="Choose from Grocery Categories" Options="Dairy/Juice%T[99]%\r\nMeat/Fish/Chicken%T[99]%\r\nPasta/Bread/Grains%T[99]%\r\nFruits%T[99]%\r\nVegetables%T[99]%\r\nCheeses%T[99]%\r\nHousehold Items%T[99]%\r\nVitamins%T[99]%\r\nCat%T[99]%\r\nPersonal Care%T[99]%" Left="Right" Top="Bottom" Monitor="0" Width="265" Height="275" OnTop="FALSE"/>
    <VARIABLE MODIFY STRING Option="\x0F" Destination="%T[2]%" ToReplace="%T[99]%" ReplaceWith="%TAB%" All="TRUE" IgnoreCase="FALSE"/>

  2. 1. From the Macro Editor click Options, Preferences, Scheduler and change the Timer Interval to 'Check every 1 seconds'

     

    2. Create a scheduled macro, named YourSchedMacro for this example, that runs every 10 seconds (as described in previous posts).

     

    3. Create a macro, activated by a hotkey, with this inside:

    If Macro "YourSchedMacro" Enabled
     Macro Disable: YourSchedMacro
    Else
     Macro Enable: YourSchedMacro
    End If

     

    When you press the hotkey to run the macro created in #3 it will toggle the scheduled macro. It will not stop the scheduled macro if it is currently running. In fact, you may have to press the hotkey to toggle more than once. Macro Express will only run one macro at a time and if the scheduled macro is currently running it may not respond to the hotkey to run the toggle macro. (Macro Express Pro does not have this limitation. It will run multiple macros at the same time.)

  3. Macro Express 3.5e is not certified to work on Windows 7. Do this:

     

    Since you installed an incompatible version of Macro Express on your Windows 7 computer, your computer will contain several virtual areas in the registry and on the hard drive. These virtual areas are removed if you uninstall the latest version of Macro Express.

     

    1. Download the latest version of Macro Express from www.macros.com/download.htm and save it to your hard drive.
    2. Uninstall the previous version of Macro Express.
    3. Reboot (to remove parts of Macro Express that may still be running).
    4. Install the latest version of Macro Express (downloaded in step #1 above).
    5. Uninstall the newly installed version of Macro Express. This cleans up the virtual areas created by Windows.
    6. Reboot (again, to remove parts of Macro Express that may still be running).
    7. Reinstall Macro Express

     

    You will need to reenter the license information you received when you purchased a license for Macro Express and the preferences you may have set.

  4. Some programs treat a mouse click differently than a mouse click when the ALT key is held down. When your Alt-z macro sends the mouse click, WordPerfect sees 'Alt Key Down' and 'Mouse Click'. I do not know if this is the case with Word Perfect but it is a possible explanation.

     

    Try to see if Ctl+z acts the same way. Also you could see if using something like F11 works. If that works you might have success if you add a Text Type 'Alt-Up' to your macro before the mouse click command.

  5. I suggest you start with the resources listed on the Macro Express Support page. There are links to tutorials, the help documentation and pages with sample macros. You could also look at the samples.mex file installed along with Macro Express. (If using Windows Vista or Windows 7 it works best if you copy samples.mex from the Macro Express program files folder to your My Documents folder.)

  6. Just to be clear, the Variable Modify Control command changes the control variable, not the Window Control within the other application.

     

    If the application accepts text via Window Controls you can send text to the control use the 'Send Text Directly to Control' option in the Text Type command. With most (all?) applications sending text to a control this way does not set focus to that control. The only way to tell how it is going to work is to try it.

  7. Create a variable to hold the array. When prompted to create the variable choose the number of elements. You may want to use a variable other than 'T' (T[1] .. T[9]), one that has meaning to you. Perhaps something like InputData.

     

    You can create the new variable by typing %InputData% into the 'Variable array to receive result:' field. Then when you click the OK button you will be asked if you want to create it. Click Yes, and then when the Variable Properties dialog comes up, click in the Create as an array and enter the number of Elements.

  8. is there a way to run the macro while i am working on the same desktop without interfering

    Not exactly. Windows only allows input from the keyboard or mouse to one window at a time. But you can create a virtual session and run Macro Express that way. Using some virtual software, it continues to run when the session is minimized.

     

    Most virtualization software clients are free. Check out VMWare, Microsoft's Virtual PC, and Sun's VirtualBox.

  9. To see what your macro is doing, use the built-in debugger. Click Debug, Debug Windows, Variable Values to bring up the Variables window. Then press the F8 key to step through your macro one command at a time. The Variables window will show you what is contained in each of the variables as a result of that step. For more information read the help topic Editor Menu - Debug.

     

    As has been mentioned earlier, Macro Express contains a number of commands that allow you to manipulate the contents of variables. There are very few things that cannot be done using the Variable Set and Variable Modify commands. (With the possible exception of processing large arrays, and that is handled by Macro Express Pro.) The help describes each of the options in these commands.

  10. Would these repeat ends work if i stuck it in the middle of a repeat?

    No. Use the Break command to terminate a repeat loop. Something like this:

    If Variable %N1% <> variable %N2%
     Break
    End If

    how do you set a variable before hand?
    Variable Set Integer %N1% to 10203040

     

    Does "<>" mean not equal to?

    Yes.

     

    What if i wanted it to stop when T1 does not equal T2?

    If Variable %T1% <> variable %T2%
     Break
    End If

×
×
  • Create New...