Jump to content

Always on top feature


Go to solution Solved by mistersquirrle,

Recommended Posts

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

  • Solution

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 by mistersquirrle

We ought not to misbehave, but we should look as though we could.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...