Jump to content
Macro Express Forums

Doc. Caliban

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by Doc. Caliban

  1. Hi there,

     

    I just need a nudge in the right direction as in which commands to use.

     

    I have a simple GUI macro that works fine, but I want it to repeat with a variable handed to it based on a list of files in a folder.

     

    It runs a dialog in a program that asks for a path\filename, and I want it to get a list of file names from a folder and repeat the macro for each file name and then terminate.

     

    I'm find with macros, but new to using variables.

     

    Thanks in advance,

     

    Doc

  2. "Wait For"s can sometimes be a little tricky. If you are finding that the actual Wait For command is not working to your satisfaction, you can try a short Repeat Loop like this:

     

    Repeat Until %N1% = 16777215
     Get Pixel: Window Coords: 439,447 into %N1%
    Repeat End

     

    In this example I'm causing Macro Express to check the pixel at 439,447 over and over until that pixel is white.

     

    The Get Pixel command window has a Mouse Locator tool that can tell you what the color under a given pixel is (such as 16777215, which is 'white').

     

    So the trick is to try and figure out what changes about the page you are waiting for when it finishes loading. This, too, may not work 100% of the time. From what I understand (which may not be much) some Java windows appear to be done loading when in reality they are still hanging somehow.

     

    But it's at least another option to play with.

     

     

    I'll give that a shot. Worst case scenario is that I'll have to set a simple delay that will outlast even the longest lag in the frame. It will slow down the overall job, but I only have to do this three times a year and it will still only take a few hours, tops.

  3. I have a page which I believe is Java, and when I manipulate it I need to wait several seconds for a frame to finish reloading before I can manipulate it again.

     

    I activate the window, then use "Wait for Web Page":

    With the URL blank, the macro does not continue until the wait times out.

     

    If I specify the URL it does not pause at all because the main page itself is always loaded.

     

    Specifying the exact URL of the frame itself also does not work.

     

    Ideas?

     

    This is IE 8.

     

    Thanks,

     

    -Travis

  4. Hello,

     

    I've gotten much farther, so I'm removing the original question, however I still need to know:

     

    How to loop the macro, and how to tell it when to end.

     

    It is starting on a text file, selecting and cutting the first line of text, activating a different window and pasting the text, then starting over again. I need it to keep going until there are no more lines of text to cut.

     

    Thanks,

     

    -Travis

×
×
  • Create New...