Guest larkstern Posted March 6, 2004 Posted March 6, 2004 I was wondering if autoit in any way supports multi threading. Task: I want to parse a message log file. I need to make a script that will continuely parse a file, that is constantly changing, and report things to another script.. for instance every time it sees a certain string $magicword. this needs to go on behind the scenes while other scripts are running. Is this possible with autoit? thanks much. +larks
Valik Posted March 6, 2004 Posted March 6, 2004 I don't see why multi-threading would be necessary for that task, however, to answer your question, no, multi-threading isn't available in AutoIt. There are multiple ways to communicate to another script, such as writing to a file, changing a window title (Using a handle to the window you want to change the title of would be useful...), writing to the registry, et cetera.
CyberSlug Posted March 6, 2004 Posted March 6, 2004 Heh, I saw In: >> Threading...By: Valikon the main page and thought, "Is Valik going to add multi-threaded support to AutoIt?!?"I was slightly disappointed Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Administrators Jon Posted March 6, 2004 Administrators Posted March 6, 2004 I was wondering if autoit in any way supports multi threading.Task: I want to parse a message log file.I need to make a script that will continuely parse a file, that is constantly changing, and report things to another script.. for instance every time it sees a certain string $magicword.this needs to go on behind the scenes while other scripts are running.Is this possible with autoit?thanks much.+larksYou can always use an ADLIB function. You just tell it to execute every couple of milliseconds to do an operation on your file and then it can set a global variable to something if required.In v2 ADLIB used to be purely for waiting for a rogue window to appear, but in v3 the adlib function can do anything you want - it just acts as another function that is run on a timer. However, while the adlib function is executing your main script is paused until the adlib finishes.
Administrators Jon Posted March 6, 2004 Administrators Posted March 6, 2004 Heh, I saw on the main page and thought, "Is Valik going to add multi-threaded support to AutoIt?!?"I was slightly disappointed The MsgBox function has always been multithreaded (to support the timeout feature).There, happy?
Valik Posted March 6, 2004 Posted March 6, 2004 Heh, I saw on the main page and thought, "Is Valik going to add multi-threaded support to AutoIt?!?"I was slightly disappointed No way in hell I'm trying to add that. That would be less fun than shooting myself in the crotch with a nail gun.
trids Posted March 8, 2004 Posted March 8, 2004 .. and aren't we already multi-threading when we say Run a.o.t. RunWait ?
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