2 posts in this topic
Visible text issues
I have an issue where I am trying to automate an installer (installer is setup factory 7). One of the screens does not have any custom visible text except for the three buttons (back, next and cancel).
I am using WinWait to wait for each screen to appear and using the visible text as an distinguishing feature. Problem is when I store the three button combination as a string, it does not match the visible text. WinGetText returns what looks like the following:
&Next > &Cancel < &Back
However, it does not match. And when I do a MsgBox(0, "Test", WinGetText($dlg)) and then use au3info on the messagebox dialog, the visible text is actually:
&Next >&Cancel< &Back
where the  character is actually a rectangle character.
Question is, is there a way to store the visible text as a constant for later use?
Fixed the fist code block. Also, I have done some testing and the  character is actually chr(10) so I've modified the string constant to be:
Const $visTextStr = "&Next >" & chr(10) & "&Cancel" & chr(10) & "< &Back" & chr(10)
I've even done the following test"
If StringCompare(WinGetText($dlg), $visTextStr) = 0 Then MsgBox(0, "Test", "Same") EndIf
And the message box pops up saying they are the same, however, winwait still times out waiting for the screen.