Sign in to follow this  
Followers 0
BulletMonk

Wait For Some Time

13 posts in this topic

What is the code that makes the script wait some time before executing the next line?

Share this post


Link to post
Share on other sites



What is the code that makes the script wait some time before executing the next line?

sleep (1000) will wait for 1 second, but wait is it your waiting for? a window? a process to start?


Who needs puzzles when we have AutoIt!!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I want to make ir wait for a window to stop loading and then chnage it's title.But since the window is a browser and everyone will have a different homepage I though it would be easier to just let it load for 4 seconds and then continue with the script.

Also since I just downloaded autoit could you show me how to chnage the title of a window?

Edited by BulletMonk

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Darn it - beated lol

tho a WinWait ("Internet Explorer") may be handy to give time for the window to be displayed before setting the title.

Edited by Rick

Who needs puzzles when we have AutoIt!!

Share this post


Link to post
Share on other sites

Thanks a lot.Could you please also explain the script?

Does anyone know a link to autoit glossary?

Share this post


Link to post
Share on other sites

here is your explanation

opt ("WinTitleMatchMode", 2); set the titlematch to match any position in the title-string
sleep (4000); waits 4 seconds
winsettitle("Internet Explorer", "", "Something else"); rename the window-title 'google.com - Microsoft Internet Explorer'  -becomes- 'Something else'

@rick: sry for being faster ;)

Share this post


Link to post
Share on other sites

Thankyou.

How did you people learn autoit?

I looked for tutorials and explanations but found only this forum and the tutorials on the website which don't explain anything.

Share this post


Link to post
Share on other sites

the only thing you need to learn autoit3 is a good idea some imagination and the helpfile

you should try to do some simple programms first

try to read some other topics as well to learn more about how things work together, there are lots of really good scripts around here and maybe you can use some of their ideas to make some own programms

Share this post


Link to post
Share on other sites

RTFM < Read the fluffy manual, nice version. In otherwords, read the helpfile. It contains EVERYTHING you need to know. It lists all the functions available to AutoIt and more importantly it has an example for EVERYONE.

Should be located at Start > Programs > AutoIt > AutoIt Help File


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

We encourage you to use the helpfile first before trying to forums. The helpfile is very good and has working example that even the noobest of AutoIters can understand -______-.


[u]Old Projects:[/u]A3MORGB2Hex[u]Old Functions:[/u]_TimeAdd/_TimeSub_AddComma_BubbleSort _RippleSort "He who does not understand your silence will probably not understand your words." - Elbert Hubbard.

Share this post


Link to post
Share on other sites

the only thing you need to learn autoit3 is a good idea some imagination and the helpfile

you should try to do some simple programms first

try to read some other topics as well to learn more about how things work together, there are lots of really good scripts around here and maybe you can use some of their ideas to make some own programms

agreed. it's always easiest to learn with direction though (can't just memorize the helpfile) so think of something you want to do, and then learn how to do that... bots for games are good (sometimes frustrating) practice, or anything that you find yourself doing that kind of annoys you, automate it. the first gui program i made was to make my job easier, automatically stepping through screens and adding notes in a command line driven program. and the forum is great for helping you learn. if someone has a problem that you think you could help solve, try to write out a working solution, researching whatever you get hung up at. you'll be making very quick progress i promise.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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