realkiller Posted November 6, 2006 Posted November 6, 2006 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 Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
PaulIA Posted November 6, 2006 Posted November 6, 2006 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
realkiller Posted November 6, 2006 Author Posted November 6, 2006 thx for replying worked;) Remote 3.1 BetaRemote Media Player ControlUSB Security 1.2
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