Jump to content

...


stuka
 Share

Recommended Posts

Wherever a function does a disk read such as with FileExists, it takes a while, and I often will use a Sleep(1300) or something after such a call. Try to see if you can repeat a function that does a disk read or write, less often than twice a second.

Also, I heard it helps to make your main loop smaller by using functions to contain all the code to for instance, build a GUI, and call that function from the loop:

Case $msg = $name
    Build_GUI()
Bert can tell you more about the applicability of the Canon here.

Also if "sound.wav" is a big file, see it you can make it smaller.

We don't have the code to "billy.exe" and that might be the culprit, but right after you first launch it, since this script is starting up at the same time, I would put in a Sleep(1800) or something like that.

Edited by Squirrely1

Das Häschen benutzt Radar

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