Sign in to follow this  
Followers 0
mbkowns

RunWait() for a function?

2 posts in this topic

Is there a way to do a RunWait() for a function?

This way I can have all my code in functions and run the next one when it completes.

example

RunWait(_InstallAltiris())

_InstallAltiris()

_VirusScanFramepkg()

thanks

Share this post


Link to post
Share on other sites



Autoit only does one thing at a time... so that is how it works. Once you've called a function, unless you (based on some error conditioning say) tell it to break executing that function, it will continue until completion.

:D That was a kinda complicated way of just saying yes.


While ProcessExists('Andrews bad day.exe')
	BlockInput(1)
	SoundPlay('Music.wav')
	SoundSetWaveVolume('Louder')
WEnd

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