vietnam929 Posted January 29, 2010 Share Posted January 29, 2010 (edited) I want to run multi function in a while, i tried to search in forum but i failed. i know function Createthread can do it, but i dont know much about Winapi , i just can run multi function with no param, but with param i cant. Some pro help me please Edited January 29, 2010 by vietnam929 Link to comment Share on other sites More sharing options...
JohnOne Posted January 29, 2010 Share Posted January 29, 2010 From what I understand, Autoit3 cannot multithread at this time and is not on the to do list. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
James Posted January 29, 2010 Share Posted January 29, 2010 vietnam929, AutoIt is not multi threaded so the simple answer is no. I don't know if this applies to your script, but you could call the second function every time it finishes the first: While 1 One() Sleep(500) WEnd Func One() For $i = 1 To 10 ConsoleWrite(">" & $i & @CRLF) Next Two(@ScriptName) EndFunc Func Two($ioParam) ConsoleWrite("->" & $ioParam & @CRLF) EndFunc Stop being vague and tell us what you want your script to do. James Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ 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