Jump to content

How to change Status Bar text?


qwert
 Share

Recommended Posts

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...