For example
If Chrome is the active window, selected text will look like this
If Chrome is not the active window, but still within view, selected text will look like this
How do I keep selected text visibly highlighted (preferably in a different color) in a AHK created GUI when that GUI is not the active window. My GUI edit box selected text highlighting disappears whenever my GUI is not the active window.
Thanks in advance to anyone who help me out on this.
How do you preserve highlighting of selected text in a GUI edit box, when it's not the active window? Topic is solved
-
- Posts: 17
- Joined: 17 Nov 2017, 11:13
Re: How do you preserve highlighting of selected text in a GUI edit box, when it's not the active window?
Embedding a browser component within the GUI? Or what about using @geek's Neutron instead?
-
- Posts: 4309
- Joined: 29 Mar 2015, 09:41
- Contact:
Re: How do you preserve highlighting of selected text in a GUI edit box, when it's not the active window? Topic is solved
Code: Select all
ES_NOHIDESEL := 0x100 ; https://www.autohotkey.com/docs/misc/Styles.htm
Gui, New, +AlwaysOnTop
Gui, Add, Edit, w200 %ES_NOHIDESEL%, AutoHotkey
Gui, Show
GuiClose() {
ExitApp
}
-
- Posts: 17
- Joined: 17 Nov 2017, 11:13
Re: How do you preserve highlighting of selected text in a GUI edit box, when it's not the active window?
Thanks Teadrinker. That's exactly what I was looking for. Much appreciated.
teadrinker wrote: ↑19 Aug 2022, 18:40Code: Select all
ES_NOHIDESEL := 0x100 ; https://www.autohotkey.com/docs/misc/Styles.htm Gui, New, +AlwaysOnTop Gui, Add, Edit, w200 %ES_NOHIDESEL%, AutoHotkey Gui, Show GuiClose() { ExitApp }