What is the With object which you are using?
Usually it should be browser. It works without the object dot also. (remove the dot in front of dialog)
Try with the following modified statement:
Usually it should be browser. It works without the object dot also. (remove the dot in front of dialog)
Try with the following modified statement:
Code:
Dialog("text:=File Download.*").WinButton("text:=Cancel","Index:=1").Highlight(0)