Jump to content
Macro Express Forums

kevin

Admin
  • Posts

    1,950
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by kevin

  1. When you use the Get Control command the Window Control information is stored inside the command. When you use the Capture Control command the Window Control information is only available as that macro runs. Some applications change the Window Control information for their components each time the program runs. For these applications you must use the Capture Control command. Saving and restoring the Window Control information would not help because the Window Control information changes. For those applications where the Window Control information does not change you should use the Get Control command. Since the Window Control information is saved in the macro as part of the command, there is no need to save and restore these variables. I should note that for some programs the Window Control information varies if the application is running on Windows XP versus Windows 98. The way I deal with this is to create separate Capture Control and If OS Version commands for each version of Windows.
  2. Here is another idea. Create the macro file that contains the scheduled macro that runs every minute or so. Create a macro that runs when Macro Express starts up. Inside that macro check to see which computer is running and enable or disable the 1 minute macro as needed.
  3. Now that I think about it a little more I don't thing the Set Variable %T1% to "Registered Owner" command will change based on the logged on user. This will contain the name of the Registered Owner regardless of which user is logged on. With Windows XP you can do Variable Set String %T1% "%USERNAME%" to get the name of the user that is logged on. This doesn't work for Windows 98, however.
  4. Yes. If you disable the macro for some users it will be disabled for all users. See my reply to your other post for an idea.
  5. Have you looked into the Variable Set from Misc command? You could use Set Variable %T1% to "Name of Machine" to determine which machine is running. Or, you could use Set Variable %T1% to "Registered Owner" to determine which user is logged in. Your macros could adjust themselves based on the machine or user.
  6. kevin

    Schedule

    From the Macro Express Knowledgebase When Macro Express is running my screen saver never gets activated:
  7. Make sure you put a checkmark in the 'Place Counter in Variable' checkbox in the Repeat Start command. And, I forgot to mention this part, make sure you select variable N1 to receive the count.
  8. Have you tried to set the Macro Priority to speed up the macros? To try this, download tweakme3.mxe from www.macros.com/downmore.htm and save it on your hard drive. Then either double-click on it or import it into your existing macro file. When you run it, choose a value of -1. This will turn off the Macro Priority feature giving full priority to macros.
  9. This will work if you have 'Fast User Switching' enabled in Windows XP. Another thing to consider would be to create a separate macro that performs the 'monitoring' function you desire. Then in the main macro put Macro Run commands to 'call' the monitoring macro at strategic locations. This wouldn't cause too much clutter. You could even set a variable at the top of the main macro and check that variable within the called macro to turn off the monitoring.
  10. You could use Text Box Display command to display the count. Something like this: Repeat Start (Repeat 100 times) Text Box Close: Count is Text Box Display: Count is %N1% // Put your macro commands here Repeat End Updating the Text Box will slow down your other macro commands. This may not matter but if it does you might want to update the display of the count less frequently. This example updates the display of the counter every 10th time through the loop. Repeat Start (Repeat 100 times) Variable Modify Integer: %N2% = %N1% / 10 If Variable %N2% > variable %N3% Text Box Close: Count is Text Box Display: Count is %N1% End If Variable Modify Integer: Copy %N2% to %N3% // Put your macro commands here Repeat End Make sure you put a checkmark in the 'Place Counter in Variable' checkbox in the Repeat Start command.
  11. Does If Clipboard Contains work?
  12. Maybe something like this would work: Repeat Prompt Start (Prompt for repeat count at macro play time) If Window Title "Request" is running Macro Stop End If Activate Window: "Session A" Text Type: vi Delay 0.5 Seconds Repeat End
  13. You could use the Variable commands to create the filename and put it in %T1%. Then put %T1% in the Clipboard Save Graphic macro command.
  14. The following information is from the Macro Express Knowledgebase. For more information see Optimizing Macro Express CPU Utilization.
  15. Yes, a Text File Process can be within another one. But, as you point out, you need to be careful with the variables. The variables used in the inner loop will overwrite the variables in the outer loop if they are the same.
  16. What you need is a Clipboard Manager. Macro Express does not perform these functions natively but it will automate the interaction with one. Here are a couple: http://www.x2net.com/smartboard/ http://www.clipmate.com/ I know the authors of both smartboard and clipmate. A quick Google turned up 1.8 million pages containing 'Clipboard Manager'.
  17. It may be that the game is taking so many CPU cycles that the macros run slower. You might try adjusting the Macro Priority. The first step is to download tweakme3.mxe from www.macros.com/downmore.htm. Save it somewhere on your hard drive and double click on it. For the first test you might want to turn the Macro Priority feature off by entering a -1. If that helps macros run faster in the game then you can leave it. You may find that other programs run too slowly with the Macro Priority turned off. If this is the case you may want to experiment with different settings. Perhaps set the macro priority to 10,000 or 50,000. If turning of the Macro Priority feature does not help macros running in your game, then we recommend that you set it back to the default value of 1000.
  18. Can you copy the Hyperterminal screen to the clipboard and then look at the result?
  19. I just captured a macro with Firefox loaded, moved the mouse over every button, and it worked fine. There must be a difference. I am using Firefox v 1.0.7 and I only have a couple of extensions. What version of Firefox are you using? What extensions are you using? Which buttons cause the trouble?
  20. Here is your macro in the Scripting language. Comments are mine: Text Type: <SHIFTD><END><SHIFTU> // highlight the text in a field Clipboard Copy // Copy it to the clipboard Variable Set String %T1% from Clipboard // Put the content of the clipboard into variable T1 Replace ": " with " " in %T1% // Replace ': ' with ' ' in T1 Clipboard Paste // Paste the content of the clipboard to the field After the second to last macro command runs you have what you want in T1. You could check this by adding a Text Box Display to display the content of T1. The problem with the macro comes in the last line. You paste the content of the clipboard into the field. The clipboard has never been altered. It contains the original content of the field that was copied to the clipboard. Try this: Text Type: <SHIFTD><END><SHIFTU> Clipboard Copy Variable Set String %T1% from Clipboard Replace ": " with " " in %T1% Text Type: %T1% or this: Text Type: <SHIFTD><END><SHIFTU> Clipboard Copy Variable Set String %T1% from Clipboard Replace ": " with " " in %T1% Variable Modify String: Save %T1% to Clipboard Clipboard Paste You should also look at the replacement text. It looks like you are replacing : but not ':|b' and '|c'. To replace two strings you will need to 'Replace' commands.
  21. Installing programs should be very easy. To install a program you just need to execute the installation program. Use the Program Launch macro command. Uninstalling a program is a little more difficult. If you know the pathname of the uninstaller program, you should be able to run it using the Program Launch macro command. However some programs put their uninstaller programs in less obvious places. When you manually remove a program, you use the Add/Remove Control Panel applet. You could write a macro to automate the keystrokes and mouse clicks you would take to run the uninstaller. The information listed in the Add/Remove Control Panel applet is stored in the registry. You may have some success having your macro search through the registry. But, this could be dangerous. An error in your macro could damage your registry. In severe cases a damaged registry could make your computer unbootable.
  22. My mistake. It turns out that there is not a command in v 2.0e to break out of a Repeat loop. It has been several years since I have written a macro in Macro Express 2000 and I got confused. You can use the Repeat Until command to break out of a Repeat loop. Your macro would look something like this: Clipboard Copy Window Activate: "Notepad" Variable Set String T99 to Repeat Until T99 = END Delay 20 Milliseconds Text Type: <SHIFT><END> Clipboard Copy Variable Set String T1 from clipboard Variable Set Integer N1 from length of variable T1 If Variable N1 > 0 Variable Set String T99 to END End If Repeat End Window Activate: "Document1" Clipboard Paste But this code will not work. It is likely to get stuck in an infinite loop if there isn't anything in the clipboard. Something like this would make sure you don't get stuck in a loop: Clipboard Copy Window Activeate: "Notepad" Variable Set String T99 to Variable Set Integer N50 to 1 Repeat Until T99 = END Delay 20 Milliseconds Text Type: <SHIFT><END> Clipboard Copy Variable Set String T1 from clipboard Variable Set Integer N1 from length of variable T1 If Variable N1 > 0 Variable Set String T99 to END End If Variable Modify Integer: N50 = N50 + 1 If Variable N50 > 50 Variable Set String T99 to END End If Repeat End Window Activate: "Document1" Clipboard Paste I cannot guarantee that this macro will do what you want but it won't lock up. I don't think this will work properly: Text Type: <SHIFT><END> What you need is something like this: Text Type: <SHIFTD><END><SHIFTU> Macro Express 3.x can do this but I don't know if Macro Express 2.x can.
  23. Use the Repeat End instead of Repeat Exit in Macro Express v 2.0e.
  24. Renee, A couple of years ago I tested one of the Speech Recognition programs with Macro Express and found that the non-pro version did not allow any macros to run, including Macro Express macros. Macros would run in other programs but not from within the Speech Recognition program. Our research indicated that the program seemed to intentionally disable the keyboard and mouse hooks. We have not retested this nor have we tried other programs. I understand the Windows has some speech recognition capabilities built-in. Has anyone tried this?
×
×
  • Create New...