Jump to content
Macro Express Forums

Samrae

Members
  • Content Count

    407
  • Joined

  • Last visited

  • Days Won

    20

Everything posted by Samrae

  1. This is what I do: 1. Open the macro to debug in the Scripting Editor. 2. Click Debug, Debug Windows, Variable Values to display the Variables window. 3. Highlight the line in the macro where you want to test. 4. Press Ctrl+B to set a breakpoint 5. Click the run button (green arrow) The macro will run up to the breakpoint. Note the values in the variables in the Variables window. 6. Press the F8 button to step on macro line at a time. Watch the variables change in the Variables window. I hope this helps.
  2. Just to see if it helps would you try running Macro Express as administrator?
  3. You can tell the Text Type command to send an <ENTER> by either putting in the <ENTER> tag or by pressing the Enter key on your keyboard. In this example: Line #1<ENTER> Line #2 Line #3<ENTER>Line #4<ENTER> Two Enters will be typed between Line #1 and Line #2. One because of the <ENTER> and the other because of the non-visible Enter. There will be one line between Line #2 and Line #3 and between Line #3 and Line #4.
  4. I find <ALT> often does not work, specifically with Office programs. I generally use <ALTD> and <ALTU> instead. Have you tried Text Type (Simulate Keystrokes): <ALTD><ALTU> Outlook may even want a small delay in between: Text Type (Simulate Keystrokes): <ALTD> Delay: 0.05 seconds Text Type (Simulate Keystrokes): <ALTU> or this Keystroke Speed: 30 milliseconds Text Type (Simulate Keystrokes): <ALTD><ALTU> Keystroke Speed: 0 milliseconds
  5. You may have read that backwards. Some programs do not allow Macro Express Pro to see mouse events from it or send mouse events to it. Windows calls these events messages. So, program XX does not let Macro Express Pro see messages generated from inside program XX. And it ignores messages Macro Express Pro sends messages to program XX. This starts to occur when the mouse is over program XX or when program XX is active/focused.
  6. What you are seeing is normal. When Macro Express Pro is running with standard user permissions Windows does not allow mouse events (clicks and moves) from programs running with elevated permissions (admin). The Mouse Locator also stops working inside Task Manager. To resolve this close the Mouse Locator and Macro Express, run Macro Express Pro as Administrator and click to run Mouse Locator again. Further, programs can be written to prevent mouse events from other programs (such as Macro Express Pro) regardless of there permissions levels. The information I received said that to determine
  7. Terry, have you tried it while running Macro Express Pro as Admin?
  8. Here are some ideas I had: 1. See if using <ALTD> and <ALTU> instead of <ALT> works better. 2. Try slowing down the typing a bit. Maybe Acrobat or your computer are responding a little slowly. Keystroke Speed: 1000 milliseconds Text Type (Simulate Keystrokes): <ALTD>v<ALTU>ma Keystroke Speed: 1 milliseconds (If this helps then adjust the 1000 milliseconds to something more reasonable that still works.) 3. To determine whether or not a macro is being activated you can, as rberg suggested, put a Text Box Display as the first line in the macro. Another idea
  9. By the way, you should upgrade from v 3.5c to the latest version. At the time of this writing the latest version is v 3.10b. There have been hundreds of bug fixes, enhancements and security patches since v 3.5c. Your Macro Express 3 license will work with the latest version. The Revision History contains a complete list of changes.
  10. There are several ways to save variable values for use in other macros. You can save to and restore from Environment variables, the Registry, an INI File and Text Files. You may also use the Variable Save and Variable Restore commands. There is an example of saving a value between macros in the samples.mex sample macro file. This file should have been installed on your computer when you installed Macro Express. It may be in the c:\Program Files (x86)\Macro Express3 folder or it may be in your documents folder. Or you can download a copy from http://www.macros.com/samplemacros3.htm. (Do not
  11. Rather than adding a Keystroke Speed command at the top of each macro you may want to adjust the Text Type Delay found in the Preferences under Delays. If these don't work you could add a Delay command at the top of each macro. What malware/anti-virus do you use? A few months ago Windows Defender was causing delays activating macros. Your symptoms are do not exactly match what you are describing but it Windows Defender (or other Internet Security software) can affect how macros work.
  12. Macro Express Pro allows you to type Unicode characters using the Alt-Key Sequence. Does that help?
  13. That message is a generic syntax error message displayed whenever Macro Express Pro does not recognize the input value as valid. It simply means you entered something invalid. If you intended to enter a variable then it is making suggestions about how to enter a variable. The Mouse Speed command only accepts a whole integer value.
  14. Not with Macro Express 3. Perhaps with Macro Express Pro.
  15. Use of variables is key to powerful macros. The variables T1 through T99 are string variables. The Repeat with Folder command will put the name of a file in T1 each time it loops. It will loop once for each file in the specified folder. If you have questions, try it.
  16. Something like this may work. Repeat with Folder If File Ready "%T1%" Move File or Files: "%T1%" End If Repeat End
  17. If File Ready Copy File or Files: AFile.avi End If If you show us how your macro moves files we can be more specific.
  18. I'm not exactly sure what your macro logic is doing but it looks like the topmost repeat does not exit when you find one of the two active windows. Could it be that the Activate Window command is working but your macro does not stop? I would write this a little differently. Here is your macro with some commands rearranged and the GoTo commands removed. (Lines with <-- are new): Variable Set String %StopNow% to "FALSE" // <-- Repeat Start (Repeat %nb_de_comptes% times) // Clic. Mouse Move: %N[1]%, %N[2]% Relative to Screen Mouse Left Click // Si demande pour rejoindre co
  19. Okay, thanks. I guess everyone has different techniques to write macros. You and Cory are correct, there are some commands that do not prompt to create a variable. However, I have found that it is rare (never?) that I use a variable in a macro without having used at lease one of the macro commands that does prompt to create a variable. But, here is an idea that may help ikodan. It is a solution to only half of the problem but maybe the second part can be accomplished via a macro to define variables in a macro. When you export a macro as a Playable macro it is saved to a file with
  20. Check out the "If File Ready" and "Wait for File Ready" commands. These commands determine if an application has finished writing to a file.
  21. Are you trying to copy the variable definitions or the contents of the variables? I never worry about copying the variable definitions. They are automatically created by prompts when I use a variable in a command.
  22. My first thought would be to put the names of the macros in a string array variable and then create an integer array variable of the same size with random numbers in it. Loop from the beginning to the end of the integer array and grab the integer value and use it as an index into the string array. This doesn't do everything you specify but it may get you started and you could adjust as needed. Variable Set Integer %ArrayElements% to 40 Variable Set String %MacroArray% to "" Variable Set String %MacroArray[1]% to "MacroName1" Variable Set String %MacroArray[2]% to "MacroName2" Variable
  23. Others can better help you if you post your macro in a form that can be copied (as you did) and in a form that can be read, like this: // Accepte l'invitation. Variable Set Integer %N[1]% to %bleu_invitation% Repeat Until %N[1]% Does not Equal "%bleu_invitation%" Mouse Move: %pos_accepter_invitation[1]%, %pos_accepter_invitation[2]% Relative to Screen Mouse Left Click Text Box Display: d├ębug : Delay: 500 seconds Mouse Move: 0, 0 Relative to Screen Delay: 500 milliseconds Get Pixel Color at (%pos_inte_invitation[1]%, %pos_inte_invitation[2]%) Relative to Screen into %N[1
×
×
  • Create New...