1. How to Delete Selected Text and Remove Highlights Using EmEditor - A Comprehensive Guide
1. How to Delete Selected Text and Remove Highlights Using EmEditor - A Comprehensive Guide
July 27, 2010 at 11:33 pm #8804
Member
I didn’t want to disable the Find Highlight.
My request was to to automatically clear the Find Highlight when the Find Dialog was closed — if a checkbox on the find dialog was checked: [x] Clear Highlights.
I solved it with AutoHotKey. The original AHK solution was Kludgy and didn’t work consistently.
Perhaps someone else will find some use for it.
Fixed clean code:
;;
;; Script: EE_AutoClearFindHighlight.ahk
;; Author: MwM - Crash&Burn, 2010
;; Usage::
;; Automatically clear the Find Highlight when EmEditor's
;; Find Dialog is closed with the [Close] Button.
;;
;; Does not clear the Find Highlight if ESC, or the
;; Find Dialog's TitleBar [X] is used, nor if a modifier
;; key is held down when clicking [Close] (i.e. Shift)
;;
#SingleInstance, Force
#NoEnv
SetBatchLInes, -1
#ifWinActive, Find ahk_class #32770
~LButton::
; $ESC::
aParent := DllCall("GetParent", UInt, WinExist("A"))
aParent := ((!aParent) ? WinExist("A") : aParent)
WinGetClass, aClass, ahk_id \%aParent\%
if(aClass <> "EmEditorMainFrame3")
return
if(A_ThisHotKey == "LButton")
MouseGetPos, ,, aFind, aControl
if(aControl <> "Button16")
return
KeyWait, LButton
Sleep, 50
ifWinExist, ahk_id \%aFind\%
return
WinWaitActive, ahk_class EmEditorMainFrame3
Send, !{F3}
;; If one wanted the Find Highlight to clear on ESC
;; Remove comment block below, and uncomment ESC above.
/*
*
else
if(A_ThisHotKey == "$ESC") ;; Not clearing Find Highlight on ESC, atm
Send, {ESC}
Sleep, 50
ifWinExist, ahk_id \%aFind\%
return
WinWaitActive, ahk_class EmEditorMainFrame3
Send, !{F3}
*
*/
return
return
Also read:
- [New] Top 15 YouTube Portals on Stocks & Trades
- 2. Seamless Continuation in Text Editing with EmEditor - Tips for Restarting 'Nr' On an Active File
- 9 Mind-Blowing Tricks to Hatch Eggs in Pokemon Go Without Walking On Samsung Galaxy Z Fold 5 | Dr.fone
- A Detailed Guide on Faking Your Location in Mozilla Firefox On Realme C33 2023 | Dr.fone
- Creating Your First Macro with EmEditor: Tips and Tricks for Text Editing Automation
- EmEditor Text Editor: Fixing Projects.dll Error and Preventing Application Crashes
- Enhance Your Editing with EmEditor - Exploring the Clipboard Monitor Capability
- Expert Tips for Resolving DLL Errors on Your Computer
- How to Fix 'Outline Text' Issues in EmEditor: A Comprehensive Guide
- In 2024, Read This Guide to Find a Reliable Alternative to Fake GPS On Vivo X100 | Dr.fone
- Introducing EmEditor Professional v13 Beta 6 - Enhanced Text Editing Experience.
- Line Sorting Feature in EmEditor: Arrange Based on Line Size for Improved Readability
- Palette Playbook The Filmmaker's Guide to Grading for 2024
- PC Troubleshooting Guide: Fix ARK: Sanctuary Über Wiki's Constant Crash Issues with 9 Solutions
- Potential Syntax Errors? No Worries with EmEditor - Your Reliable Text Editing Companion!
- Prank Your Friends! Easy Ways to Fake and Share Google Maps Location On ZTE Nubia Z60 Ultra | Dr.fone
- Professional Text Editing Software - EmEditor Pro Version 9.00 Beta Update
- Step-by-Step Instructions: Forcefully Erase Directories in Windows 10/11 Using Professional Software
- Understanding the WMV Video File Format: A Comprehensive Guide
- Title: 1. How to Delete Selected Text and Remove Highlights Using EmEditor - A Comprehensive Guide
- Author: Charles
- Created at : 2024-10-09 08:55:16
- Updated at : 2024-10-13 16:16:57
- Link: https://win-info.techidaily.com/1-how-to-delete-selected-text-and-remove-highlights-using-emeditor-a-comprehensive-guide/
- License: This work is licensed under CC BY-NC-SA 4.0.