Smorg Posted November 28, 2006 Share Posted November 28, 2006 Say i'm running a few threads of au3 that need to interact cleanly. What if i want to send a message to one of em to jump to a function, or dynamically call a function, without any interference to the system. The only ways i can think of to do this are with hotkeyset, or a gui message like OnEvent. Are there any other event-driven functions besides these? Autoit needs some more event options imo. I suppose i could sorta "hack" my own script by injecting a command, but thats kinda roundabout too. Suggestions? :-) Link to comment Share on other sites More sharing options...
dabus Posted November 28, 2006 Share Posted November 28, 2006 You could use EnvSet/EnvGet. What's the reason why you don't use #include to call a function? Or Run $MyApp if sth. special happens? Link to comment Share on other sites More sharing options...
Smorg Posted November 28, 2006 Author Share Posted November 28, 2006 EnvSet/Get requires constant polling of the variable in order for it to work. I want it event driven such as hotkeyset "interrupt what ur doing and go here" Also environment vars only work from parent to child process. You can't go uphill unfortunatly. I need 2 scripts because both will have main loops that must run independantly and at least one of them needs to refresh at high speeds. This is much more efficient than using something like AdLibEnable to do something similar and interrupt the calculations the other script is performing. 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