Code: Select all
#NoEnv
#SingleInstance, force
#include, C:\Users\seamn\OneDrive\My Apps & Softwares\Chrome.ahk App Version 1.2\lib\Chrome.ahk
if !FIleExist("profile")
FileCreateDir, % "profile"
chrome := new chrome("profile", "https://www.the-automator.com/autohotkey/chrome-with-autohotkey/")
page := chrome.getpage()
page.WaitForLoad("complete")
page.Evaluate("document.querySelectorAll('#post-4101 > div > p:nth-child(4) > a:nth-child(4)')[0].click()")
return
If I run the script a second time immediately afterwards it even continues on to the correct page (the programmer's PayPal page).Regardless the "Cannot read and write..." error appears EVERYTIME I run the script, while the others don't.
Also, I've added the " --remote-debugging-port=9222" to chrome.exe in the properties tab, closed all instances of chrome and relaunched it.