![]() I will integrate your code as soon as I review Regular Expressions. ![]() In the meantime, I will post an improved version that saves the clipboard before it starts and then restores the clipboard at the end so as to protect the integrity of the clipboard. But it looks like a good way to identify a sentence. I'll have to study up on Regular Expressions cuz it's been a long time. Lab_Invert_Char_Out:= Lab_Invert_Char_Out Lab_Invert_Char Lab_Invert_Char_Out:= Lab_Invert_Char_Out Chr(Asc(Lab_Invert_Char) - 32) Lab_Invert_Char_Out:= Lab_Invert_Char_Out Chr(Asc(Lab_Invert_Char) + 32) Lab_Invert_Char:= Substr(Clipboard, A_Index, 1) It's interesting that they all are pretty straightforward except for "invert text" which is a little complex: I find it so amazing that the original author of NoteTab probably spent many hours to write and debug this code, whereas it only took me an hour to write it using AutoHotkey. Once you copy it into the clipboard, you can move the cursor anywhere and produce the text at that point. The advantage to this method is that you don't have to convert the text in place. I suppose I could have equally well written it to perform in the same way as the code in NoteTab. There is no real reason why I wrote the code this way. The way they work is that you copy the text into the clipboard, then press one of the hotkeys to convert it, then you can position the cursor anywhere you like and then send the text to that position. So, I wrote a similar set of features using AutoHotkey and they can be used in any editor or word processor. But they aren't available anywhere other than the editor NoteTab and I have to either convert the text manually or copy it into NoteTab, convert it there and then copy it back. Unfortunately, anytime I am creating text but not using NoteTab, (for example, at the present time, when I am preparing this post to write to this message board - I'm using some editor that is built into this particular message board) or I'm using a word processor or another editor, I find myself often needing to use these features. SHIFT+CTL+K - convert to capitalized (e.g. ![]() Once you have highlighted the case, the following codes will convert it as follows:ĬTL+K - invert the case (e.g. If you highlight a string of text, you can instantly convert it to any one of lower case, upper case, capitalized case, sentence case or inverted case. One of the things I like best about NoteTab is that it has a bunch of features for converting the case of text.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |