BornExtreme Posted May 20, 2005 Share Posted May 20, 2005 (edited) ok this is the program: Dim $i $i = 0 HotKeySet("P" , "Pause") While $i = 0 MouseClick( "left" ,640 , 670) WEnd Func Pause() Exit EndFunc and when i start the program i cant exit from her... can u help me understand why? Edited May 20, 2005 by BornExtreme Link to comment Share on other sites More sharing options...
MHz Posted May 20, 2005 Share Posted May 20, 2005 Shift + p P p only p Make sure you using the right keys to pause. Link to comment Share on other sites More sharing options...
BornExtreme Posted May 20, 2005 Author Share Posted May 20, 2005 oops:D lol thank you its now working. can you plz tell me how can i check if a site was loaded? Link to comment Share on other sites More sharing options...
herewasplato Posted May 20, 2005 Share Posted May 20, 2005 oops:Dlol thank you its now working.can you plz tell me how can i check if a site was loaded?<{POST_SNAPBACK}>See this post:#79903 [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
BornExtreme Posted May 20, 2005 Author Share Posted May 20, 2005 thank you but from what i had understand its help to know when a new page is load... i want to refresh a site and i need the software to know when the site is finished loading... thank you! Link to comment Share on other sites More sharing options...
herewasplato Posted May 20, 2005 Share Posted May 20, 2005 thank you but from what i had understand its help to know when a new page is load... i want to refresh a site and i need the software to know when the site is finished loading... thank you!<{POST_SNAPBACK}>...same thing - only you won't be able to tell it from my code:AutoItSetOption ("WinWaitDelay", 1) ;(milliseconds) AutoItSetOption ("WinTitleMatchMode", 2) ;1-from the start, 2-any substring, 3-exact match While 1 Sleep(5) WinWait("Microsoft Internet Explorer","") WinActivate("Microsoft Internet Explorer","") WinWaitActive("Microsoft Internet Explorer","") Send ("{F5}") WinWait("Microsoft Internet Explorer","Done") MsgBox(0,"AutoIt","Should be done.") ;put your code here WEndDoes not work for all pages - some pages load several parts and display opening/done/opening... for those pages you have to get creative. Also, you might need to detect hidden text - see help file [size="1"][font="Arial"].[u].[/u][/font][/size] Link to comment Share on other sites More sharing options...
BornExtreme Posted May 21, 2005 Author Share Posted May 21, 2005 nice idea but what if the user using opera or firefox (i actualy using firefox...) Link to comment Share on other sites More sharing options...
herewasplato Posted May 21, 2005 Share Posted May 21, 2005 nice idea but what if the user using opera or firefox (i actualy using firefox...)<{POST_SNAPBACK}>Assimilate. Resistance is futile.Flamebait > Why would you use anything but IE?I resisted IE as long as I could, my employer insisted.Do you need code for making firefox refresh or just to know when a refresh has completed? Are saying that you cannot see any text or hidden text differences between a loaded page and one that is loading? Then look at this post:http://www.autoitscript.com/forum/index.ph...t=0entry75790 [size="1"][font="Arial"].[u].[/u][/font][/size] 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