Jump to content
Sign in to follow this  

ControlGetText return wrong button caption

Recommended Posts



I got a strong issue with ControlGetText: after changing the caption of a (GUI) button with ControlSetText, I am unable to read back the new caption, ControlGetText always return the initial caption "Start acquisition" (set in GUI creation). I tried ControlGetData, ControlRead, _WinAPI_GetWindowText, _SendMessageA with $WM_GETTEXT ... all return the initial caption while both AutoIt Window Info and Microsoft Spy see the correct changed caption !!!???

>>>> Control <<<<
Class:    Button
Instance:    1
ClassnameNN:    Button1
Advanced (Class):    [CLASS:Button; INSTANCE:1]
ID:    3
Text:    Stop acquisition
<<< Ok this the correct caption displayed and changed with ControlSetText
Position:    0, 0
Size:    149, 29

Anyone has an explanation ?

Thanks in advance


Share this post

Link to post
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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.