Jump to content
Macro Express Forums

joe

Members
  • Posts

    1,002
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by joe

  1. The macros inside the PGM Functions Library are in fact written using generic out-of-the-box Macro Express commands by design. We figured this to be important for those who were interested in the source code. A little history: When working with clients over the years, we found ourselves repeating certain program structures and decided to put them in separate functions and use the Macro Run command like a subroutine call in VB or VFP. Then we just figured that other users and developers are probably experiencing what we did and so decided to package them and place them in the market. And it all actually began with Macro Express 2000.
  2. Welcome to the group Halipender! I just ran a macro test on a Win'98 workstation and had no trouble with the Mouse Left Button Down and Mouse Left button Up commands to highlight text. However, I did find that there are things I can do under Win'XP that cannot be done under Win'98. Without involving Macro Express, i.e. just doing it manually, holding the left mouse button down and then hitting the down arrow key does nothing under Win'98, but it highlights text under Win'XP.
  3. Welcome to the group Pete! I understand your problem. I use Microsoft Photo Editor in a manner similar to what you described for Photoshop Elements. Unfortunatley, there is no direct way to resize and reposition sub-windows. It would appear that both of these are written so that external programs cannot access the sub-windows as top-level windows. With Microsoft Photo Editor I can capture the sub-windows using the Macro Express Window Controls commands and can even get the current position and size of each. But there is nothing that allows me to resize or reposition a window that is not a top-level window. Maybe it will take a combination of using Window Controls and the built-in menu features of Photoshop Elements to create a solution. In other words, using Macro Express, set focus to the target sub-window and then use the menu choices of Photoshop Elements to manipulate it.
  4. Hello t.s. lim! The Macro Express scheduler is what it is. Personally I think it meets most requirements and for those that it does not, there are thing you can do. For example, back in December 2004 Nicolas and Icebox gave you a couple of suggestions to try, which involved generating a controlled temporary file that holds the last date and time of your "cleanup" routines. Did you try them?
  5. Hello! Not all controls that seem like controls can be captured. It strictly depends on how the application was written and what the designers had in mind. In your application you indicate that you can capture the three daughter windows as individual controls? Or are you referring to the container window itself? Test if each of the daughter windows can actually be captured as a control. Capture each one to a separate control variable and see if you can set focus to them individually. The Modify Top-Level Title of Control command is used in those situations where a certain control can be found in more than one window. You capture the control one time in one of the windows, and then use the command to change which window it is "in" as needed.
  6. Welcome to the group Rex! I do not believe it is possible to do what you want. The mouse click is passed through to the underlying application and is not gobbled up by Macro Express.
  7. Just a quick note or two about the Clipboard Start/End Copy construct: The only command allowed between the Start and End is Text Type. No mnemonics (<Enter>, <Tab>, etc) are allowed. Enter them directly using the keyboard.
  8. Hello wad3v3r! I think what the comedians here are asking is for more information on what you are attempting to do. The more information you can provide the easier it will be to help.
  9. Hello Nevada! As far as I know, there is not a way to change either the Remark color or the Macro Return and Stop colors. ... black background, eh? Boy, that brings back fond memories.
  10. Welcome to the group Grark! Keyboard tabbing is your only solution at this point. However, Paul and I are currently working on a solution that can be added to the PGM Functions Library. It will provide the user with information on what can be clicked on, table data, and so forth. In other words, screen scraping and data mining via Macro Express will be a reality as soon as we have it completed. Unfortunately we do not anticipate having something to release for a few weeks yet. We might be able to have something ready earlier, but it would be only for IE.
  11. Good question - This forum was submitted a while back, however, as Google states on their site: I will resubmit it.
  12. Welcome to the group XCore Not knowing what macro you created, or what it was supposed to do, makes it impossible to diagnose a problem. As Randall stated, it could be a timing issue. But it could be other things outside the control of Macro Express as well. The group will be here if you ever decide to try Macro Express again. Good luck to you.
  13. You should be able to use the "File Attachments" field for any type of file. This is just below the text box where you merrily type your posts.
  14. Hello Derfel and welcome to the group! The passwords make no difference. You can delete and import password protected macros without being prompted for the passwords if you are doing the deleting and importing from a macro. In other words, if you attempt to delete a macro from the Macro Explorer window manually, you will be prompted for the password. On the other hand, if you use the Macro Delete command you will not be. There are two ways to import macros: from external, playable (.mxe) macros and from another macro (.mex) library. Randall is correct that importing needs to be done from another macro library. The reason, of course, is that the imported macros will retain their passwords. This is not so with playable macro files. After all, a playable macro is just a text file. It contains none of the activation, security protection, icons, scheduling info, or notes attached to it if it were inside a macro library. The task you have at hand does not seem to be at all difficult. I know that Paul created macros that regenerates the PGM Functions Library when we need it to. But that is a little different. In your situation, you need two server-based macro libraries, the one you normally work with for development and the other to hold macros that have changed and need to be deployed across the network. If you are using macro categories then you will want to keep the same internal structure in both libraries, and also the ones on the network. I would also suggest an "update" folder hierarchy on the server. There would be folder names underneath; one for each workstation on the network. Within each of these will be dummy file names of those macros in the deployment library. Why? Well, since you want this done automatically, the macro libraries spread across your network will need to check "something" to determine if any of it's macros need replaced. A run-on-launch macro will process it's own folder within the hierarchy to determine if there are any files and if so, use those names to match those in the deployment library. Once the task is finished the run-on-launch macro will delete the files. This has the additional benefit of targeting specific workstations. The run-on-launch macro should be easy. Remember that you can treat the Macro Explorer window like any other application. In other words, you can use a macro to perform tasks just like any other program.
  15. Yes, that is correct. And keep in mind that if you are not using an absolute path (like c:\folder\temp\*.*) then all action will take place in the current working folder.
  16. Hello Morgan! What you are experiencing is normal. When choosing a file using the Windows-based file-picker dialog, the dialog is expecting you to just pick a file. If, on the other hand, you type a file mask in the field name, it assumes that you want to see only files that match that particular pattern. If, for example, you were to enter "*.doc" then the dialog will only display files with the ".doc" extension for you to pick. It works this way in other applications too, like Excel and Word.
  17. Welcome to the group dpnok! I am not aware of anything built-in to Macro Express directly, but you may be able to create a macro that can check for new mail. For Outlook Express, as an example, you would want to launch it, then Text Type Ctrl+I to go to the inbox and then Ctrl+U to go to the next unread message. If an error window pops up, there are no new messages. A little kludgy, but it should work. Others in the group who have worked with email clients may have better answers. Which mail client do you use?
  18. Welcome to the group Wulfgar! Another option that should work is the Wait for Web Page command, even if the URL does not change. This command waits until IE reports that it is done "working". Leave the URL field blank.
  19. Okay, we know that the macros worked fine the previous day. So if they are not working the next day, and if they have not changed, then something else has happened on your computer and the macros themselves are fine. Did you check to make sure that a macro is not already running when you attempt to fire another one? Did another program "take over" your keyboard and mouse hooks? Some programs do not play nice with these things. Try resetting the hooks. Right-click on the Macro Express icon in your system tray and choose "Tools | Restore Keyboard and Mouse Hooks".
  20. Cyberchief - I don't think that using Get Control inside the Repeat loop actually does anything. In other words, Get Control only needs to capture a control one time. Putting it in a loop would be like continually setting a variable to the same value every time the loop repeats. Is the Get Control Using Text checkbox checked in the Get Control command? If so, then this may be part of the problem because Macro Express will not be able to find it until it says "Done". Can you email a PrntScrn of one of five of the program windows? Do not post it. Just email it to me joe@pgmacros.com. It might help to envision what you are looking at for this, and some of your other posts. Also, you can change the window title of a control. In other words, you can change which window title a control belongs to. It means that you would only need to Get Control once in your macro. Look into the Modify Top-Level Window Title of Control option.
  21. Welcome to the group Jodie! Did the macro work in your browser prior to this morning, or is this the first time you have attempted it? What does the macro do? Which browser? What is the HotKey?
  22. Thanks to Bernhard Frisch something new has come to light ... at least for me. The boolean operators (OR, AND, XOR) work not only for the If/End If construct, but also for Wait commands. For example: Wait Right Mouse Click OR Wait for Key Press: ENTER My understanding is that they will work for any Wait command, however, I have not tried all of them. Many thanks Bernhard!!
  23. Hello cyberchief! There are a couple ways of doing this. Kevin's suggestion that you look into using Window Controls is perhaps the easiest way to capture text in a field. You had mentioned that your work is done by not using a browser, so you must be running a local executable of some sort that accesses the database. This gives you a fair shot, but it depends on how the program you are running is written. Another way is to capture and paste the data in the window to the clipboard and use the Macro Express string commands to find what you need.
  24. Hello! Here is my two cents: Let's say for example that, after using the Name of Current Macro option, T1 is set to "MyPlayable.mxe". You can remove ".mxe" from the string using a single call to the Replace Substring command: Replace ".mex" with "" in %T1% <TMVAR2:21:01:00:001:000:.mex> Make sure the Ignore Case checkbox is checked.
  25. Welcome to the group! You can use the Text Type command to enter a fullpath file name if you are referring to a web page download dialog box. Let's say for example that the default folder (Save In field) appears as "Excel" and the default file name (Save As field) appears as "spreadsheet1.xls" because of your last download. You, however, want to save it to your "Download" folder using the file name "2005.03.15.xls". Simply Text Type "c:\download\2005.03.15.xls" into the Save As field.
×
×
  • Create New...