Run macro from command line and pass in strings to GetString

Run macro from command line and pass in strings to GetString

1
NewbieNewbie
1

    Jan 07, 2009#1

    I have a macro that adds static text at the end of a file along with dynamic text using GetString. Is there a way to pass in the GetString values from the command line so UE does not prompt me?

    6,686585
    Grand MasterGrand Master
    6,686585

      Jan 07, 2009#2

      No. For command line usage create a second macro which does not use GetString but gets the string from a file with fixed name which this alternate macro opens, reads and closes. Or copy the string to the Windows Clipboard before running UltraEdit with the alternate macro from the command line and paste the string from within the macro.
      Best regards from an UC/UE/UES for Windows user from Austria

      262
      MasterMaster
      262

        Jan 07, 2009#3

        Along the same lines as Mofis suggestion:

        Install the small program clip.exe which can be used to place things in the windows clipboard from a command line or batch file.

        Create a DOS batch file to invoke UE after putting the command line parameter on the windows clipboard:

        Code: Select all

        @echo %1 | clip
        @uedit32 c:\temp\test.txt /m="c:\temp\macro.mac"
        Then in your macro code, use

        Code: Select all

        Clipboard 0
        Paste
        to insert the parameterdata now on the windows clipboard.

        61
        Advanced UserAdvanced User
        61

          Jan 07, 2009#4

          That clip utility is really cool!!!! I wish I had know about that along time ago.