Sign in to follow this  
Followers 0
undead

possible to do it ?

6 posts in this topic

Can auto it run in one program two scripts ?

run autoit my program and he do something while in the same time second script is working ?

I dont wanna have two auto it programs active that why i am asking.

Share this post


Link to post
Share on other sites



AutoIt is not a multi thread. But there are some options of including the second script. Take a look at AdlibEnable() in the help file, that may help a bit.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

ok if i understand i can do like that ? :

AdlibEnable ( "CheksIFsomeErrorhere" , 60000 )

Func CheksIFsomeErrorhere()

If WinActive("Error") Then

WinKill("Error")

EndIf

If WinActive("sraczka") Then

WinKill("sraczka")

EndIf

EndFunc

;my main script sstarts

while 1 ..............

Wend

SO WHEN my main script will be working then that function on start will be checking for that windows all the time ? every one minute as i wrote there ?

thanks for helping :P

Share this post


Link to post
Share on other sites

AdlibEnable is nice, but it can be stopped by some dialogs! Check this discussion, where you can find some nice tricks about how do run another au3 script from the first one or restart the main exe and run another part of its script.

BTW.. "scrazka"?..how disgusting name of window. Are you Polish right? Some of us understand! :P

Share this post


Link to post
Share on other sites

yes polish ... sraczka windows was only an example :P ok i go to your link now.

Share this post


Link to post
Share on other sites

hmm so here can be problem but my program have msg boxes and file open dialog only at first start then he read all from ini file.

If he will only pauses main script while doing adlib script it is ok. I must test it and maybe after first run program should be resetted and then adlib function without any msg boxes will be working cool. Thx anyway

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