BinaryBrother Posted October 3, 2014 Posted October 3, 2014 (edited) This uses the, recently added, ability of AutoIt's to read specific elements of an array, directly from the function return... Ex; $StartMenu_Height = WinGetPos("[CLASS:Shell_TrayWnd]")[3] #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Main() Func Main() ; Create a GUI with various controls. Local $hGUI = GUICreate("PANIC", 110, 55,@DesktopWidth-110,@DesktopHeight-WinGetPos("[CLASS:Shell_TrayWnd]")[3]-55,$WS_POPUP) GUISetBkColor(0xFF0000) $hPANIC_Label = GUICtrlCreateLabel("PANIC", 11, -2, 90, 38) GUICtrlSetFont($hPANIC_Label, 28, 800, 0, "Roman") $hEnabled_Label = GUICtrlCreateLabel("enabled", 18, 32, 74, 22) GUICtrlSetFont($hEnabled_Label, 12, 400, 0, "Courier New") ; Set GUI to AlwaysOnTop WinSetOnTop($hGUI, "", 1) ; Display the GUI. GUISetState(@SW_SHOW, $hGUI) ; Loop until the user exits. While 1 Switch GUIGetMsg() Case $GUI_EVENT_CLOSE ExitLoop EndSwitch WEnd ; Delete the previous GUI and all controls. GUIDelete($hGUI) EndFunc ;==>Example I'm not sure what that feature is called, exactly, but it very handy. ^.^ Edited October 3, 2014 by BinaryBrother dmob and mvk25 2 SIGNATURE_0X800007D NOT FOUND
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