Jump to content

How can I have a function run constantly during a script?


Recommended Posts

I need to run a script that pauses whenever my browser is loading. I made a function that will pause the script whenever the loading bar appears, but I have to reference this function after every statement to make sure that the browser is not loading. Is there a way that I can have my loading function constantly running in the background so that if a loading bar comes up, the script will pause until the bar goes away? I was thinking something like hotkeyset() but using another function instead of the keypress to start the function.

I suppose I could use two scripts, but I would like it if I could keep it all in the same script.

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...