Jump to content

ControlGetText return wrong button caption


Recommended Posts

Hi,

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
Name:    
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

geth44

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...