First, is there a way to highlight Keywords within an EditBox?
I'm thinking that I can run an IfInStrng, var, "WORD". If "True", find the position and length of the word and then insert the command (much like AHK Forums does) of either changing the text color or, if available, highlighting the word a specific color. But... I'm not sure it's possible.
Highlighting Keywords within a Gui, Add, Edit Box
-
- Posts: 155
- Joined: 08 Feb 2021, 12:42
-
- Posts: 155
- Joined: 08 Feb 2021, 12:42
Re: Highlighting Keywords within a Gui, Add, Edit Box
Thanks for the response Boiler!
I've totally given up on the RichText idea (the examples were showing that I wouldn't be able to click/drag to highlight/edit the text that was in that box) and decided to just have an input field above the designated edit box with the text to evaluate that will have IfInString for all the keywords and plug them into that line. I might try to find the position of the work (to read its context in the larger text) and auto drag highlight, but probably nothing too fancy.
I've totally given up on the RichText idea (the examples were showing that I wouldn't be able to click/drag to highlight/edit the text that was in that box) and decided to just have an input field above the designated edit box with the text to evaluate that will have IfInString for all the keywords and plug them into that line. I might try to find the position of the work (to read its context in the larger text) and auto drag highlight, but probably nothing too fancy.
Who is online
Users browsing this forum: dnus, Google [Bot], JoeWinograd, prototype_zero, yabab33299 and 164 guests