Jump to content

Dynamic function calls.


Smorg
 Share

Recommended Posts

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

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...