Jump to content

Recommended Posts

Posted

hi

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
Opt("GUICoordMode",2)
$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()
    Select
        Case $msg = $GUI_EVENT_CLOSE
            ExitLoop
        Case $msg = $Button_1
            Run('Notepad.exe')
        Case $msg = $Button_2
            MsgBox(0, 'Testing', 'Button 2 was pressed') 
        Case $msg = $Button_3
            MsgBox(0, 'Testing', 'Button 3 was pressed') 
    EndSelect
Wend
Posted

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

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
×
×
  • Create New...