Jump to content
Macro Express Forums

redwards

Members
  • Posts

    47
  • Joined

  • Last visited

Posts posted by redwards

  1. I know this isn't the full answer you are looking for but this is how I tell what version each macro is

     

    Variable Set From Misc "Name of Current Macro" into %MacroName%

    Variable Set String %Version to "v2014.04.28"

    .

    .

    Log Messages to Default Error Log %MacroName% - %Version%

     

    This writes to the standard log the name of the macro and it's internal version. I use the date I last made a change (Year.Month.Day). You can set %Version% to anything you like.

  2. I use the macro logs a lot. I'm not sure is this is a problem or not.

     

    When a macro writes to it's log file, it appends it's Index number to the file name. For example if I had a macro called "MEP Report" and it's index was 100.

    When it creates it's log file, it would be "MEP.Report100.txt"

     

    Now if I call the macro "MEP Report" from a 2nd macro call "Test" and it's index is 50, the log file is different. In my case it was "MEP Report99.txt" (the index of the called macro less 1)

     

    Is this bug or is this the way things should work?

     

  3. I have this is a MEP script. It is a one liner (Text Box Display) - I use it a reference

     

    ALLUSERSPROFILE = %ALLUSERSPROFILE%

    APPDATA = %APPDATA%

    LOCALAPPDATA = %LOCALAPPDATA%

    COMPUTERNAME = %COMPUTERNAME%

    COMMONPROGRAMFILES = %COMMONPROGRAMFILES%

    COMSPEC = %COMSPEC%

    HOMEDRIVE = %HOMEDRIVE%

    HOMEPATH = %HOMEPATH%

    OS = %OS%

    PATH = %PATH%

    PATHEXT = %PATHEXT%

    PUBLIC = %PUBLIC%

    PROGRAMFILES = %PROGRAMFILES%

    SYSTEMDRIVE = %SYSTEMDRIVE%

    SYSTEMROOT = %SYSTEMROOT%

    TEMP = %TEMP%

    TMP = %TMP%

    USERNAME = %USERNAME%

    USERPROFILE = %USERPROFILE%

    WINDIR = %WINDIR%

     

    Other Examples I've used are:

    --- Desktop
    %USERPROFILE%\Desktop\

    --- Documents
    %USERPROFILE%\Documents\

    --- Favorites
    %USERPROFILE%\Favorites\

    --- Pictures
    %USERPROFILE%\Pictures\

  4. WOW. I didn't think this would be so big.

     

    Anyway. To state the problem again. I have two macros, both have logging turned on. Macro A runs at 5:00 PM and Macro B runs at 9:00 PM. Below are the logs

     

    02/24/2013 05:00 PM: Macro Started (Macro A)
    02/24/2013 05:00 PM: Macro Completed (Macro A)

     

    02/24/2013 09:00 PM: Macro Started (Macro B )
    02/24/2013 09:00 PM: Line 1: Macro Run
    02/24/2013 09:00 PM: Macro Completed (Macro B )

    Why doesn’t Macro A record it has been run at 9:00 PM. You can see in Macro B's log, it run Macro A

  5. I've created a Macro and it is activated using a scheduled event. I need it to run twice a day so I made a 2nd Macro (again using scheduled event) to run the 1st.

     

    When I look ate the log files I see

    * The 1st Macro runs at it's scheduled time.

    * The 2nd Macro runs at it's scheduled time.

     

    Why dosen't the 1st Macro record anything in it's log about being run the 2nd time?

     

  6. You could turn on "Log All Errors" on the Misc tab for the Macros you want to track or you use "Log All Errors" under Preferences, Playback, Misc.

     

    This would record a brief message in a text file something like this

     

    11/30/2012 10:05 AM: Macro Started (MACRO NAME)
    11/30/2012 10:05 AM: Macro Completed (MACRO NAME)

     

    12/31/2012 10:05 AM: Macro Started (MACRO NAME)
    12/31/2012 10:05 AM: Macro Completed (MACRO NAME)

     

    Would you then have to process these file(s) using a loop

  7. Not necessarily, it depends on your method. In cases like these you should clear the variable before reading the next batch in with the "Clear Variables" command.

     

    And of course there's a much simpler way to avoid all these issues ;)

     

     

    Cory, you say there is a simpler way then leave us hanging with no answer. I read the forums for tips.

  8. The 3rd line does a select all

    Now that the text is selected, you need to copy it the the clipboard with either:

    <control>c or MacroExpress command Clipboard Copy

     

    Window Activate: Document - WordPad

    Wait for Window Title: Document - WordPad

    Text Type (Simulate Keystrokes): <CONTROL>a<DELETE>

    Mouse Left Click

    Clipboard Paste

     

    The 3rd line should delete the text the 5th should do a past. It will not. But if I manually click in the wordpad window

    it will do the delete and past.I have tried every thing in the last couple of hours.

  9. I am trying to allow the user to select the folder to save a notepad file to.

     

    I use the Variable Set String with folder prompt to get the path into %Foldername%.

     

    When it comes time to save the processed file I have tried the "Open folder in explorer to" & "Change directory/folder to" to no avail.

     

     

    I think Notepad defaults to the current user's "My Documents" folder. So any folder structure would start from there. And don't forget about networked drives. Why not just use <Ctrl><S> to bring up Notpad's save dialog box and let the user select the folder, yuo could pre-fill in the file name.

×
×
  • Create New...