-
-
Save fursiol0800/6e4513debe1050423344db26880ef979 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| InputBox, ColabFileName, Colab Keep Alive Script, Enter the Google Colab filename | |
| ColabWinTitle := ColabFileName . " - Colaboratory - Google Chrome" | |
| if WinExist(ColabWinTitle){ | |
| WinActivate | |
| InputBox, Interval, Keep Alive : %ColabWinTitle%, Enter an interval (in minutes) to emulate mouse and keyboard behaviour : | |
| if Interval is not integer | |
| { | |
| MsgBox, , Halt : Bad Type, Enter an Integer for the Interval | |
| Return | |
| } | |
| else{ | |
| MsgBox, , Interval Set, interval set for %Interval% minutes. | |
| Interval := 1000 * 60 * Interval | |
| KeepAlive(ColabWinTitle , Interval) | |
| } | |
| } | |
| else{ | |
| MsgBox, , Halt : No Such Window, Did not find Window : %ColabWinTitle% | |
| Return | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment