Jump to content
Macro Express Forums

kevin

Admin
  • Posts

    1,950
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by kevin

  1. If you can predict what the title of the control will be, or if you can get the window title, you may be able to use the Variable Set Control command to change the text Control: Variable Set Control Text %C1% to "SOR - debit: AfxFrameOrView58s" // or Variable Set Control Text %C1% to "SOR - credit: AfxFrameOrView58s" Have you tried to get the Window title using the "Variable Set String %T1% from Window Title" command? It may be able to get the name of a docked Window if that window has focus. For some macros I have used several Get Control commands to get several different controls (C1, C2, C3, etc.) and then used several "If Control" macro commands to determine which control is active. And finally, you may have some success with the "Capture Control" command. If you can calculate specific coordinates you can use the 'Beneath Mouse' or 'Specific Coordinates' options. Or, you may be able to use the 'Control Focused' to get the control that currently has focus.
  2. By default, shortkey macros require the prefix activation sequence of ##. So, for the exx shortkey you created you will probably need to type ##exx. The activation for shortkey macros is very flexible. Check the ShortKeys preference settings by clicking Options, Preferences, ShortKeys.
  3. You could use the Launch and Activate command to run a program, including Internet Explorer. Put 'Internet Explorer' in the Window Title field and put iexplore.exe in the Program Path/Name. You may need to put a check in the 'Bypass File Existence Check'. The Launch and Activate command will also run a shortcut. For example, this may work if you have a shortcut on your desktop to launch IE: c:\Documents and Settings\Default User\Start Menu\Programs\Internet Explorer.lnk The Launch and Activate command will run programs (.exe), shortcuts (.lnk), batch files (.bat) or any other file with a registered file extension. For example, if you put the path to a .doc file, then the Launch and Activate command will launch WordPad (or, if installed, MS Word) and the specified .doc file will be loaded. You could launch a program from the shortcut on the desktop by sending keystrokes or mouse movements to the desktop itself. For example, you may do a TextType 'I' followed by the Enter key to launch IE. Or you might move the mouse pointer to a specific screen location and then click the left button. However, these techniques may not work reliably if you move your shortcut icons around or if you add another shortcut that starts with I. It is much more reliable to simply launch a program using the Launch and Activate command.
  4. Cyberchief, Have you looked into the 'Date Math' functions that are part of the PGM Functions Library? See www.macros.com/products.htm and www.pgmacros.com/pgm_functions.htm.
  5. Macro Express uses yor Windows time settings to determine how to display the times. If you are using a 12 hour clock then AM/PM should be displayed. On the other hand, if you are using a 24 hour clock then AM/PM will not be displayed but you should be able to enter times such as 14:36. Make sure you are using the current version of Macro Express. Some previous versions of Macro Express had a problem with scheduled macros and the 24 hour clock. Download the latest version of Macro Express from www.macros.com/download.htm
  6. Use the Date/Time command. The command allows you to specify a number of days into the past or future. You can also choose the format that the date will be created in. Date/Time: Save "dddd, MMMM dd, yyyy" into %T1%
  7. The only way the PIL message is generated is if someone has entered a fraudulent license code into the program. Macro Express comes with a 30-day trial license. In some cases, when asked, we can provide a license that extends the trial period. No, that does not work. The only way to clear the PIL message is to purchase a license or reformat your hard drive.
  8. kevin

    License

    Iceman, We at Insight Software Solutions recommend that Macro Express be installed when logged on as an administrator. There are some things that the installer does that Windows normally does not allow non administrator users to do. One example of this is the file associations of the extensions .mex and .mxe. Another, as you pointed out, has to do with the Macro Express license. If a non administrator user enters the license, Macro Express will be licensed for that user login only. If a user with administrator priviledges enters the license, Macro Express will be licensed for all user logins for that machine. During setup you can use the /M= option without the /S option. What this will do is change the default values in the setup dialogs to the values specified in the setup file. As a test I created two files: setup.bat and setup.txt Setup.bat contains: macex.exe /m=setup.txt Setup.txt contains: LICENSENAME=<my license name> LICENSECODE=xxxx-xxxx-xxxx-xxxx NOICONS=Y When I run setup.bat, the Macro Express license contained in the setup.txt file is installed. You could add NOEDITOR=Y to the setup.txt as well.
  9. There is another issue that we recently discovered. When preferences that were saved previously are loaded into Macro Express, the version number is not updated until you run a macro. Before the next macro runs, the version reported is the version number of Macro Express that was used to export the preferences. This issue will be fixed with the next release of Macro Express. You can import the preferences in a variety of ways such as: - Click Tools and Import Program Configuration - Use the /IC option on the command line - Use the ConfigFilePath Advanced Silent Install option - Use the DEFPREFS.MCF file If you are not importing the preferences, then the technique Joe describes will work fine. The Set Variable %T1% to "Preferences Registry Key" command used in Joes Example is part of the "Variable Set From Misc" macro command. This was added with v 3.5 of Macro Express. Let us know if some of your users have an earlier version of Macro Express and we'll post a macro that you can use to determine where in the registry the preferences are stored.
  10. Cyberchief, This feature is not currently in Macro Express. You can, however, put the commands you want to hide into another macro (select No Activation when creating this macro) and replace those lines with a 'Macro Run' command.
  11. Maurice, Welcome to the forum. Enter '&Email' and '&Test' as the choices. These will be displayed with an underlined E and T respectively. If you are using the 'Save Item Text' option be sure to modify your macro to look for '&Email' and '&Test' instead of 'Email' and 'Test'
  12. The error message says: Could not save file "C:\My Documents\macex.mex" because of the following error: Invalid filename. This tells me that the end user does not have permission to write to macex.mex or to the c:\My Documents folder. It is possible the the user's My Documents folder is not on the c: drive. But, this sounds like a Network problem, not a problem with Macro Express. I cannot recommend manually copying some of the Macro Express files. You may try it and see if it works. But the only way I can ensure that things will work reliably for you is if you use the installer to install Macro Express. The issues you are experiencing would more appropriately be handled by our technical support people. The forum is meant for users to help one another. We do not recommend that you post crash reports to the forum. You can have the ISS Bug Reporter send the crash information to us automatically or you can submit crash information via the web page at www.macros.com/bugreport.htm. I have copied this crash report into our tracking system and removed it from the discussion forum.
  13. Hi Joe, Do any of the other macros work? We have recently had some reports of the macro file becoming corrupted. What we have heard is that all of the macros get corrupted and some request passwords where no password has been previously assigned. We recommend that you turn on the backup option found in Options, Preferences, Backups.
  14. I just meant that a dialog opens up and you click places to get to the file you want to open. Macro Express will remember the last file that was opened. So if you open a macro file, the next time Macro Express runs, it will open the same file. If the preferences have been lost, then the path to the macro file will be gone and have to be reestablished. Just open the file to do that. You could, of course, restore each user's preferences and that would restore the path to the macro file.
  15. One improvement to Randall's idea would be to make sure that the 10th digit was not a number.
  16. Renee, I am not familiar with a message that says "Can't find Macro Express". There is a message that says that the macro file cannot be found. Could that be the message? By default, the Macro Express program files are installed in the folder c:\Program Files\Macro Express3. Also by default Macro Express looks for the macro file in the c:\My Documents folder. The c:\My Documents folder is unique for every user. From your description I suspect that the preferences were not ported to the new server. If that is the case, then each user could find the macro file by browsing to the correct location when Macro Express comes up. I hope this helps.
  17. Hi Cyberchief, A quick google search for "Rumba macro" turned up several hits. Rumba has built in macro support. I wonder if Rumba macros would give you access to specific fields on the screen. You may even be able to use Macro Express and one or more Rumba macros together to accomplish what you need.
  18. Well this may be a little late. (I've been off for a few days of Spring Break.) The way I would do this is to write the macros that change frequently and then put them into an external macro text file. Then, inside the macros themselves, I would put the Load Macro Text File macro command. Once this is done, then all you have to do is replace the external .txt files that contain the macros. These files can be located anywhere on your network or local drives. To create the external macros use the Load Macro Text File macro command. You may still want to write an 'updater' macro to copy the macro text files.
  19. Floyd and Terryb, Use the Mouse Single Left Click on Control macro command to do mouse clicks on a control that does not have focus. Use the Text Type macro command with the Send Text to Control to send keystrokes to a control that does not have focus. But, these commands only work for applications that support the Windows Controls. Some applications do not so this technique does not work in all cases.
  20. This seems to be a continuation of an earlier post but I do not remember the earlier one. I probably read it but have not made the connection yet. So, please forgive me if I am misunderstanding something. Macro Express will only play one macro at a time. But, when a macro is running you may still move the mouse and press keys, including HotKeys. This can, at times, mess up your macros. There have been some posts to this forum discussing an external program that you can use to lock and unlock the keyboard. You would use this by calling it at the beginning and end of a macro. I have not, however, tried this. If you need to enter a password to log into Windows when it starts up, you could use the Logoff macro command to return to the Windows login screen. This, however, will stop any running macros. If you are using Windows XP, 2000 or NT you could use the Lock Workstation macro command. If you use the Logoff or Lock Workstation commands, you will not be able to log back in using a macro. You will have to enter the login credentials manually.
  21. The best way to request a feature is to enter it into our 'Request a Feature' web page. This is accessible from by visiting www.macros.com/support.htm and clicking Request a Feature, by visiting www.macros.com/bugreport.htm or by clicking Options, Configure Bug Reporter, and then clicking on the 'Request a Feature' link. In the meantime, you can accomplish the same thing using existing macro commands. Try something like this: Get Control %C1% (Inbox - Microsoft Outlook: SUPERGRID) Variable Set Integer %N1% from Control %C1% Left Variable Set Integer %N2% from Control %C1% Top Variable Modify Integer: %N1% = %N1% + 14 Variable Modify Integer: %N2% = %N2% + 103 Get Pixel: Screen Coords: %N1%,%N2% into %N1%
  22. You may want to try the Window controls. There is a discussion about them in the help. If something on the screen changes color and if that something is in a predictable place, you may be able to use the Get Pixel Color command.
  23. What happens is Macro Express can pump information out faster than Notepad can accept it. Notepad starts skipping keys. To make the Text Type function more reliable, you may want to consider adjusting the "Use Text Type delay" option in Options, Preferences, Delays. I have this value set to 10 microseconds. I have not tried this with several thousand lines however. Another technique I have used is to put a slight delay every time an <ENTER> is typed. Sometimes you have to slow a macro down to match the capabilities of the program you are automating. Better slow than unreliable.
  24. I have not heard of any glitches with the disable macro logic. To exclude Saturday and Sunday from the days that the macro runs, put this at the top of your macro: // Get the day of week (Sun through Sat) Date/Time: Save "ddd" into %T1% If Variable %T1% contains "Sat" OR If Variable %T1% contains "Sun" Macro Return End If Using this technique the macro will start but do nothing on Saturday and Sunday. Note: For those who do not have Windows configured for English, you will need to change "Sat" and "Sun" to reflect the language you use.
  25. Mikeufs: Please send the crash report to Insight Software Solutions. You can either use the ISS Bug Reporter to do this or visit the web page www.macros.com/bugreport.htm. The ISS Bug Reporter comes up automatically whenever a crash occurs. The crash information is stored in files that begin with the word Error. If you do not want to recreate the crash you can find the crash information in one of these files. To find where the files containing crash information are stored, click Options, Preferences and File Paths. The folder where the error files are stored is shown in the 'Crash Report Path' box.
×
×
  • Create New...