Jump to content

Recommended Posts

Posted

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.

Posted

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

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
×
×
  • Create New...