Jump to content
Sign in to follow this  

window stay on top

Recommended Posts


can somone help me i wanna have the gui on top but i wanna typ my text and click in others windows 2 sow it musten have a focus otherwise i cant typ/click onther windows

#include <GUIConstants.au3>

GUICreate("24 Help", "527", "40"); will create a dialog box that when displayed is centered
$Button_1 = GUICtrlCreateButton ("Clairify",  5, 10, 100)   
$Button_2 = GUICtrlCreateButton ( "Avaya",  0, -1)
$Button_3 = GUICtrlCreateButton ( "Support center",  0, -1)
$Button_4 = GUICtrlCreateButton ( "Rollercoaster",  0, -1)
$Button_5 = GUICtrlCreateButton ( "(Login)",  20, -1)

GUISetState () 

While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case $msg = $Button_1
        Case $msg = $Button_2
            MsgBox(0, 'Testing', 'Button 2 was pressed') 
        Case $msg = $Button_3
            MsgBox(0, 'Testing', 'Button 3 was pressed') 

Share this post

Link to post
Share on other sites

The fact that a window stays on top of others has nothing to do with focus. It has to do with the extended style that the window was created with. You might want to look at $WS_EX_TOPMOST in the help file.

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post

Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...