ed08724 6 Posted July 22, 2016 Report Share Posted July 22, 2016 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! Quote Link to post Share on other sites
pash 504 Posted July 22, 2016 Report Share Posted July 22, 2016 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 program3. If the timing is correct You will see the prompt to save your work. Quote Link to post Share on other sites
ed08724 6 Posted July 22, 2016 Author Report Share Posted July 22, 2016 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. Quote Link to post Share on other sites
cүвεя_נυηкιε 68 Posted July 22, 2016 Report Share Posted July 22, 2016 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 commandsand the second condition something like :"If > #running = true - Then > continue(*your loop code*) - Else > $nothing" hope you get it sorted without losing much workCJ Quote Link to post Share on other sites
pash 504 Posted July 22, 2016 Report Share Posted July 22, 2016 and try check auto save file 1. Press key WIN+R2. enter "%AppData%\UBot Studio\AutoSave" Quote Link to post Share on other sites
ed08724 6 Posted July 22, 2016 Author Report Share Posted July 22, 2016 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 Quote Link to post Share on other sites
ed08724 6 Posted July 22, 2016 Author Report Share Posted July 22, 2016 pash: when it happens again I will give that a try. Thanks Quote Link to post Share on other sites
cүвεя_נυηкιε 68 Posted July 22, 2016 Report Share Posted July 22, 2016 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" CheersCJ Quote Link to post Share on other sites
ed08724 6 Posted July 29, 2016 Author Report Share Posted July 29, 2016 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" CheersCJI have that folder but it is empty. must be a setting somewhere to enable autosave Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.