Jump to content
UBot Underground

Stuck In Infinite Loop


Recommended Posts

I forgot to increment a variable and now I am stuck in an infinite loop that displays an alert box.

I did not save my project in the last hour.

How can I break out of the loop?

Since it keeps displaying the alert I can't click stop.

I have tried quickly pressing enter, to dismiss the alert box, then clicking stop but doesn't work.

And ideas?

Thanks!

 

Link to post
Share on other sites

You have to have speed and good fortune.
1. Click on the dialog, press "Enter" several times.
2. Press During the key. Move the mouse to close the program
3. If the timing is correct You will see the prompt to save your work.

Link to post
Share on other sites

my loop is too quick. after either clicking ok or pressing enter the alert box just flickers and re appears before I could even move the mouse.

I even tried another macro program to click either x or stop immediately after clicking ok and ran it 10,000 times to no avail.

crazy there is no ctrl-break like in other IDEs.

Link to post
Share on other sites

my loop is too quick. after either clicking ok or pressing enter the alert box just flickers and re appears before I could even move the mouse.

I even tried another macro program to click either x or stop immediately after clicking ok and ran it 10,000 times to no avail.

crazy there is no ctrl-break like in other IDEs.

 

 

Correct me if im wrong (I often am lmao)

but if UBot closes and you haven't saved then you should be presented with a window the next time you start UBot to restore any UNsaved work.

 

 

Also, if you want to prevent this happening again you can place a variable within the loop and a temp button to make it cut out or stop,

 

for example, .. 

 

The temp button will switch a variable true if false and false if true (on and off if you like)

then place a variable like "#running=true" at the start of your code

 

Then within EVERY "loop" or "loop while" use the "both" function along side whatever your using, 

The first condition will be your original process commands

and the second condition something like :

"If > #running = true - Then > continue(*your loop code*) - Else > $nothing"

 

 

 

 

hope you get it sorted without losing much work

CJ

Link to post
Share on other sites
cүвεя_נυηкιε: Thanks for responding.

neither of those will work because the alert box is modal meaning it takes all focus. You cannot click anything else within ubot including stop, close, or even a user button.

I ended up doing a Ctrl-alt del and ending ubot

Link to post
Share on other sites

 

cүвεя_נυηкιε: Thanks for responding.
neither of those will work because the alert box is modal meaning it takes all focus. You cannot click anything else within ubot including stop, close, or even a user button.
I ended up doing a Ctrl-alt del and ending ubot

 

 

 

Sounds annoying, tho Pash is right with the speed thing, 

if you press enter continuously and click the stop button at the same time it is possible to eventually catch one, 

 

hopefully when you restart you will get the option to restore, 

In case you dont I believe there is a folder that contains a load of unsaved and temp files, you might be able to recover from there, 

it something like "C:\Users\windows_user\AppData\Roaming\UBot Studio\AutoSave"

 

 

Cheers

CJ

Link to post
Share on other sites

Sounds annoying, tho Pash is right with the speed thing, 

if you press enter continuously and click the stop button at the same time it is possible to eventually catch one, 

 

hopefully when you restart you will get the option to restore, 

In case you dont I believe there is a folder that contains a load of unsaved and temp files, you might be able to recover from there, 

it something like "C:\Users\windows_user\AppData\Roaming\UBot Studio\AutoSave"

 

 

Cheers

CJ

I have that folder but it is empty. must be a setting somewhere to enable autosave

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...