geth44 Posted July 28, 2017 Share Posted July 28, 2017 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 ControlSetTextPosition: 0, 0 Size: 149, 29 Anyone has an explanation ? Thanks in advance geth44 Link to comment Share on other sites More sharing options...
Danp2 Posted July 28, 2017 Share Posted July 28, 2017 Show your code where you changed the caption and then tried retrieving the new value. Latest Webdriver UDF Release Webdriver Wiki FAQs 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