Código: Seleccionar todo
$seleccion = GUICtrlCreateCombo("Select", 104, 200, 57, 25, BitOR($CBS_DROPDOWN, $CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "2|4|6")
Func buscarimg()
$buscar_x = 0
$buscar_y = 0
Local $i = 0
$selector = GUICtrlRead($seleccion)
$search_img = _ImageSearch('axep.bmp', 1, $buscar_x, $buscar_y, 0)
While $i <= $selector
If $search_img = 1 Then
MouseClick($MOUSE_CLICK_LEFT, $buscar_x, $buscar_y, 2)
EndIf
clickexit()
If $i <= $selector Then
MsgBox(0, "Error", "la imagen no se encontro")
Exit
EndIf
$i = $i + 1
WEnd
EndFunc ;==>buscarimg
Func clickexit()
$click_x = 0
$click_y = 0
$search_exit = _ImageSearch('exit.bmp', 1, $click_x, $click_y, 0)
If $search_exit = 1 Then
MouseClick($MOUSE_CLICK_LEFT, $click_x, $click_y, 1)
EndIf
EndFunc ;==>clickexit