Hallo Jungs
habe ein fertigen Code der auch auf XP läuft aber auf Win7 nicht.
Hab schon alles Versucht aber ohne erfolg hatt noch einer ne Idee?
die ImageSearchDLL.dll ist im Skript dir und im WIN/System32 ordner, UAC ist aus.
Mfg
Vierus
habe ein fertigen Code der auch auf XP läuft aber auf Win7 nicht.
Hab schon alles Versucht aber ohne erfolg hatt noch einer ne Idee?
die ImageSearchDLL.dll ist im Skript dir und im WIN/System32 ordner, UAC ist aus.
Code:
#include <imagesearch.au3>
#RequireAdmin
Dim $Bild[6]
$Bild[0] = 5
$Bild[1] = "1.bmp"
$Bild[2] = "2.bmp"
$Bild[3] = "3.bmp"
$Bild[4] = "4.bmp"
$Bild[5] = "5.bmp"
$x1=0
$y1=0
$result = _WaitForImagesSearch($Bild,1,1,$x1,$y1,0)
If $result = 0 Then
MsgBox(0,"Keine Bilder", "Die Bilder wurden nicht gefunden")
ProcessClose("****.exe")
Exit
EndIf
TrayTip("Bild Nummer", $result & " gefunden", 10, 1)
Sleep(5000)
Global $buttonarray[6] = ['5', '1', '2', '3', '4', '5']
For $i = $result to $buttonarray[0]
If ControlCommand('', '', $buttonarray[$i], 'IsVisible', '') Then
ControlClick('', '', $buttonarray[$i])
Else
ExitLoop
EndIf
TrayTip("Drücke den Button", $buttonarray[$i], 10, 1)
Sleep(5000)
Next
Exit
Vierus