FireFox Posted February 17, 2009 Share Posted February 17, 2009 (edited) Hi, perhaps this has been asked and answered but I want better answer... My question is : I have script with some functions, in this functions you have some while and it block the script because you cant do anything else (without the main while or not), so I want to know how can I run this function when its not finished or duplicate this function for run the another when the function isnt finished... PS : I dont want to have multiple executables... Cheers, FireFox. Edited February 17, 2009 by FireFox Link to comment Share on other sites More sharing options...
Ealric Posted February 17, 2009 Share Posted February 17, 2009 Hi,perhaps this has been asked and answered but I want better answer...My question is : I have script with some functions, in this functions you have some while and it block the script because you cant do anything else (without the main while or not), so I want to know how can I run this function when its not finished or duplicate this function for run the another when the function isnt finished...PS : I dont want to have multiple executables...Cheers, FireFox.Post a short code example. My Projects: [topic="89413"]GoogleHack Search[/topic], [topic="67095"]Swiss File Knife GUI[/topic], [topic="69072"]Mouse Location Pointer[/topic], [topic="86040"]Standard Deviation Calculator[/topic] Link to comment Share on other sites More sharing options...
FireFox Posted February 17, 2009 Author Share Posted February 17, 2009 @Ealric Take a look to my 'Send File' project, for example i want to run at multiple times _FileReceive or _FileSend Cheers, FireFox. Link to comment Share on other sites More sharing options...
Authenticity Posted February 17, 2009 Share Posted February 17, 2009 You can use AdlibEnable but at the time this UDF is executed no other code in your script is gets executed so it's not a real multi _FileSend solution. You can start several scripts that do the same function loop as you're trying to avoid... Your real solution is to use C++ using multithreaded program to execute simultaneously code or perhaps use sort of Mutex objects algorithm to block or suspend the desired thread upon request. Sorry, I don't think it's possible with AutoIt yet. Link to comment Share on other sites More sharing options...
FireFox Posted February 17, 2009 Author Share Posted February 17, 2009 @Authenticity hm...I think I will have to find another way to do it ... Any suggestions are welcome ! Cheers, FireFox. Link to comment Share on other sites More sharing options...
Manjish Posted February 17, 2009 Share Posted February 17, 2009 creating different scripts with different functions.. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com Link to comment Share on other sites More sharing options...
FireFox Posted February 17, 2009 Author Share Posted February 17, 2009 @Manjish no because I want the maximum of stability (connections between scripts...) and this would take 2x more of CPU usage Cheers, FireFox. Link to comment Share on other sites More sharing options...
Ealric Posted February 17, 2009 Share Posted February 17, 2009 There's no easy way of doing this without either creating different functiions or use of multithreading. However, you might be able to make use out of this:http://www.autoitscript.com/forum/index.php?showtopic=25494Hope it helps. My Projects: [topic="89413"]GoogleHack Search[/topic], [topic="67095"]Swiss File Knife GUI[/topic], [topic="69072"]Mouse Location Pointer[/topic], [topic="86040"]Standard Deviation Calculator[/topic] Link to comment Share on other sites More sharing options...
FireFox Posted February 17, 2009 Author Share Posted February 17, 2009 @Ealric Thanks for your link, this may help Cheers, FireFox. 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