| || |
Crystal 9 dialogue box
The application we run scripts against uses crystal for reporting purposes. To test these reports we usually send the report to a tsv file and then compare it using a clipboard vp.
However, the new crystal "to file" dialogue box uses comboboxes that robot struggles to recognise (ItemText, ItemIndex etc do not work). When recording the following is picked up by the robot:
Window SetContext, "Caption=Export", ""
ComboBox Click, "ObjectIndex=2", "Coords=194,15"
ComboListBox Click, "ObjectIndex=2", "ItemData=2187080"
It appears that the ItemData number is a unique random number assigned by windows/crystal each time the dialogue is opened.
Does anyone know of a way to extract this number as a variable to use in a script?
Re: Crystal 9 dialogue box
Perhaps you could approach the problem from the other end. You know the cordinates of the required object, so starting at one loop through incrementing until you find the object that has the coordinates you require.
YOu will need to use an SQAGetProperty type command to do this.