MichaelCrawley Posted May 24, 2023 Share Posted May 24, 2023 Does anyone know if the AutoIt has an "Always on Top" feature. I would like my app to always show on top everything else not to retain focus persitently on top. I don't know the actual term for that is called or I would call by the correct name look for samples or use the libary. I don't think I can offer any code of value because I don't even know if my terminolgy is correct. Link to comment Share on other sites More sharing options...
1957classic Posted May 24, 2023 Share Posted May 24, 2023 (edited) WinSetOnTop Edited May 24, 2023 by 1957classic Link to comment Share on other sites More sharing options...
MichaelCrawley Posted May 24, 2023 Author Share Posted May 24, 2023 Oh nice! Thank you. Link to comment Share on other sites More sharing options...
Solution mistersquirrle Posted May 25, 2023 Solution Share Posted May 25, 2023 (edited) Another option if it's a GUI that you're creating is to use the ExStyle for $WS_EX_TOPMOST: #include <WindowsConstants.au3> #include <GUIConstants.au3> Global $hGui = GUICreate('Au3Gui', 200, 100, -1, -1, -1, $WS_EX_TOPMOST) GUISetState(@SW_SHOW, $hGui) While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE GUIDelete($hGui) Exit EndSwitch WEnd Edited May 25, 2023 by mistersquirrle MichaelCrawley 1 We ought not to misbehave, but we should look as though we could. 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