AfterBurn 0 Posted June 23, 2010 Ok i am wondering is there a way to make two func's loop at the same time. I have writen a script and I have func 1() and func 2() I loop them using the While command, but I have to wait for Func 1() to finish before Func 2() will start so is it possible to make Func 1() loop at the same time Func 2() is looping. Please Help. Share this post Link to post Share on other sites
somdcomputerguy 103 Posted June 23, 2010 You can't multithread, but you can AdlibRegister. - Bruce /*somdcomputerguy */ If you change the way you look at things, the things you look at change. Share this post Link to post Share on other sites
AfterBurn 0 Posted June 23, 2010 (edited) You can't multithread, but you can AdlibRegister. SO how would I add this adlib code to my script heres a example MsgBox(4096 ,"Test Program","Looks like it is working", 30) Run("C:\Users\daddysputter\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Accessories\NotePad.exe") Sleep(2000) Func one() winwaitactive("notepad.exe") Sleep(2000) Send("(2 down}") Sleep(10000) Send("{2 up}") EndFunc Func two() winwaitactive("notepad.exe") Send("a") Sleep(1000) Send('b") EndFunc While 1 one() two() WEnd THank for the respons I was afriad I couldnt multithread, guess I was right. Thanks again. Edited June 23, 2010 by AfterBurn Share this post Link to post Share on other sites