Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keeping Macro Going during image find
#3
for (int i = 0; i < 6; i++) {  
    wnd.find(1, "window", "application").Activate();
    string image = @"image:";
    var im = uiimage.find(-300, new(w1, (1322, 1103, 117, 112)), image, IFFlags.WindowDC, diff: 10);
    if (im != null) { keys.send("y"); print.it("agree"); } else { print.it("disagree"); }
    5.s();

Thank you so much for the reply.
I fixed it earlier with the above code, and figured it was a good time to fix the popups from happening so I wouldn't have to program something to close them.


Messages In This Thread
Keeping Macro Going during image find - by Stu - 11-08-2023, 11:48 PM
RE: Keeping Macro Going during image find - by Stu - 11-09-2023, 07:04 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)