Sign in to follow this  
Followers 0
norax

using au3_pixelsearch with c++

1 post in this topic

so ive managed to get the command to run but if the error value would be 0 the program crashes heres what i have so far any help would be greatly appreciated

 

#include <windows.h>
#include "resource.h"
#include <iostream>
#include "AutoItX3_DLL.h"
using namespace std;

int main() {
    RECT T; POINT B;
    T.left = 30; T.right = 35; T.top = 500; T.bottom = 505;
    AU3_PixelSearch(&T,0xFF0000,10,0,&B);
    if (AU3_error() == 1) { cout << "No Match" << endl; }
    else if (AU3_error() == 0) { cout << "Match" << B.x << B.y << endl; }
    return 0;
}

 

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0