TT22 a écrit :Et ça :
Code : Tout sélectionner
#include <iostream>
#include <cstdlib>
#include <windows.h>
#include <AutoIt3.h>
using namespace std;
int main()
{
[b]LPPOINT [/b]coord;
AU3_PixelSearch(330, 60, 1270, 710, 0xFF1274, 0, 1, &coord);
if(coord.x != NULL && coord.y != NULL) {
cout << coord.x << endl;
cout << coord.y << endl;
} else {
cerr << "Couleur inexistante" << endl;
}
}
C:\Users\Nicolas\Desktop\Programme\main.cpp||In function 'int main()':|
C:\Users\Nicolas\Desktop\Programme\main.cpp|19|error: cannot convert 'tagPOINT**' to 'tagPOINT*' for argument '8' to 'void AU3_PixelSearch(long int, long int, long int, long int, long int, long int, long int, tagPOINT*)'|
C:\Users\Nicolas\Desktop\Programme\main.cpp|20|error: request for member 'x' in 'coord', which is of non-class type 'tagPOINT*'|
C:\Users\Nicolas\Desktop\Programme\main.cpp|20|error: request for member 'y' in 'coord', which is of non-class type 'tagPOINT*'|
C:\Users\Nicolas\Desktop\Programme\main.cpp|21|error: request for member 'x' in 'coord', which is of non-class type 'tagPOINT*'|
C:\Users\Nicolas\Desktop\Programme\main.cpp|22|error: request for member 'y' in 'coord', which is of non-class type 'tagPOINT*'|
||=== Build finished: 5 errors, 0 warnings ===|
TT22 a écrit :
Et, sinon, tu as quelle version de la DLL ?
Parceque,
ici il y a ça :
AutoItX:
- Fixed #1686: AU3_PixelSearch crashes.
Donc, si tu as une version inférieur à 3.3.7.0, il se peut que ton problème vienne de là

J'ai téléchargé la version 3.3.8.1 (la dernière), ça crash quand même

T'as essayé le code toi ?