j'utilise ce code pour test :
#include <ImageSearch.au3>
#include <MsgBoxConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 615, 437, 192, 124)
Global $Button1 = GUICtrlCreateButton("Button1", 176, 200, 169, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
test()
EndSwitch
WEnd
Func test()
$result = ImageSearch("test.bmp",0,0,0,0)
if $result=1 Then
MsgBox(0,"Trouvé","L'image a été trouvé")
EndIf
EndFunc
#include <MsgBoxConstants.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
Global $Form1 = GUICreate("Form1", 615, 437, 192, 124)
Global $Button1 = GUICtrlCreateButton("Button1", 176, 200, 169, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
test()
EndSwitch
WEnd
Func test()
$result = ImageSearch("test.bmp",0,0,0,0)
if $result=1 Then
MsgBox(0,"Trouvé","L'image a été trouvé")
EndIf
EndFunc
et j'ai cette erreur sur l'udf. Pourquoi je ne sait pas .