Sign in to follow this  
Followers 0
vietnam929

Run multi func in a while

3 posts in this topic

#1 ·  Posted (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 by vietnam929

Share this post


Link to post
Share on other sites



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

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