undead Posted December 6, 2005 Share Posted December 6, 2005 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. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted December 6, 2005 Moderators Share Posted December 6, 2005 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. 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. Link to comment Share on other sites More sharing options...
undead Posted December 6, 2005 Author Share Posted December 6, 2005 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 Link to comment Share on other sites More sharing options...
odklizec Posted December 6, 2005 Share Posted December 6, 2005 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! Link to comment Share on other sites More sharing options...
undead Posted December 6, 2005 Author Share Posted December 6, 2005 yes polish ... sraczka windows was only an example ok i go to your link now. Link to comment Share on other sites More sharing options...
undead Posted December 6, 2005 Author Share Posted December 6, 2005 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 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