Jump to content

Recommended Posts

Posted (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 by FireFox
Posted

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]

Posted

@Ealric

Take a look to my 'Send File' project, for example i want to run at multiple times _FileReceive or _FileSend :)

Cheers, FireFox.

Posted

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.

Posted

@Authenticity

hm...I think I will have to find another way to do it :) ...

Any suggestions are welcome !

Cheers, FireFox.

Posted

creating different scripts with different functions..

[font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
Posted

@Manjish

no because I want the maximum of stability (connections between scripts...) and this would take 2x more of CPU usage :)

Cheers, FireFox.

Posted

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=25494

Hope 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]

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
×
×
  • Create New...