DonChunior Posted April 6, 2017 Share Posted April 6, 2017 Can a AutoIt application detect, if insert or overwrite mode is set in a text editor? Link to comment Share on other sites More sharing options...
MilesAhead Posted April 6, 2017 Share Posted April 6, 2017 (edited) You would probably need to know about the specific text editor. EditPad Lite 7 will have the word "Insert" or "Overwrite" in the status bar. Other editors may use a block cursor or caret depending on the mode. Notepad seems to stay in Insert mode no matter what I do. You may be able to detect the editor by accumulating the class names of windows used by them and check for tell tale signs. But I suspect many of the simple editors will change mode without any indicator. The user can tell the mode by watching if the text is overwritten or inserted. I would have thought more would use a block cursor for overwrite mode. But there seems to be no standard behavior. Edited April 6, 2017 by MilesAhead My Freeware Page Link to comment Share on other sites More sharing options...
DonChunior Posted April 7, 2017 Author Share Posted April 7, 2017 Thanks for your response! That was the answer I already suspected. I'll try to evaluate the content of the status bars, to detect, if the overwrite mode is enabled. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now