Jump to content
Sign in to follow this  
Wolfshare

[Solved] Wait untill Firefox page will be loaded

Recommended Posts

Wolfshare

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 by Wolfshare

Share this post


Link to post
Share on other sites
water

Use function _FFLoadWait of FF.au3 (the Firefox UDF).


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Wolfshare

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? :)

Share this post


Link to post
Share on other sites
water

Correct.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Wolfshare

Thanks, will try it..

Share this post


Link to post
Share on other sites
Wolfshare

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?

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Wolfshare

Sure, sorry :)

Share this post


Link to post
Share on other sites
Wolfshare

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 by Wolfshare

Share this post


Link to post
Share on other sites
Jos

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 Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Wolfshare

Sorry, i have searched for examples, but cant find anything :/ could you provide any example what i need? ;/ this would help me alot.

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Wolfshare

This is not works to me still, please could i get any support via skype? :) It would help me alot.

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Wolfshare

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.

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
Wolfshare

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..

Share this post


Link to post
Share on other sites
water

Use _FFAction("Home") to return to the home page.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
water

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 (2018-06-01 - Version 1.4.9.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2018-09-01 - Version 1.3.4.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×