Highlight causes record to fail

Find, replace, find in files, replace in files, regular expressions

Highlight causes record to fail

Postby PaoloFCantoni » Thu Oct 19, 2006 12:53 pm

It seems that setting [x]Highlight all items found will cause macro recording to fail...

Can anyone confirm?

Is there an undocumented macro parameter for this?

TIA,
Paolo
User avatar
PaoloFCantoni
Power User
Power User
 
Posts: 113
Joined: Sun May 01, 2005 11:00 pm
Location: Perth, Western Australia

Re: Highlight causes record to fail

Postby Mofi » Fri Oct 20, 2006 7:37 am

The Highlight All Items Found feature cannot be used from within a macro. It's the nature of this feature that it can be only used with user interactions because the user must scroll to see the highlighted found strings and if he continues with any action except scrolling with mouse or the cursor moving keys the highlighting will stop.

If you record a find with the feature checked, you will see in the macro code what UltraEdit is doing in the background for this feature (run multiple Finds). Well, the macro recorder should record only the first find when this special feature is set and not all subsequent finds too.

But I think, the IDM developers simply have not thought on it that a user tries to record a find with this special option checked because it makes no sense for macros. Except a user wants to create macros with only 1 Find with Highlight All Items Found command for various often needed search strings for a quick recall from the macro list view. Sorry, but this is not possible although I understand that this could be useful.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4066
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Find/Replace/Regular Expressions