Sign in to follow this  
Followers 0
kjpolker

Stop previous function and start new function

1 post in this topic

#1 ·  Posted

I am looking for a way to use a HotKeySet in order to abort a current function and start at a new function.

Currently the only help I can find is to use Exit, but this just terminates the running program totally. Is there a way to just have the program back track to an earlier point?

If this is unclear perhaps I can explain more, I have a program that runs through a series of automation such as click and key presses, in my first function I have the initial set up, then it goes to options, then finally it runs. When I press a key I would like the program to abort running and go back to the options function. I thought it would be simple but when I press the key to go back it continues running the final function and just kind of gets stuck at the options function where it won't continue.

HotKeySet("o", "Options")

Func Setup()
    ;Some setup
  Options()
EndFunc

Func Options()
    ;Some options
  Begin()
EndFunc

Func Begin()
    ;automation loop
EndFunc

Does this clear anything up?

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  
Followers 0