Intercept Search Dialog Box

I would love the ability to intercept the call to the search dialog box that appears when a user makes a mistake during a find:

Search
"No result from search, modify last find?

I would love to do this in an event preference.

My goal is to be able to know which field called the dialog and go back to that field and simply ‘select all’ so the user can retype their query.

Thanks!

simple use a method like this for doing your search:

controller.find();
your_field  = "#%" +  globals.tmp_text +"%";
if (controller.search() < 1)
{
	application.beep();
	plugins.dialogs.showWarningDialog( "Find", "No result from search", "Ok");

// your commands here
}

or even shorter…
if (controller.search() ) //search returns true or false
{