I am trying to get text from some error messages across a number of different applications so I have tried:
AddExtender("wwctl44i.dll")
titlewnd=DllHwnd("Warning~")
ctrlhwnd=cWndByID(titlewnd,65535) ; this will change
;ctrlhwnd=cWndBySeq(titlewnd,3) ; this will change
text=cGetEditText(ctrlhwnd)
Message("Message Text", text)
The issue I need to get around is; the text is contained in a control in an edit box and the control will have a different ID, sequence and or class across different applications displaying the error, so how do you manage getting the text without having to change the ID or class? The text in the control is also variable. Any ideas how to cope with this?
Thanks JW