Sign in to follow this  
Followers 0
BornExtreme

problam with ending a program...

8 posts in this topic

#1 ·  Posted (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 by BornExtreme

Share this post


Link to post
Share on other sites



Shift + p

P

p only

p

Make sure you using the right keys to pause.

Share this post


Link to post
Share on other sites

oops:D

lol thank you its now working.

can you plz tell me how can i check if a site was loaded?

Share this post


Link to post
Share on other sites

oops:D

lol 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]

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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
WEnd

Does 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]

Share this post


Link to post
Share on other sites

nice idea but what if the user using opera or firefox (i actualy using firefox...)

Share this post


Link to post
Share on other sites

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]

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  
Followers 0