wan Posted September 6, 2022 Posted September 6, 2022 Hello, I want to ask why my scripts sometimes stuck and never end ? It only happen once a while . My script will open an app and automate the process to export Excel File from four Face Recognition devices. Somehow the script will stop running / move to the next line and the exe (with gui) still open and never close. On the next run it just working fine
Subz Posted September 6, 2022 Posted September 6, 2022 Without seeing the script it's almost impossible to provide assistance, there can be a number of reasons why the script is failing, usually the best way to fix the issue is to add error checking to the script.
taurus905 Posted September 6, 2022 Posted September 6, 2022 I agree with @Subz But if you want to try to find the cause yourself, try this at the top of your script. When it appears stuck, mouse-over the script's icon in the system tray to see what line it's on. Keep mousing off and back on to see if the line changes. It might be stuck in a loop. taurus905 Opt("TrayIconDebug", 1) ;0=no info, 1=debug line info "Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs
ModemJunki Posted September 15, 2022 Posted September 15, 2022 It gets stuck in Excel? Why not using the native Excel functions in AutoIT? (the helpfile is your friend...) Always carry a towel.
Zedna Posted September 16, 2022 Posted September 16, 2022 Add logging to your script, so it will write to LOG diagnostic data (texts + values of variables) and you will know what your script really is doing. Resources UDF ResourcesEx UDF AutoIt Forum Search
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now