Jump to content
Macro Express Forums

kevin

Admin
  • Posts

    1,950
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by kevin

  1. A quick search on the web found several pages with this information: Some of the suggestions that I read were to have the DNS record fixed, to contact the ISP (for the mail server), and to enter the IP address and port of the server into the Host Name field. Here are some references: http://www.qksoft.com/qk-smtp-server/socket-error-11004.html http://kbase.pscs.co.uk/index.php?page=index_v2&id=133&c=1 http://forum.goteamspeak.com/showthread.php?t=3599 Also, you may or not need 'Server requires authentication' checked. If you have this checked you may want to uncheck it and try it.
  2. SteveCasey: I want to start out by saying I like your macro. The idea of clicking in the box where the login information should begin is great. I am going to adopt that technique for several of my macros. I recreated your macro and signed up for the Dallas Morning News. It works every time for me so we must be doing something different. When you try this a second time are you sure there are no other windows with 'dallas' in the name? If there were, it could explain this behavior. The Wait for Window Title command will continue if any window with "dallas" in the name is visible/on top. Regarding the Text Box Display command: I like your idea of displaying a Text Box as a prompt. However, as Joe points out, you don't want the Text Box that requires an 'OK'. But, if you use the Floating Box option it works well. I would put a Text Box Close after the Wait Left Mouse Click, like this: Web Site: http://www.dallasnews.com/sharedcontent/registration/register.jsp [Default Browser] Text Box Display: Click in the login field Wait For Window Title: "dallas" Wait Left Mouse Click Text Box Close: Click in the login field Encrypted Text Text Type: <TAB> Delay 0.5 Seconds Encrypted Text Text Type: <ENTER> I also found it best to select 'Always on Top' and unselect 'Keep Focus' inside the Text Box Display command. How were you able to determine that it hangs on the Wait for Mouse Click command? What I like to do is to play a .wav file between each command. Then I can tell which macro command was executed. Perhaps something like this: Web Site: http://www.dallasnews.com/sharedcontent/registration/register.jsp [Default Browser] Text Box Display: Click in the login field Sound Wave File: 1.wav Wait For Window Title: "dallas" Sound Wave File: 2.wav Wait Left Mouse Click Sound Wave File: 3.wav Text Box Close: Click in the login field Encrypted Text Text Type: <TAB> Delay 0.5 Seconds Encrypted Text Text Type: <ENTER> If the macro is hanging in the Wait for Window Title command instead of the Wait Left Mouse Click command and if you have another window with 'dallas' in the name then it could explain the behavior you are seeing. If we are certain that the problem is with the Wait Left Mouse Click command then Macro Express may have a bug. But since it only happens on your machine I hope the problem is elsewhere.
  3. You are correct. There is not a setting to enable or disable this feature. We will add the ability to select the animation in a future release of Macro Express.
  4. This may be more of an Excel issue rather than Macro Express and I am not an Excel expert. Macro Express allows you to launch a program, including Excel, with the proper command line parameters. If Excel doesn't offer the command line options you need, you may need to open excel and then click something like File and New from Template. A google search turned up several interesting web pages. Perhaps one or more of them will help. Here are some links talking about using .xlt files in Excel: http://office.microsoft.com/en-us/assistan...0548151033.aspx http://www.meadinkent.co.uk/xlconfigure.htm http://www.rdg.ac.uk/ITS/info/training/notes/excel/temp/ http://bayofficecomputing.com/news_default_settings.htm http://www.hhassociates.co.uk/services/hum...ng_ms_excel.htm http://www.bettersolutions.com/excel/61224...25169182205.htm Here is a Microsoft article titled 'Customize How Excel Starts': http://office.microsoft.com/en-us/assistan...1993911033.aspx This Microsoft article documents the Startup Switches used in Excel: http://support.microsoft.com/default.aspx?...kb;en-us;291288
  5. You are welcome. I'm glad it is now working.
  6. You need the ASCII File Begin Process: "test.txt" (Tab Delimited Text ) command.
  7. Does this help: http://pgmacros.com/community/index.php?sh...108&hl=template?
  8. The Wait for Web Page macro command only works with Internet Explorer. You can, using existing macro commands, create a macro to perform a Wait for Web Page - like function. The link in the latest issue of the Macro Express News email newsletter (the Macro Express News Email Newsletter - July 13, 2005) is an example macro showing how to do this for Netscape. To use with Opera (or Firefox) you would need to create a similar macro. As the documentation for that macro should say, the idea is to pick a location on the screen where the color changes when the browser is no longer busy. If I remember correctly, when I tried to use Opera, it had a tendancy to display the 'status' and then hide it. But there is a preference setting to leave it displayed all the time. I hope this helps clarify things. P.S. If you get a Wait for Web Page macro written for Opera and submit it to be shared, I will see that it gets published and that you get a Macro Express T-Shirt.
  9. Aarrgghh! Sorry. Its fixed now. Thank you inokenti for posting the correct link.
  10. Uhmm, yeah. It was late. Thanks for pointing that out. I've edited it.
  11. Macro Express v 3.5d has been released. Changes include: When the macro file is saved, up to five backups are now kept in the temporary directory. Added a warning message that, upon program startup, will warn the user that automatic backups are not enabled and will prompt them to enable them. A change was made to the Wait for Web Page command to improve reliability on certain computers. During macro file synchronization, if the macro file does not exist temporarily, an error message is not displayed. If the license information exists on the clipboard, it can be automatically entered into the program. Fixed a bug where in the "E-Mail Send" command, using a variable for a recipient could end up causing the recipient to receive the e-mail multiple times. If the "Repeat with Process" was embedded inside another repeat loop, the program would jump to the outer loop when a "Repeat Exit" command was executed. Fixed a bug where a copied macro would not be playable right away. Fixed a bug in the "E-Mail Send" command where the user could not adjust the "Display e-mail sent notification" option. Modified the ShortKeys implementation in order to make activation more reliable. Fixed a bug where the "If Ping Successful" command could return a successful result, even if it wasn't successful. The Network Connect command now uses the Name and Password used to log onto Windows if the 'Use Default Name and Password' option is checked. Download it here www.macros.com/download.htm. View a complete list of changes here www.macros.com/rev3_5d.htm.
  12. No there is not a "stop macro on system beep". That is an interesting idea though. I recommend that you enter that into the 'Request a Feature' page at www.macros.com/requestfeature.htm so it will be considered for a future release.
  13. The combo box must be defined as a Window Control and you must capture it as such. Make sure when you capture that you do not include more than the content of the combo box itself. If the Window Control contains more than just the combo box then it may not work.
  14. Does Ctrl+Tab cycle through the tabs? Does the Window Title change as it does?
  15. You may have some success using the Get Pixel Color command. However, this would be a long macro to write. Can you put the tabs in a predictable spot? One appoach may be to: - Save the size and position of the application's window - Set the application to a predetermined size and location - Move the mouse to a predetermined location and click on the tab - Restore the original size and position of the application's window I recognize that this will only work if the tab appears in the same relative location. If the tab moves around this will not work.
  16. Then Window Controls will not work in this situation. Whether or not a component (in this case, the tab) is a Window Control is controlled by how the application was written. Macro Express does not have any control over this. Macro Express only reads whatever Window Controls are defined in the application.
  17. The Get Control command captures the control information when you are writing your macro. The Capture Control command captures the control infromation when your macro is running. The Capture Control command requires an X and Y position. I would create a macro that determines approximately where the control will be located and Capture the Control. You can then examine the text from the control and see if it matches the tab you want to work with. If not, move the position and Capture the Control again.
  18. I use this technique in one application to select a name from a long list. The name never changes and appears somewhere near the middle of the 1500+ list of names. The macro always finishes in about one second or less. EDIT: After thinking about this I realized that each copy to and from the clipboard has a built in delay of 1/4 second. This means that a long list would definitely be slow. That got me thinking about my macro. It turns out that it uses a Window Control to determine the content of the field, not the clipboard. This technique is much faster! Here is an edited version of my macro: // If the desired name is already selected, then exit quickly Variable Get Control Text: %C1% to %T1% If Variable %T1% = variable %T10% Macro Return End If // Get the name // Give focus to the combo box specified by the control Mouse Single Left Click on Control %C1% Text Type: <ESC> Delay 0.5 Seconds // Send first letter to the control to speed up the search Variable Modify String: Copy Part of %T10% to %T1% Text Type:a%T1% // Loop through list of names until match found or end of list Variable Set String %T1% "" Variable Set String %T2% "" Repeat Until %T9% = "DONE" Variable Get Control Text: %C1% to %T1% // We are done if we have found the name we're looking for or // if we have reached the end of the list If Variable %T1% = variable %T10% OR If Variable %T1% = variable %T2% Variable Set String %T9% "DONE" Else // Name last time through Variable Modify String: Copy %T1% to %T2% // Arrow down Text Type: <ARROW DOWN> End If Repeat End The technique that uses the clipboard would work fine for a shorter list.
  19. This error message indicates that the SMTP server information is not correct. Verify the Host and Port settings. Yes, this is how Macro Express works. You have to set the email information in the prefereces. What are you doing that requires different 'from' addresses?
  20. Try the Window Controls. This works for me in a test environment: Get Control %C1% (Insight Software Solutions - All Products - Microsoft Internet Explorer: msctls_statusbar32) Variable Get Control Text: %C1% to %T1% Text Box Display: T1 Because the window control may change for each web page, you may need to use the Capture Control command instead of the Get Control. The Get Control command requires that you know the position of the control. You can get the size of a Window using the Variable Set Integer %N1% from Top of Window, Variable Set Integer %N2% from Left of Window, Variable Set Integer %N3% from Width of Window, and Variable Set Integer %N4% from Top of Window commands.
  21. Just lost a long post ... AARRGGGHH! A message said the page expired and poof! it was gone. Okay, I'll be a little less wordy. Writing this with Ifs or Switch/Case statements would be time consuming and difficult to maintain. I recommend this: Create a comma separated values (.csv) file like this: www.nytimes.com,US-New York Times www.globeandmail.com,Canada-Globe and Mail www.chinadaily.com,China-China Daily www.abc.net.au,Australia-ABC Then use something like this macro snippet: Variable Set String %T10% "China" ASCII File Begin Process: "LookUpFile.csv" (Comma Delimited Text ) If Variable %T1% contains variable %T10% Text Type: %T2% Break End If ASCII File End Process Look in the help file for more information about .csv files. I expect this would be a LOT quicker than typing the long form. But maybe you type faster than me.
  22. I'm not sure how to go directly to the third page but here are a couple of ideas that may make your existing macro work better. In my macros I do an Arrow Down and then Copy to Clipboard. Then I look in the clipboard to see if what I wanted is there. If not, I have the macro do another Arrow Down. This works no matter how often the list changes. I did have to add a 'fail-safe' to determine if the last item was the same as it is this time. This allows me to stop the macro if the item I'm looking for is never found. Does the title of the window change? If so you could use the Wait For Window Title macro command. Another approach would be to put the macro commands that come after the Submit into a separate macro. Make this macro a Window Activated macro and make it disabled upon startup. Then have your original macro Activate it. However, both of these techniques requre a change in the Window title. If the Window title does not change then perhaps you can use the Get Pixel Color command to see if a specific area of the screen changes.
  23. Randall, That is a neat trick. Thank you for demonstrating it. I plan on using it in some of my macros. This macro will not work on systems running Windows 98, Me or 95 but a simple change will allow it to run. Change the lines that say Program Launch: "cmd.exe" to Program Launch: %ComSpec% This causes Macro Express to ask Windows what program to use to load DOS. Windows 9x uses Command.exe while Windows 2003, XP, 2000 and NT use cmd.exe.
  24. Check out the Pause Macro HotKey setting found in Options, Preferences, Playback. You can choose from up to 4 hotkeys for this feature including the Pause key.
  25. Thank you Joe for supplying answers this morning while I was busy doing other things. I'm not sure if you still have a question but here are a few bits of advice. Using Macro Express commands you can append lines of text to a file. You don't need to worry about creating the file if it doesn't exist. However, you may want to delete the file when the macro runs to clear out stuff from the night before. Or, you could use the date as part of the filename so you don't have to worry about that. Macro Express cannot change the content of an existing file. It can only write to a new file. Using the Variable Set Integer and Variable Modify String commands you can copy from the beginning of a string to the position of the "M204.", you can copy from the beginning of the "M204." to the end of the line, you could copy from the next character after "M204" to the end of the line, or you could copy 9 characters from the beginning of the "M204.". Are you certain that the message numbers are always 9 characters long? You may want to consider looking for the : or a space. Something like this: // Delete the file if it exists If File Exists "OutputFile.txt" Delete File or Files: "OutputFile.txt" End If // Process through the Input File Text File Begin Process: "InputFile.txt" // Set N1 to the position of 'M204' Variable Set Integer %N1% from Position of Text in Variable %T1% // Set N2 to the position of ': ' (colon followed by a space) Variable Set Integer %N2% from Position of Text in Variable %T1% // Copy from the beginning of 'M204' to the beginning of ': ' Variable Modify String: Copy Part of %T1% to %T2% // Append this line to the end of a Text File Variable Modify String: Append %T2% to Text File Text File End Process
×
×
  • Create New...