DonChunior

Insert and overwrite mode in text editors

3 posts in this topic

#1 ·  Posted

Can a AutoIt application detect, if insert or overwrite mode is set in a text editor?

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by MilesAhead

Share this post


Link to post
Share on other sites

#3 ·  Posted

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.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now