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?
Run macro from command line and pass in strings to GetString
Run macro from command line and pass in strings to GetString
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
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:
Then in your macro code, use
to insert the parameterdata now on the windows clipboard.
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"
Code: Select all
Clipboard 0
Paste