AdlibEnable Error

37 posts in this topic

J0ker 3

Ok, I'm having problem with a certain part of my script. It has been made to protect the script to stuck, it's an anti-stuck function. A function is called every 6000ms to check if the mouse isnt moving. If the test succeed 10 time in a row, that mean that the script is stuck, then the script restart. I'm having one problem:

1. If the test suceed and the function Start() is called, the AdlibEnable stop to work and I dont know why.

Share this post

Link to post

Share on other sites

BrettF 24

So you want Start () to be run if the test to see if the mouse has not moved in (whatever the time was...) and if enter was pressed you want Start () to be called? Is that right?? cause now im confusing myself

Share this post

Link to post

Share on other sites

J0ker 3

Valuater : I just putted ToolTip("Time: " & $Timestack,0,13) to see if the the Function ScriptStuck() was working, it's not part of my script. Maybe I explained wrong my problem:

I have a long script. I made the Adlilenable to prevent the script to eventual bugs. It runs as an external function while my main script is looping. If there's a delay and the script stuck, the function ScriptStuck will act as an AntiStuck. The problem in my script is that the AdlidEnable work fine until the script is stuck for the first time and $TimeStack = 10 so the function Start() is called.In short, it work only one time then then AdlidEnable stop to work. I want to find a way to correct that. Why the AdildEnable work only one time?

EDIT: If I run this little script alone, it work but If I run it in my real script ( there's a loop in the Main function) it work only one time.

Share this post

Link to post

Share on other sites

Valuater 107

Valuater : I just putted ToolTip("Time: " & $Timestack,0,13) to see if the the Function ScriptStuck() was working, it's not part of my script. Maybe I explained wrong my problem:

I have a long script. I made the Adlilenable to prevent the script to eventual bugs. It runs as an external function while my main script is looping. If there's a delay and the script stuck, the function ScriptStuck will act as an AntiStuck. The problem in my script is that the AdlidEnable work fine until the script is stuck for the first time and $TimeStack = 10 so the function Start() is called.In short, it work only one time then then AdlidEnable stop to work. I want to find a way to correct that. Why the AdildEnable work only one time?

EDIT: If I run this little script alone, it work but If I run it in my real script ( there's a loop in the Main function) it work only one time.

I am telling you that this test script you posted (with the 1 tooltip addition i made) is still running on my computer and still working... there is no problem with this script continueing the AdlibEnable() Function

Share this post

Link to post

Share on other sites

CoderDunn 1

Well this is gonna be difficult. Hopfully you can come up with something based on my example. If it comes down to it, you can always have the script restart itself to solve the adlib problem. Well I gotta get off the internet. Dial up takes up phone line and my mom hates it