qwert Posted November 29, 2007 Share Posted November 29, 2007 Can someone give me a hint on how to alter the display text on a window's Status Bar? AutoInfo shows it is held in Property 1 -- but I can't find an example of a set command to get at it. Thanks in advance. Link to comment Share on other sites More sharing options...
Fossil Rock Posted November 29, 2007 Share Posted November 29, 2007 _GUICtrlStatusBarSetText() Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
qwert Posted November 29, 2007 Author Share Posted November 29, 2007 Thanks very much. Here's a working example for other novices to follow. For a named window (e.g., "TestApp"), it changes the Status Bar text for five seconds and then changes it back to the original text. #include <GuiConstants.au3> #Include <GuiStatusBar.au3> Opt("WinTitleMatchMode", 4) Local $h_win = WinGetHandle("TestApp") Local $h_status = ControlGetHandle($h_win, "", "msctls_statusbar321") Local $s_text = _GUICtrlStatusBarGetText($h_status) _GUICtrlStatusBarSetText($h_status, "Text has been set") MsgBox(0, "Set", Hex($h_status)) Sleep(5000) _GUICtrlStatusBarSetText($h_status, $s_text) Exit Link to comment Share on other sites More sharing options...
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