Jump to content

Run multi func in a while


Recommended Posts

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
Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...