So I'm on the free trial of UE... fantastic editor! Even with the macro shortcomings.
The one main thing I needed to do to some huge files is increment some values, and with that functionality not there, I had to write a macro for it, before ever seeing the discussion forums here. I figured I'd share it since I couldn't find a more streamlined version here that didn't use something outside itself like the clipboard or calling another macro.
When the macro is executed, the cursor MUST be sitting before the LAST character in the number, and "Continue if a Find with Replace not found" MUST be checked. Depending on what the number is, the cursor can end up anywhere in the number or at the end. The macro understands decimal and comma but not leading zeroes.
The timing loop at the end may have to be adjusted to suit your system.
/poke IDM "If this proves useful enough I wouldn't mind a complimentary UE license..... otherwise I'll just go back to the freeware editor I was using since my company's too cheap to buy anything worthwhile."
The one main thing I needed to do to some huge files is increment some values, and with that functionality not there, I had to write a macro for it, before ever seeing the discussion forums here. I figured I'd share it since I couldn't find a more streamlined version here that didn't use something outside itself like the clipboard or calling another macro.
When the macro is executed, the cursor MUST be sitting before the LAST character in the number, and "Continue if a Find with Replace not found" MUST be checked. Depending on what the number is, the cursor can end up anywhere in the number or at the end. The macro understands decimal and comma but not leading zeroes.
The timing loop at the end may have to be adjusted to suit your system.
Code: Select all
InsertMode
ColumnModeOff
HexOff
UnixReOff
IfCharIs "0"
Key DEL
"1"
ExitMacro
EndIf
IfCharIs "1"
Key DEL
"2"
ExitMacro
EndIf
IfCharIs "2"
Key DEL
"3"
ExitMacro
EndIf
IfCharIs "3"
Key DEL
"4"
ExitMacro
EndIf
IfCharIs "4"
Key DEL
"5"
ExitMacro
EndIf
IfCharIs "5"
Key DEL
"6"
ExitMacro
EndIf
IfCharIs "6"
Key DEL
"7"
ExitMacro
EndIf
IfCharIs "7"
Key DEL
"8"
ExitMacro
EndIf
IfCharIs "8"
Key DEL
"9"
ExitMacro
EndIf
IfCharIs "9"
Key DEL
"0"
Key LEFT ARROW
EndIf
Loop
IfCharIs "0.,"
Key LEFT ARROW
EndLoop
EndIf
IfCharIs "123456789"
PlayMacro 1 "Increment"
Else
Key RIGHT ARROW
"1"
EndIf
Loop 100
EndLoop