Jump to content
Macro Express Forums

jason

Members
  • Posts

    287
  • Joined

  • Last visited

Everything posted by jason

  1. Macro Express monitors the standard Windows keyboard and mouse hooks. Many games however, use DirectX which bypass the Windows hooks. If this is the case, a macro program will not work.
  2. OK, I think we may be having a disconnect. You can assign a hotkey to the "2" on the keypad, provided that NumLock is turned on. If NumLock is turned off, the down arrow on the "2" is indistinguishable from the standard down arrow. The above is due to how Windows works. If the NumLock is on, the keypad keys send keycodes that are different than the keycodes on the left-side of the keyboard. If the NumLock is off, the virtual keycodes match the keycodes sent by the normal keys (i.e. arrows, home, page up, etc). Also to note, with NumLock turned off, the "5" on the keypad has no keycode, and as such, no macro can be assigned to it. So, in short, make sure that your NumLock is on and you should be ok.
  3. Unfortunately, no. Windows treats the keys as the same key when the NumLock is off.
  4. Generally, if there is a way to do it manually, it can be done with Macro Express. Some chat software have special characters to create a line break such as Cntrl+Enter. You will need to check the help file for your chat software to see if this is available. Another option is to determine the width of the chat window. By doing this, you can add the necessary spaces at the end of the line to move to the next line. The last option is to design the art with your name in mind.
  5. If you are trying to run a macro that will run on more than one computer, and the colors are different, you could try the Variable Set From Miscellaneous/Set Variable T1 to "Name of Machine" Set Variable %T1% to "Name of Machine" If Variable %T1% = "Computer A" //Enter pixel and coordinate information for computer A End If If Variable %T1% = "Computer B" //Enter pixel and coordinate information for computer B End If
  6. No. The Wait For Pixel Color command will wait for the pixel color to change. If you place the Mouse Click command after this command, Macro Express will not issue the mouse click command until after the pixel color has changed.
  7. You could use the Get Pixel Color command and then compare it to what you are looking for. This could be entered into a loop until the desired color appears at that location.
  8. Depending on your download agent program, you may be able to use the Wait For File Ready command to wait for the download to complete.
  9. Here is what I had to do to get it to work. Control Key Down Delay 3 Milliseconds Text Type: f Control Key Up Wait For Window Title: "find" Text Type: for :<ENTER> Alt Key Down Text Type: <F4> Alt Key Up Delay 1 Seconds Text Type: <TAB> Delay 3 Milliseconds Text Type: <ENTER> The code presses the Control+F and then waits for the Window Title "Find". It then types for: and presses <Enter> to locate the first instance of the string "for:". The command to press Alt+F4 is given to close the Find Window. From here I press <Tab> to enter a text field, but you can press <Enter> or use a Mouse Move to Cursor command as well. You may need to add delays between the Control Key commands and the text type commands (e.g. Alt Key Down, Delay 3 miliseconds, Text Type: f...).
  10. It is not possible to hold the key down for a specified amount of time, but you could have Macro Express press the key repeatedly for a specified amount of time. I was able to do it with the code below. Variable Set Integer %N1% from Current Second If Variable %N1% >= 30 Variable Modify Integer: %N2% = %N1% - 30 End If If Variable %N1% < 30 Variable Modify Integer: %N2% = %N1% + 30 End If Repeat Until %N2% = %N1% Variable Set Integer %N1% from Current Second Text Type: %N1% (%N2%) Delay 5 Milliseconds Repeat End I had to add a 5 millisecond delay to prevent the keyboard buffer from overflowing. Depending on your system, you may or may not need this delay. When holding down a key, Windows actually presses the key repeatedly as well.
  11. Try placing delays between the TEXTTYPE:<SHIFT><TAB> commands. It's possible that the macro is tripping over itself there because of the speed. You can also try using the Keystroke Speed command to slow it down.
  12. It's most likely a timing issue. Can you post the macros so we can take a look at them?
  13. You could try using the Wait For Control command using the wait for control to lose focus option. If that does not work, you could try using the method you suggested with a small delay after the Wait for Text command. This would allow the barcode entry to complete before the macro continued on.
  14. Unfortunately there is not a way to bring the computer out of hibernation with a macro. This is because no software is running when the computer is in hibernation. The computer is brought out of hibernation through the use of hardware.
  15. You can try setting up a timed macro that will press the F5 button every four minutes. You can also set it up to stop after a certain amount of time so that your bank information is not exposed while unattended for long periods of time.
  16. There are two things to watch out for when using the Wait for Web Page command. -It works with Internet Explorer 4 and higher. -Internet Explorer sometmes reports that a site is loaded before it has completly loaded. It is possible to leave the url blank in the Wait For Web Page command. This can remedy the problem in some instances.
  17. You could try pressing Control+F to search for text found before the button. You could then press the tab key to highlight the button and then press enter. This can all be done using the the Text Type command. Searching for a text hyperlink can be done the same way. You could search on http, or the nickname used in place of the url, and then have it press enter to load the new site.
  18. If you just need to type out the contents of the variable, is should look something like this below. N01 (7);C=C%N7%;FAC=7 N01 (6);C=C%N6%;FAC=6 N01 (5);C=C%N5%';FAC=5 N01 (4);C=C%N4%';FAC=4 N01 (3);C=C%N3%;FAC=3 N01 (2);C=C%N2%;FAC=2 N01 (1);C=C%N1%;FAC=1
  19. The option to lock the keyboard and mouse are not currently available, but we are looking at the option and are planning to add it in a future release.
  20. There is an option under Option 2 of the Set Integer Variable that will allow you to set a variable based on the day of the week. You could use this command to check the day of the week and then modify the variable controlling the name of your file accordingly. Each day is assigned an integer value: Sunday = 1, Monday = 2 and so on.
  21. Actually lemming, that information is incorrect. When you set up a variable in a parent macro, that same value is used in all submacros. And, any changes you make in the submacro are propagated to the parent macro. What you're suggesting is a way to make sure that the variables are not modified when you call the submacro. And, in this way, it's not a weakness. jevans, I took a look at your macro and it's not quite set up the way you described in your message. It looks like you have two "Macro Run" commands inside of your loop. Also, there was no "Variable Set Decimal" command in the parent macro. That means that it exists in one of the two child macros and as such, is going to be reset each time that macro is called. In your post, the suggested setup would work perfectly, as long as you don't reset the %D1% variable in your submacros.
  22. The Control+Alt+Shift+Y hotkey is the Resume Pause hotkey, meaning if the macro is paused, you can press this hotkey to resume the macro after it has been paused. This is designed to be used in conjuction with the pause message that can be posted with a macro in the Scripting and Direct Editors. It can also be used to resume Macro Express after the global pause command has been issued by pressing Win+`(This hotkey can be changed by clicking on Options|Preferences and selecting Playback).
  23. Things like this sometimes happen after upgrading software. It is possible that the macro speed needs to be adjusted as the new version of FrameMaker may take more system resources causing it to respond more slowly than the older version. If you have not already done so, you should try stepping through the macro using the debug tools to see exactly where it gets hung up. This will tell you where you will need to make changes in your macro.
  24. The pause command will halt Macro Express from sending commands to Windows, but any commands that have already been sent to Windows will be executed.
  25. Your only option short of shutting down the program or changing the hotkey, is to suspend Macro Express. This can be done by right clicking on the System Tray icon and selecting Suspend Macro Express. To start Macro Express back up, right click on the system tray icon and select Resume Macro Express. The hotkey for this action is Cntrl+Alt+Shift+U
×
×
  • Create New...