So i was starting to build a bot for a work on autoit, and i only made this to check if it detects when firefox is opened or not, and it does not work!
Code:
#include <ImageSearch.au3>
$TimeTolerance = 0
$FFOpenPath = "C:\Program Files (x86)\Mozilla Firefox\firefox.exe"
$x = 0
$y = 0
ShellExecute($FFOpenPath)
Do
$search = _ImageSearch('FFOpened.bmp', 0, $x, $y, 0)
If $search = 1 Then
MsgBox(0,"ImageSearch","It worked!")
ExitLoop()
ElseIf $search = 0 Then
MsgBox(0,"ImageSearch","Can't find image!")
Sleep(5000)
$TimeTolerance = $TimeTolerance + 1
EndIf
Until $TimeTolerance = 3
It does not show neither msg box for "Cant find image" or "It worked!"
The bot simply runs firefox and does nothing more
Can you help me?
Thanks