The Man Posted December 3, 2005 Posted December 3, 2005 I have a problem: I use in my script the WinWait() command and it's not functioning with Mozilla FireFox but it works with Microsoft Internet Explorer ... Whats wrong with my FireFox? [font="Arial"] If you can't beat them, arrange to have them beaten ...[/font]
LxP Posted December 3, 2005 Posted December 3, 2005 Let's take a look at your code please! I have no problem using WinWait() with Firefox here.
Moderators SmOke_N Posted December 3, 2005 Moderators Posted December 3, 2005 I have a problem:I use in my script the WinWait() command and it's not functioning with Mozilla FireFox but it works with Microsoft Internet Explorer ...Whats wrong with my FireFox?Your Opt("WinTitleMatchMode", '') is wrong or your title is wrong. If this doesn't work, then as LxP said... this is a moot question without any code. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
The Man Posted December 4, 2005 Author Posted December 4, 2005 Okay then heres the code:source.au3 [font="Arial"] If you can't beat them, arrange to have them beaten ...[/font]
LxP Posted December 4, 2005 Posted December 4, 2005 I believe that this line causes the problem for Firefox:WinWait("Larkinor" , "Done")If you inspect a Firefox window using AutoIt Window Info, you will find that Firefox windows do not display any text in a form that AutoIt can see -- hence your script will wait forever at this line. Removing the red portion will prevent this, however your script will not wait until the page finishes loading.You will notice that the Stop button greys out when the page is ready. You could test for this using PixelGetColor().
The Man Posted December 4, 2005 Author Posted December 4, 2005 (edited) The PixelGetColor() it's a good idea, only i dont know how to manage to pause the script until that pixel changes its color.Any suggestions? Edited December 4, 2005 by The Man [font="Arial"] If you can't beat them, arrange to have them beaten ...[/font]
LxP Posted December 4, 2005 Posted December 4, 2005 Something like this will do it:Do Sleep(50) Until PixelGetColor(190, 66) <> 0xF00000This works on my system but I've moved my toolbar icons since installing, so you'll need to adjust the values on the Until line.
The Man Posted December 5, 2005 Author Posted December 5, 2005 Thanks for the help, it worked !!! [font="Arial"] If you can't beat them, arrange to have them beaten ...[/font]
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