igorm Posted March 30, 2008 Posted March 30, 2008 Here is example: #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) $officeslip = GUICreate("Test") GUISetOnEvent($GUI_EVENT_CLOSE, "exit_applicaton") GUISetState() GUICtrlCreateTab(3, 0, 385, 262) GUICtrlCreateTabItem("Test1") GUICtrlCreateTabItem("Test2") GUICtrlCreateTabItem("Test3") GUICtrlCreateTabItem("") GUICtrlSetState ($1, $GUI_FOCUS) While 1 Sleep(10) Wend Func exit_applicaton() Select Case @GUI_CtrlId = $GUI_EVENT_CLOSE Exit EndSelect EndFunc When I launch this script, last tab will be activated. Why? Is there any way that first tab is activated? Cheers Office 2000/XP/2003/2007 Slipstreamer
martin Posted March 30, 2008 Posted March 30, 2008 Here is example: #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) $officeslip = GUICreate("Test") GUISetOnEvent($GUI_EVENT_CLOSE, "exit_applicaton") GUISetState() GUICtrlCreateTab(3, 0, 385, 262) GUICtrlCreateTabItem("Test1") GUICtrlCreateTabItem("Test2") GUICtrlCreateTabItem("Test3") GUICtrlCreateTabItem("") GUICtrlSetState ($1, $GUI_FOCUS) While 1 Sleep(10) Wend Func exit_applicaton() Select Case @GUI_CtrlId = $GUI_EVENT_CLOSE Exit EndSelect EndFunc When I launch this script, last tab will be activated. Why? Is there any way that first tab is activated? Cheers #include <GUIConstants.au3> Opt("GUIOnEventMode", 1) $officeslip = GUICreate("Test") GUISetOnEvent($GUI_EVENT_CLOSE, "exit_applicaton") GUISetState() $t = GUICtrlCreateTab(3, 0, 385, 262) $tab1 = GUICtrlCreateTabItem("Test1") $tab2 = GUICtrlCreateTabItem("Test2") $tab3 = GUICtrlCreateTabItem("Test3") GUICtrlCreateTabItem("") GUICtrlSetState($tab1, $GUI_SHOW) While 1 Sleep(10) Wend Func exit_applicaton() Select Case @GUI_CtrlId = $GUI_EVENT_CLOSE Exit EndSelect EndFunc Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.
igorm Posted March 30, 2008 Author Posted March 30, 2008 Thanks. Cheers Office 2000/XP/2003/2007 Slipstreamer
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