Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Firefox page load wait



  • Please log in to reply
45 replies to this topic
oussamaelouali
  • New members
  • 3 posts
  • Last active: Aug 16 2015 09:14 PM
  • Joined: 09 Jul 2015

Hey everyone , I have been using AHK for a week now and it is absolutely amazing and genuis so a big thanks to the developers .

 

I was also searching for a solution to knowing when the page is fully loaded and thanks to some posts I have found this solution .

 

Using the Imagesearch function with the image below , ahk can detect the reload button which means that the page was fully loaded .

  

  reload button ;dae1ea.png;  URL  http://governingrule...h680/dae1ea.png

 

Script :

 

run http://http://www.autohotkey.com

CoordMode Pixel


sleep 2000

ImageSearch, FoundX, FoundY, 810, 30, 870, 80, C:\Users\user1\Desktop\AHK Scripts\reload image.png



while (ErrorLevel != 0)
{
sleep 200
ImageSearch, FoundX, FoundY, 810, 30, 870, 80, C:\Users\user1\Desktop\AHK Scripts\reload image.png

}


MsgBox  PAGE LOADED

 

 

" 810, 30, 870, 80 " are the coordinates of the box where ahk searches for the image .

 

Hope this helps .