Jump to content
Macro Express Forums

jason

Members
  • Posts

    287
  • Joined

  • Last visited

Posts posted by jason

  1. Try copying the contents of the page to the clipboard, and then use the If Clipboard Contains command.

     

    You may also have some luck in programming the macro to use the Find command within your browser. You would need to set the macro up to press Cntrl+F to activate the Find window followed by a Text Type command to enter the search criteria and pressing the Enter key to begin the search. From here, the browser programs act differently. If you are using Internet Explorer, a window will appear to tell you that the text could not be found. If you are using Firefox, than the color in the search box changes. You will need to set your macro up to detect the change that is correct for your browser.

  2. The Variable Set Integer command insures that the variable is indeed set to 0 before it enters the loop.

    The Repeat Until N1 = 1 will continue repeating as long as N1 = 0.

    The If Clipboard = "" checks to see if anything is on the clipboard. If there is, than the If statement is bypassed. If the clipboard is empty, than the Break command is issued to exit the loop. You could also use the Variable Modify Integer command here to add 1 to N1. Doing this would set variable N1 to 1 which will then cause the repeat loop to end because N1 no longer equals 0.

     

    Having never used LotusNotes, it may be possible that you need to issue a Clipboard Empty command at the end of the loop to insure that it does not leave anything on it making the If statement nul.

  3. You will need to use the Get Pixel Color command to capture the color at the location. The value is stored in an integer variable that you can then compare.

     

    Get Pixel Color

    If %N1% = XXXXX

    Do this

    End If

    If %N1% = YYYYY

    Do this

    End If

     

    You can use the Mouse Locator to determine the colors.

  4. Macro Express does not currently have the ability to wait for a sound. Is there anything that changes on the window after the sound has played? If so, you may be able to use the Get Pixel Color command to determine a change as a specific coordinate on the window. You may also be able to use the If Mouse Cursor to detect when the mouse cursor changes.

  5. You will need to import the Embedded Macro into your macro file, this can be done by:

    1- Downloading the macro to your hard drive.

    2- Load Macro Express and click on File.

    3- Select Import and then Import Macros from the drop down list.

    4- Browse to the location where you saved the macro to your hard drive.

    5- Highlight the macro and then click on the Open button to load the macro into the Import window.

    6- Highlight the macro and then press the import button to load it into your current macro file.

     

    From here you should be able to locate the macro in your macro list.

    1- Double click on it to open it in the Scripting Editor.

    2- Locate the Macro Run command and double click on it (it is on line 9).

    3- Find your macro in the list of macros. If you use categories, you will need to select the category that your macro is stored in to find it.

    4- Highlight your macro and press the OK button.

     

    You will also need to select an activation for the macro by clicking on the Properties Tab above the list of commands on the left as the default activation is set to None.

  6. Hi,

     

    Try something like this:

    Variable Set Integer %N1% to 0
    Variable Set Integer %N2% to 0
    Repeat Until %N2% = 5
     Repeat Until %N1% = 5
       If Variable %N1% = 5
         Wait Time Delay 120 Seconds
         Variable Set Integer %N1% to 0
       End If
       Text Type: Enter your keystroke here<ENTER>
       Mouse Move Screen 0, 0
       Variable Modify Integer: %N1% = %N1% + 1
     Repeat End
     Variable Modify Integer: %N2% = %N2% + 1
    Repeat End

     

    You will need to tweak the macro to do exactly what you need it to do for the keystroke and mouse move, but the timing and repeats should work as is for you.

  7. Unfortunately there is not an easy answer for this as the routine is different for each program. It looks like you have figured out most of the program with the exception of figuring out if there is any new mail. This can be done by checking screen coordinates for a signal on the first line of the mail list in some program (e.g. some programs will show a blue dot in the unread field if the mail has not yet been open, a quick look to see if the pixel color in that location is blue would indicate that there is new mail). It may also be possible to use the registry if your program uses the option to display the number of unread e-mail on your logon screen. The registry location that the number is stored is: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UnreadMail. You may be able to set up a repeat loop based on the number listed in this key.

  8. We don't see this often, but we have heard of it before. There are three possibilities that I can think of right off. The first is that there is another program running that uses these hotkey. It is also possible that this software came pre-installed on the computer if this is the case.

     

    The second option is that some computers (mostly laptops) hard code some keyboard combinations. If this is the case, there is unfortunately nothing can be done.

     

    The last option pertains to custom keyboards. If you are using a non-standard keyboard, this could also cause this issue.

  9. Without more information, it is difficult to say exactly what to do, but you could try having it paste the necessary information to the clipboard, assign it to %T1% and then do an if variable contains command to tell the macro what to do next.

     

    if variable T1 = My Documents

    Open Folder: My Documents

    end if

    if variable T1 = My Computer

    Open Folder: My Computer

    end if

     

    etc...

×
×
  • Create New...