I’m using the Archiveweb.page desktop app together with a pyautogui Python script to loop through pages on a company internal server. It enters the URL and scrolls down the pages by emulating rolling the mouse wheel.
It’s working really well as long as I’m looking at the screen (through Remote Desktop Connection). But when the screen is locked (disconnected from RDC?) the Python script seems to continue doing the right thing, but pages are not archived.
Does anyone has a hint to why this happens?
Is some part of ArchiveWeb.page disabled when the screen is locked? From pyautogui documentation is seems that it should continue running even with a locked screen as long as the computer doesn’t go into standby.
My Python script:
import pyautogui
import timepyautogui.FAILSAFE = False
for number in range(1, 1000, 1):
pyautogui.moveTo(150, 70, duration=0.01)
pyautogui.click()pyautogui.hotkey('ctrl', 'a') pyautogui.press('backspace') url = f"https://bitbucket.companyinternalserver.com/projects/PROJECT/repos/superflysource/pull-requests/{number}/overview" pyautogui.typewrite(url, interval=0.00001) pyautogui.press('enter') pyautogui.moveTo(150, 200, duration=0.05) time.sleep(1) for i in range(0, 15): time.sleep(0.3) pyautogui.scroll(-1000)