Command Line Macro - Search string not found!

Help with writing and playing macros

Command Line Macro - Search string not found!

Postby Glenn » Wed Oct 20, 2004 1:31 pm

I'm trying to run a macro from the command line to delete recurring sections of a file by having it repeat 10,000 times. Currently it's not exiting UE because the message window comes up stating: Search string not found!. Is there a way to make this macro automatically exit back to the command line?

UEDIT32 gh.xml /M,E,10000="bidshift.MAC/remove1500"

remove1500 macro commands:
InsertMode
ColumnModeOff
HexOff
UnixReOff
EndSelect
Find "<start-time>1500</start-time>"
EndSelect
Key UP ARROW
Key UP ARROW
Key UP ARROW
Key UP ARROW
Key HOME
StartSelect
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key END
EndSelect
Key DEL
User avatar
Glenn
Newbie
 
Posts: 6
Joined: Tue Oct 19, 2004 11:00 pm

Re: Command Line Macro - Search string not found!

Postby Mofi » Thu Oct 21, 2004 1:31 am

You have to modify the macro and the macro properties. Enable in the macro properties (Macro - Delete Macro/Modify Properties) "Continue if a Find with Replace not found". Then edit the macro to this version.

InsertMode
ColumnModeOff
HexOff
UnixReOff
Loop
Find "<start-time>1500</start-time>"
IfFound
EndSelect
Key UP ARROW
Key UP ARROW
Key UP ARROW
Key UP ARROW
Key HOME
StartSelect
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key DOWN ARROW
Key END
EndSelect
Key DEL
Else
ExitMacro
EndIf
EndLoop

You now don't need the 10000 counter anymore at the command line, because the loop in the macro runs as long as the search string is found.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4051
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: Command Line Macro - Search string not found!

Postby Glenn » Thu Oct 21, 2004 10:42 am

:D

Thank you Mofi! That worked perfectly.
User avatar
Glenn
Newbie
 
Posts: 6
Joined: Tue Oct 19, 2004 11:00 pm


Return to Macros