Jump to content
Macro Express Forums

kevin

Admin
  • Posts

    1,950
  • Joined

  • Last visited

  • Days Won

    3

Posts posted by kevin

  1. If you have the same hotkey assigned to a Global macro and a Window or Program Specific macro, the Window or Program Specific one will run when you are in the specific program. If you are not in that program, the global macro will run. This works as intended.

     

    Suppose you have a global macro activated by the F5 hotkey that looks to see which window is on top and enters a password (see Easy Login). Now suppose that you have another program that does not accept passwords and within that program you want the F5 key to open a dialog box and enter information into it. You can do this with Macro Express Pro because Window Specific and Program Specific macros take precedence over Global macros with the same hotkey activation.

  2. Spam posts seem to be getting quite commonplace in this forum, with 4 this morning. Can the moderators take no protective measures?

    These occasionally slip through the protections in place. Today there was one poster today who posted 5 messages. I would hardly say that is commonplace. Spam messages are removed as soon as the moderators read them but the moderators are not in your time zone.

  3. This sample macro determines if a file is 10 days old or older. This was copied from within a larger macro and is not intended to run as is. (You will need to change the variables that contain file names and paths.)

     

    Variable Set Integer %DaysOld% to 10 // Number of days the files need to exist before we delete them
    
    // Only move this file if it is %DaysOld% old or older
    If File Exists: "%dateFolder%\%jpgFile%"
     And
    If File Ready: "%dateFolder%\%jpgFile%"
     Variable Set From File date
     Date/Time: Set %DaysAgo% to an adjusted date/time
     If Variable %FileModifiedDate% Is Greater Than or Equal To "%DaysAgo%"
    
     // Here, the file is less than 10 (%DaysOld%) days old
    
     Else
    
     // Here, the file is more than 10 (%DaysOld%) days old
    
     End If
    Else
    
    // Here, the file does not exist or is not ready (open by another process)
    
    End If

    Download the sample macro here:

    Sample; File 10 days old or older.mex

  4. You could use the Get Control command to get the upper-left location like this:

    Get Control: (IEXPLORE.EXE) Using z-order -> %IE%
    Mouse Move: 1, 1 Relative to Control: %IE%
    Variable Set Integer %X%: Set to the Mouse X Coordinate
    Variable Set Integer %Y%: Set to the Mouse Y Coordinate

    To try this, copy the following and paste it into your macro. You may need to recapture the control, however. The control information is not always portable between versions of Windows.

    <GET CONTROL Flags="1" Program_Name="IEXPLORE.EXE" Class="IEFrame" Title="Insight Software Solutions - All Products - Windows Internet Explorer" Control="\"Frame Tab\",\"28\",\"TabWindowClass\",\"5\",\"Shell DocObject View\",\"5\",\"Internet Explorer_Server\",\"1\"" Variable="%IE%" Caption="Insight Software Solutions - All Products - Windows Internet Explorer" Partial="FALSE" Wildcards="FALSE"/>
    <MOUSE MOVE Option="\x04" X="1" Y="1" Control="%IE%" _PROMPT="0x000A"/>
    <VARIABLE SET INTEGER Option="\x02" Destination="%X%"/>
    <VARIABLE SET INTEGER Option="\x03" Destination="%Y%"/>
    

  5. There are a bunch of free pdf printer drivers out there. With them you can use any program to create your document.

     

    WordPad may have enough formatting features for you. Create a document in WordPad, print it to the PDF printer driver.

     

    Another option would be OpenOffice but many OpenOffice developers have left since Sun was acquired by Oracle. There is fear that Oracle will stop development of OpenOffice or try to change the licensing to monetize it. Keep that in mind for long term future.

     

    What is your goal? To reduce the cost of the add on software? Or to simplify things by eliminating big programs?

  6. @Koon: You are correct in your observation that seconds cannot be set for a scheduled macro. There needs to be a balance between how much of your CPU is used by Macro Express and how frequently things get checked. If Macro Express were to was continually check to see if a scheduled macro should run, it would use much more of the CPU and possibly slow down your other tasks. The technique described by arekowczarek is a good way around it. But be aware that checking that frequently will will use more CPU cycles and, depending on your system, may affect other programs.

     

    @arekowczarek: By default, Macro Express checks every 10 seconds to see if a scheduled macro should run. If the scheduler just checked and one second later the scheduled macro could have run, it will run when the scheduler next checks, 9 seconds later. This may result in the perception that the scheduled macros have a random delay.

     

    You can adjust scheduled macro Timer Interval by clicking Options, Preferences, Activations, Scheduler. Change 'Check the scheduled macros every [ ] seconds' box to 1 second. However, this will use more CPU cycles and, on some systems, may slow down other processes.

  7. < Winkey + ~ > will abort running macros

    The key sequence used depends on the 'Abort Macro HotKey' setting found by clicking Options, Preferences, Playback. There are four choices of key combinations to abort a macro. By default this is set to Scroll Lock+Pause.

     

    Another way to stop a macro is by clicking on the running man icon in the notification area (system tray) of your task bar.

  8. You should be able to use the capture feature to create a macro to log into the system. Most captured macros work better if they are later optimized. It is not possible to use the capture feature to create a loop within a macro. Use the Script Editor to do that.

     

    It often is a good idea to divide distinct tasks into separate macros such as logging on and/or performing multiple copy and paste actions. Use the Macro Run command to call one macro from another.

     

    You can change the activation of a macro to Scheduled to have it run automatically twice a day.

  9. I sent the MEX to Insight 9 days ago but haven't heard from them.

    As stated multiple times, including the Report a Bug webpage:

     

    You will not receive a personal email response unless we need more information.

    See the pinned topic above Reporting Bugs and Requesting Features:

     

    If you need a personal response to a question or request contact us directly via email or telephone.

    and Reporting Bugs and Requesting Features:

     

    If you want a personal reply send an email to Insight Software Services Support.

    and

     

    if you enter the report or request our tracking system will send you an email message when that issue is resolved.
  10. Also this comand is a problem: Delay: %N99% seconds

    as I can't see a delay that will let me set an N value, they all want a number only.

    Anywhere you can enter a value into a command you can enter a variable. Just type %N99% in the 'Delay Time' field of the Delay command.

  11. The sample macro Paul provided was written for Macro Express Pro, not Macro Express 3. There are differences. A macro written in Macro Express 3 will be converted when read into Macro Express Pro. However, you have to manually convert a Macro Express Pro macro to run in Macro Express 3.

     

    I could not find continue anywhere.

    Continue is available in Macro Express Pro, not Macro Express 3.

     

    I do not have read registry value, I have decimal, integer, string. Which of these three should I use?

    Since Paul's example shows the Read/Write Registry commands reading and writing to an integer value (%N99%), it stands to reason that you need to use Read Registry Integer.

  12. Where do I find the continue command?

    In Macro Express 3 the command is Break. In Macro Express Pro either Break or Continue will work.

     

    To search for a command, with the Scripting Editor open, either click in the 'Search for Command' box or press Alt-Down Arrow. Type all or part of the command, for example 'Break'.

  13. Is it possible to schedule a macro to run at a particular time of day? If so, what are the steps to scheduling a macro to run?

    1. Click Macro, Add Macro or click the Add Macro button.
    2. Choose Schedule
    3. Choose Daily
    4. Select the time and which days to run

    You can have the new scheduled macro run an existing macro using the 'Macro Run' command. Or you can add a schedule to an existing macro by clicking the properties tab for that macro.

     

    The Macro Express Help contains a tutorial for running a scheduled macro along with information about all other macro commands. Click Help, Macro Express Help to start.

  14. That all depends on your computer, the application and other unmeasurable things such as how busy your computer or network is. When optimizing a macro I generally speed things up until it is no longer reliable and then slow it down a bit. Over time I have decided that it is more important to me that the macro run reliably than with the utmost speed.

×
×
  • Create New...