EmEditor (text editor) Forum Index
   EmEditor Core Enhancement Suggestions
     Automatic: Erase Find Highlight
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
CrashNBurn
Posted on: 9/28/2010 3:55 pm
Just can't stay away
Joined: 4/8/2010
From:
Posts: 130
Re: Automatic: Erase Find Highlight
I updated my AHK fix for this,
1) Automatically Clear the Find Highlight when you Click [Close] on the Find|Replace dialog.
2) Does NOT clear the Find highlight if:
---> you press keyboard {ESC} or
---> click [X] on Titlebar. or
---> Shift+Click, or Ctrl+Click.

#ifWinActive, Find ahk_class #32770, &Search All Open Documents
{
    $LButton::    IWA_32770_FindReplace( "{LButton Down}" )
    $LButton UP:: IWA_32770_FindReplace( "{LButton Up}"   )
return
}
#ifWinActive, Replace ahk_class #32770, Search All &Open Documents
{
    $LButton::    IWA_32770_FindReplace( "{LButton Down}" )
    $LButton UP:: IWA_32770_FindReplace( "{LButton Up}"   )
return
}

WinGetParentClass(winTitle="A", winText="", exTitle="", exText="")
{
    WinGetClass, wClass, % "ahk_id " DllCall( "GetParent", "UInt", WinExist(winTitle, winText, exTitle, exText))
return wClass
}

IWA_32770_FindReplace(mKeyF)
{
    EmEditorMainFrame3_sendKey:="!{F3}", EmEditorMainFrame3_control:="Button16" 
    ControlGetFocus, cgFocus
    Send, % ((wpClass:=WinGetParentClass()) && doKey:=(cgFocus==%wpClass%_control)) ? mKeyF : mKeyF
    if( GetKeyState("Ctrl") || GetKeyState("Shift") )
	return
    Send, % (doKey && (WinGetClass("A")==wpClass) && %wpClass%_sendKey) ? %wpClass%_sendKey : "" 
return
}
Flat Previous Topic | Next Topic


Subject Poster Date
   Automatic: Erase Find Highlight CrashNBurn 7/26/2010 3:04 pm
     Re: Automatic: Erase Find Highlight Yutaka 7/26/2010 6:42 pm
       Re: Automatic: Erase Find Highlight CrashNBurn 7/27/2010 8:49 am
         Re: Automatic: Erase Find Highlight Yutaka 7/27/2010 12:29 pm
         Re: Automatic: Erase Find Highlight CrashNBurn 7/27/2010 3:33 pm
           Re: Automatic: Erase Find Highlight CrashNBurn 8/16/2010 10:39 pm
             Re: Automatic: Erase Find Highlight Jibz 8/26/2010 5:06 am
               Re: Automatic: Erase Find Highlight Yutaka 8/26/2010 9:53 am
               » Re: Automatic: Erase Find Highlight CrashNBurn 9/28/2010 3:55 pm

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文