comradeb14ck Posted May 7, 2007 Share Posted May 7, 2007 Hey. I am writing a nifty little GUI application which runs on a timer. I want the GUI to be fully responsive all the time, but I need the program to run a certain task which takes a few seconds without the GUI dying on me, is there a way to do this? Usually, in C, I would create a separate thread for that process, but with AutoIt I'm not sure. Any help is appreciated! Thanks. Link to comment Share on other sites More sharing options...
xcal Posted May 7, 2007 Share Posted May 7, 2007 Think you'll have to make two scripts of it. How To Ask Questions The Smart Way Link to comment Share on other sites More sharing options...
Xenobiologist Posted May 7, 2007 Share Posted May 7, 2007 Hey. I am writing a nifty little GUI application which runs on a timer. I want the GUI to be fully responsive all the time, but I need the program to run a certain task which takes a few seconds without the GUI dying on me, is there a way to do this? Usually, in C, I would create a separate thread for that process, but with AutoIt I'm not sure. Any help is appreciated!Thanks.Hi,try it with adlibenableSo long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
comradeb14ck Posted May 7, 2007 Author Share Posted May 7, 2007 Th.Meger, thanks. That is what I was looking for. But it seems that it will pause the rest of the script while that runs. That isn't good for me I really need for the GUI to remain responsive. But I will try it and post my results to this thread after I figure out whether the GUI remains responsive or not. Thanks for such quick help at 1:30AM! Link to comment Share on other sites More sharing options...
zmp Posted May 7, 2007 Share Posted May 7, 2007 I'm not sure if autoit supports threading but you can always go around it, just have your 3 second code called in your main while loop (take out sleep() commands tho) I've made a server / client control system that I'd like to put to example scripts.. but I cant post there I code bots :: Need a bot? :: xythec@gmail.com Link to comment Share on other sites More sharing options...
Shevilie Posted May 7, 2007 Share Posted May 7, 2007 You can make some kind of "fake" threading by have several exe and call them with run. Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit 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