IsSearch 

Use this method to return a boolean value indicating whether or not the active tab window is a search pane.

Syntax

IsSearch()