I have a simple database application, for which I want to automate the following:
- Click on ‘View Table’ button
- Start timer
- Wait till the content appears
- End timer
- Click on ‘Close Table’ button
repeat this process for 50 times and calculate the average time.
So, my question is:
I know how to do all other steps with autohotkey but 3. Is it possible to detect that the fetching operation is done, if I do not have code?
As Gary Hughes said in the comment, one solution is to grab text of the window or text of a textbox and compare to see if its changed.
Another solution would be to take a screenshot of an area of the original or changed window that will always be there, and then do an
ImageSearchto check if its visible or not.Another would be to notice if a certain area of the window changes color when the content appears, and then do a
PixelSearchto check for the visibility of a color at a certain x/y location.