AutoHotkey Community

It is currently May 24th, 2012, 9:25 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Wait till it's loaded
PostPosted: April 1st, 2007, 6:26 pm 
I got this script:

Code:
Run, c:\


It opens up the C:\-folder.
Then i want to do something in the folder but sometimes it is still loading and my mouseclick is already done. :(

How can i let my script detect when the folder is loaded?
I can use imagesearch or sleep, but how else can i do it?
Thanks in advance!


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 1st, 2007, 7:11 pm 
Online
User avatar

Joined: August 30th, 2005, 8:43 pm
Posts: 8646
Location: Salem, MA
WinWaitActive
Sleep

both should help

_________________
Image
(Common Answers) - New Tutorials Forum - Humongous FAQ


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 1st, 2007, 7:27 pm 
Yep. But sometimes the Window is active but it's content is still loading.
I use sleep but sometimes the window is loaded fast and the sleep is still 'sleeping' and then it's annoying for the user that uses ur program, he thinks the program hangs then.

And sometimes the window isn't loaded fast enough, and the given amount of time to sleep is passed already.

How can i let my script wait till the window is loaded?
Does anyone know the answer?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: April 1st, 2007, 8:29 pm 
Offline

Joined: November 13th, 2004, 4:08 am
Posts: 2951
Location: Minnesota
StatusBarWait, maybe. If there's no way to use that, then you really can't tell for sure without something more complicated like an ImageSearch.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 1st, 2007, 8:46 pm 
Offline

Joined: March 19th, 2007, 12:43 am
Posts: 532
WaitWinActive should work, i tried it for IE. Page was active but not yet loaded, script continued only after it was fully loaded.
P.S. But it did screw up 2 times out of 50 maybe.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Cerberus, crazyace, engunneer, janopn, Pulover, TheDewd, Xx7 and 65 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group