Jump to content
Macro Express Forums

floyd

Members
  • Posts

    292
  • Joined

  • Last visited

Everything posted by floyd

  1. Welcome to the forum cooltone - Randall is correct, you only have one keyboard and the Text Type command will merrily type away in the current window ... just as you do. That being said, you may have some luck using Window Controls, specifically sending text directly to controls and bypassing the keyboard. The success of this is not in the hands of Macro Express, but rather how the game application is written, and whether there are any exposed window controls to, well, ... control.
  2. HeyJim - What you want to do seems fairly simple and can be done within a loop by using the built-in Macro Express string manipulation commands. For instance, you would set and integer to the position of the text "onMouseOut". Then you would delete the string to that point. Now you would track down the ending tag "</a>". This time you would save that portion of the string. The Replace Substring command is ideal for replacing the bold tags with "nothing". This sounds like a lot and that it would take forever to process this kind of string, but trust me, it will work faster than you can possibly imagine.
  3. Welcome to the forum rafaelxc - There are three choices, as I see it: Try using the Web Site command with the Wait for Web Page checkbox checked instead of the Wait for Web Page command. Use the Get Pixel Color command in a loop. Set the loop to keep looping until the pixel changes color. The pixel of course, would be located all the way to the right of the progress bar in the IE window. Create an external program, like Windows Script, to launch IE and navigate to your required URL. A loop could be used to wait until the wscript.exe program ends, meaning that the web page has fully loaded. Hope this helps.
  4. Welcome to the group wad3v3r uhm ... what?
  5. Welcome to the group sector It seems that your copy of Macro Express is not on the up-and-up. It would be best to uninstall it and then download the proper evaluation version from Macro Express at Download Page. This should solve the PIL problem.
  6. Welcome to the forum mcawthon. Does the underlying macro (the one that the popup menu will fire) work within Laserfiche if it is fired in any other manner such as a HotKey, ShortKey, or simply running it?
  7. It might be technical. On the other hand, it might not be. Have you looked into the ShortKeys feature of Macro Express? It sounds like this would be more of a fit for your needs.
  8. Get the position of a character, or string, within a string by using the Variable Set Integer %N1% from Position of Text in Variable %T1% command.
  9. The macro looks reasonable. Maybe the app cannot keep up with the speed that Macro Express is throwing keystrokes at it. Here are some suggestions: Place a "Keystroke Speed: 50 Milliseconds" command at the beginning. Always take the shortest route when tabbing. For example, in the Download (cmls) screen it appears that you tab all the way through it to get to the Date field. Maybe a single Shft+Tab will do. Make use of the accelerator keys. Instead of tabbing to the Download Photos button, maybe a simple Alt+d would work. Change the first few lines of your code to: Keystroke Speed: 50 Milliseconds Launch and Activate: "XMLSPhoto.exe" Wait For Window Title: "Login" This will both launch and activate the window in the same command. The Wait for Window Title command is more of a safety feature. It may not be needed, but it certainly can't hurt!
  10. I have not studied the possibilities of doing what you are asking. There may be a way to place Macro Express macros within the toolbars of other applications and I am just not aware of it. You can, however, create your own macro toolbar using the icons only feature of the floating menu type macro. You can create a series of them that are targeted to only certain programs like Word, Excel, and so forth. The macros placed in a particular toolbar would of course be scoped to particular program. And you should be able to create a "controller" macro that enables and disables a particular toolbar when a program gains or loses focus.
  11. Try this: Set Variable %T1% to "Preferences Registry Key" Read Registry String: "MacExp Version" <VSETMISC:T1:Preferences Registry Key><REGRSTR:2:%T1%\Miscellaneous\MacExp Version> There are a couple of things to watch out for: Not sure how far back the "Variable Set From Miscellaneous" command goes. Some of your users may have earlier Macro Express versions. Some users may not have "write" access to the HKLM part of the Registry if this is the key that holds the info instead of HKCU. There are work-arounds for the above problems, but perhaps we should find out if the problems exists.
  12. I can't say that I've ever had the same problems you are encountering. Does the same thing happen when using IE?
  13. Welcome to the forum Yoyo - It doesn't look like avalid URL to me. Shoudn't it be "http://google.com"?
  14. Macro Express does not have Regular Expressions built in, so you could instead chop away at the text line until you either find, or do not find a 9-digit integer. Variable Set String %T1% "AaBbCc 987654321" Repeat Until %N1% <> %N1% Variable Modify String: Convert %T1% to integer %N1% If Variable %T1% = "" OR If Variable %N1% >= 100000000 Repeat Exit End If Variable Modify String: Delete Part of %T1% Repeat End <TVAR2:01:01:AaBbCc 987654321><REP3:08:000002:000002:0001:1:01:N1><TMVAR2:05:01:01:000:000:><IFVAR2:1:01:1:><OR><IFVAR2:2:01:5:100000000><EXITREP><ENDIF><TMVAR2:11:01:00:001:001:><ENDREP>
  15. Error 267 is a Windows error. I think it means "an invalid directory", which could be either the destination or source directory.
  16. I am assuming that when you capture the control (and the text comes with it) that you are saving the text to a string variable. If so, can you tell from the string which fields are there, what they contain, and so forth? Also, if a field does exist, is it always going to be in the same <Tab> position?
  17. Yes, that was reference to the Window Controls chapter of the book. And because you are "in the middle of it" right now with a problem, I will ask Joe send you a URL where you can download a PDF document of the book after we receive the order from Insight Software Solutions so you do not have to wait for the mail. You need to capture the text that is on your screen into the clipboard so that you can use Macro Express to find whether certain strings exist. And then you need to figure out from that where to move your cursor. Can you capture (using Capture Control) the inside part of the window? In other words, is the inside area a control unto itself? If not I have another solution for you.
  18. I do not think so. Not in this case. But if each field were a Window Control that accepted text as input, you would use the Text Type command with the Send Text to Control checkbox checked to change the text within the actual control. On the other hand, the Variable Set Control Text only changes the Window Control's variable, not the control itself. There are some of examples of these in the Window Controls chapter.
  19. Welcome to the forum fd2000 - I do believe that cyberchief got his "waiting" problem resolved. In his situation, the visible window title never changed no matter which internal window was running. In other words, five different windows all with the same exact title. The problem he was having with Window Controls was the server would append an "invisible" string of coded text to the visible window title within the Window Control itself. And it was a different string each time the window was accessed. This meant that the Window Control could never find the correct window. It was solved by using Capture Control, which is the runtime version of Get Control. The Window Control would be "generated" after the next window was rendered. Worked like a charm!
  20. I'm thinking that you can probably do this using a third-party clipboard viewer/editor like ClipMate. If Paul reads this post, he might be able to give an answer for ClipMate becuase he uses it.
  21. Well, you are not doing anything wrong. As I said, there is currently nothing built in to Macro Express that allows blocking user input. As to the Text Box Display command, I meant that we only use it as a warning to the operator not to touch the keyboard while the macro is running. It cannot block input. Sorry about the confusion.
  22. What's not working? Can post that section of the macro here so the forum can take a look at it?
  23. Welcome to the forum ells - At this point the answer is no. We know that this feature has been requested of Insight Software Solutions, but has not yet been implemented. Same goes for mouse activity. I also know that in our company Joe and Paul were attempting to find a solution and put it in the PGM Functions Library. But again, it has not been implemented. It is apparently not as easy to do as was first thought. I am guessing that there are certain low-level key combinations that are making it very difficult. One thing that we do is to use the Text Box Display command to a display a message on top of all other windows (but not have focus) to "Keep your hands and arms inside the ride until it comes to a complete stop". Then, when the text field is complete, a Text Box Close command is fired.
  24. Welcome Terryb - I don't think so. I assume that you are wanting to use Macro Express to send keystrokes, mouse movements, and clicks to the game. Just like you, Macro Express can only send keystrokes to the active window, the window that currently has focus. Macro Express can certainly run in the background and do all sorts of things while you are doing something else, but you have only one keyboard and mouse, which means that only one of you at a time can use them. That being said, it may be possible, depending on your intentions, how the game was written, and so forth, to use Macro Express's Window Controls in one game which would free-up sending mouse clicks to another one. This would only work (if it works) for mouse clicks.
  25. Not sure exactly what you are trying to do. However, I noticed in your macro that you say XP does not display the entire directory in the window title. On my system it does. You may need to change your folder view settings:
×
×
  • Create New...