ManualIT Posted September 1, 2018 Share Posted September 1, 2018 I have a program that downloads newly uploaded videos from YouTube channels automatically, however this program has an issue for a while and the developer seems like doesn't want to look into it and fix, the issues is that it stops detecting new videos until i restart it. Now i'm trying to create a script that restarts the program every 1 hour, but the idea is that i want it to check first if there's any video downloading before closing. The program has an exit confirmation message window that only shows when there are downloads running, is it possible for AutoIt to check for that window before restarting it? If it's possible, i would really appreciate it if you can help me on it. Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted September 2, 2018 Share Posted September 2, 2018 Hi @ManualIT, and welcome to the AutoIt Forum I can tell you that it's possible. You just have to check if that specific message box exists, and, if it doesn't, you can close the program. Take a look at: Run(), to restart the program; WinExists(), function to see if that specific window exists; ProcessClose(), to close the application and restart if it's not downloading any video. I don't know if you could have some information from this tool, but, in each case, if you are not able to find some information needed to use WinExists(), here you are a fantastic AutoIt Info Tool Try them, and let us know Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
ManualIT Posted September 2, 2018 Author Share Posted September 2, 2018 Thank you @FrancescoDiMuro I was trying out AutoIt for a while now since i started the thread, i wrote some codes for testing and understanding it, however, there's just one thing i need to understand. Now in the video downloader program, when i try to close it while it's downloading a video, the confirmation window that appears doesn't show any values in the Control tab in the (Frozen) AutoIt v3 Window Info when i highlight it, it only shows the value of the Handle in the Window tab I'm in the step of trying to let it check if that confirmation window exists by using the Handle value if possible, not sure if it works that way or the values have to be from the Control tab Link to comment Share on other sites More sharing options...
FrancescoDiMuro Posted September 2, 2018 Share Posted September 2, 2018 2 hours ago, ManualIT said: i wrote some codes for testing and understanding it Post them And with them, post the Results from AutoIt Window Info Tool about this other Message Box Click here to see my signature: Spoiler ALWAYS GOOD TO READ: Forum Rules Forum Etiquette Link to comment Share on other sites More sharing options...
therks Posted September 2, 2018 Share Posted September 2, 2018 Also, can you share what program you are using to download the videos? Maybe someone here is also using it and can help you out. (Myself, I actually use a program called 4k Downloader, but I haven't had any issues like you're describing so it's probably not the same program ) My AutoIt Stuff | My Github Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 2, 2018 Moderators Share Posted September 2, 2018 Hi all, Please read this announcement to understand why this thread is now locked. I realise that AutoIt would only be interacting with the third-party program, but that is close enough. M23 FrancescoDiMuro and therks 2 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts