Wolfshare Posted March 2, 2013 Share Posted March 2, 2013 (edited) Hello, i would like to get some support, i would like to mike auto it script wait untill firefox page will be fully loaded, i tried to make it with wait(delay) but this is not what exactly i wanted to do.. Because every time the internet speed could be different and sometimes page cannot be loaded so qucikly, i saw tutorials there is few tips to make it on _IE, but i want to get it work on Firefox I would like to learn this thing. Edited March 3, 2013 by Wolfshare Link to comment Share on other sites More sharing options...
water Posted March 2, 2013 Share Posted March 2, 2013 Use function _FFLoadWait of FF.au3 (the Firefox UDF). My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Wolfshare Posted March 2, 2013 Author Share Posted March 2, 2013 Use function _FFLoadWait of FF.au3 (the Firefox UDF).Thanks so abowe the script i should use #include <FF.au3>Then i will be able to use _FFLoadWait command? Link to comment Share on other sites More sharing options...
water Posted March 2, 2013 Share Posted March 2, 2013 Correct. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Wolfshare Posted March 2, 2013 Author Share Posted March 2, 2013 Thanks, will try it.. Link to comment Share on other sites More sharing options...
Wolfshare Posted March 2, 2013 Author Share Posted March 2, 2013 By that way, anyone has tried Vmware (vds) to play their autoit scripts? I have one question about reverting to snapshot. Is that possible to make automaticly revert to snapshot from VDS direcctly? Link to comment Share on other sites More sharing options...
water Posted March 2, 2013 Share Posted March 2, 2013 I would open a new thread in the Chat forum. You won't get much replies if you ask a VMWare question in a Firefox thread My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Wolfshare Posted March 2, 2013 Author Share Posted March 2, 2013 Sure, sorry Link to comment Share on other sites More sharing options...
Wolfshare Posted March 2, 2013 Author Share Posted March 2, 2013 (edited) Correct. Strange.. There are example of my script: pt("WinTitleMatchMode", 2) #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #include <FF.au3> global $clr global $file global $times global $clr2 global $x Local $x ; $i = 0 $x = 0 $r = 0 $t = 0 While $i <= 10 Do MouseMove(442, 585) ; Remove icons MouseMove(784, 586) SECRET CODE--------------- WinClose("Genuine") WinClose("Windows Security Center") WinClose("Atsisiuntimai") SECRET CODE--------------- Until $x = 1 SECRET CODE--------------- Opt("WinTitleMatchMode", 2) SECRET CODE--------------- Send("{SPACE}") EndIf ;~ DL part WinActivate("Firefox") ;Activate Firefox Sleep(2000) MouseClick("left", 704, 91, 1, 0) ;CLICK ON HOME. After that i tried to add _FFLoadWait function, once script clicks on home page, i tought it will sleep till page will be loaded fully, but script sleeps forever, nothing happens after clicking it, something is wrong here, i have added FF.Au3 in includes directory, so i have no idea what could be wrong here. Edited March 2, 2013 by Wolfshare Link to comment Share on other sites More sharing options...
Developers Jos Posted March 2, 2013 Developers Share Posted March 2, 2013 i have added FF.Au3 in includes directory, so i have no idea what could be wrong here.Maybe you need to start reading about the FF udfs before using them so you understand what they do and how to use them.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
water Posted March 2, 2013 Share Posted March 2, 2013 Looks like you are mixing Win* functions and the FF UDF. Call the UDF function to load the URL and to wait until it has loaded. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Wolfshare Posted March 2, 2013 Author Share Posted March 2, 2013 Sorry, i have searched for examples, but cant find anything :/ could you provide any example what i need? ;/ this would help me alot. Link to comment Share on other sites More sharing options...
water Posted March 2, 2013 Share Posted March 2, 2013 On the FF you can find a link to the documentation. Every command comes with an example to show you how to use. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Wolfshare Posted March 3, 2013 Author Share Posted March 3, 2013 This is not works to me still, please could i get any support via skype? It would help me alot. Link to comment Share on other sites More sharing options...
water Posted March 3, 2013 Share Posted March 3, 2013 What have you tried so far? Do you get any error messages? I had a look at _FFOpenURL. The example is straightforward. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Wolfshare Posted March 3, 2013 Author Share Posted March 3, 2013 I tried to do example of script.. #include <FF.au3> _ffstart("http://google.com") _FFLoadWait([$iTimeOut = $_FF_LOADWAIT_TIMEOUT[, $bStop = $_FF_LOADWAIT_STOP]]) MouseClick("left", 704, 91, 1, 0) ;CLICK ON HOME. But after google sucess loaded nothing happens, i mean script not trying to click on home buttom or anywhere else. Link to comment Share on other sites More sharing options...
water Posted March 3, 2013 Share Posted March 3, 2013 Why don't you use _FFClick to click on the button? As I posted above mixing UDF functions with other screen related function is no good idea. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Wolfshare Posted March 3, 2013 Author Share Posted March 3, 2013 Why don't you use _FFClick to click on the button?As I posted above mixing UDF functions with other screen related function is no good idea.Sad ;/ All of the script wroted without FF functions.. Link to comment Share on other sites More sharing options...
water Posted March 3, 2013 Share Posted March 3, 2013 Use _FFAction("Home") to return to the home page. My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
water Posted March 3, 2013 Share Posted March 3, 2013 Sad ;/ All of the script wroted without FF functions..But using screen positions doesn't result in reliable scripts. If the position of the window or your screen resolution changes then your scripts might cease to work. Debugging is fun then My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki 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