Jump to content
Sign in to follow this  
comradeb14ck

Threading?

Recommended Posts

comradeb14ck

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.

Share this post


Link to post
Share on other sites
Xenobiologist

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 adlibenable

So 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

Share this post


Link to post
Share on other sites
comradeb14ck

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!

Share this post


Link to post
Share on other sites
zmp

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

Share this post


Link to post
Share on other sites
Shevilie

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

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  

×