karudish Posted July 23, 2014 Share Posted July 23, 2014 Hi, newbie on autoit here. I'm trying to make a simple script for running a boring job on firefox, but i am having trouble already in the beggining of this xD So i know there is a script called FF.au3 to make it easy to work on ff.. but i had trouble to work on it so i tried this: #include <ImageSearch.au3> $TimeTolerance = 0 $FFOpenPath = [My Firefox.exe path] $FFOpened = [An Image that has to mandatorily appear when ff starts] ShellExecute($FFOpenPath) Do $search = _ImageSearch($FFOpened, 1, $x, $y, 0) If $search = 1 Then MsgBox(0,"ImageSearch","It worked!") ExitLoop() EndIf If $search = 0 Then MsgBox(0,"ImageSearch","Can't find image!") Sleep(5000) $TimeTolerance = $TimeTolerance + 1 EndIf Until $TimeTolerance = 3 Aaaand... it's not working.. It opens firefox but none of the MsgBoxs shows up.. i'm not suprised for not working cause i'm kinda new to scripting language but i don't know what i did wrong : Help would be apreciated :DD Thanks! =) Link to comment Share on other sites More sharing options...
Bert Posted July 23, 2014 Share Posted July 23, 2014 use _ff.au3. Image search is MUCH more unstable. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
karudish Posted July 23, 2014 Author Share Posted July 23, 2014 ff.au3 is not working too even if i do type only this: #Include <FF.au3> _FFStart("http://www.autoitscript.com/forum/index.php") it doesn't start ff.. and i have mozrepl activating on startup Link to comment Share on other sites More sharing options...
Bert Posted July 24, 2014 Share Posted July 24, 2014 did you try the example script? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
karudish Posted July 24, 2014 Author Share Posted July 24, 2014 This one? #Include <FF.au3> _FFStart("http://ff-au3-example.thorsten-willert.de/") If _FFIsConnected() Then Sleep(2000) _FFAction("presentationmode",true) Sleep(2000) _FFOpenURL("http://www.google.com") Sleep(2000) _FFAction("back") _FFAction("presentationmode",false) Sleep(2000) _FFOpenURL("chrome:bookmarks") Sleep(2000) _FFAction("alert","Bye bye ...") _FFQuit() EndIf Yes, and the script just does nothing :| Link to comment Share on other sites More sharing options...
Bert Posted July 24, 2014 Share Posted July 24, 2014 What version of Firefox do you have? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
karudish Posted July 24, 2014 Author Share Posted July 24, 2014 tried with both 30.0 and 31.0 (latest i think) My AutoIt version is 3.3.12.0 if it matters. Btw, i tried to compile the script and run it, and it appears me this errors: http://imgur.com/6hEN0Z0 http://imgur.com/yDtvegW Link to comment Share on other sites More sharing options...
Bert Posted July 24, 2014 Share Posted July 24, 2014 (edited) ok, I've seen that one. The path in _ff.au3 that points to where your installation of Firefox is incorrect. Edited July 24, 2014 by MBALZESHARI The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
karudish Posted July 24, 2014 Author Share Posted July 24, 2014 Went through regedit to know the correct path to put on ff.au3 and it stills giving me the same error, and i checked this is the correct path to open firefox.exe Link to comment Share on other sites More sharing options...
Bert Posted July 24, 2014 Share Posted July 24, 2014 hmmmm....Is your OS 64 bit? The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
karudish Posted July 24, 2014 Author Share Posted July 24, 2014 Yes it is. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now