G33kDude / Chrome.ahk

Automate Google Chrome using native AutoHotkey
https://autohotkey.com/boards/viewtopic.php?t=42890
MIT License
336 stars 82 forks source link

Google Chrome cannot read and write to its data directory : profile #26

Closed Elanuroquesalta closed 1 year ago

Elanuroquesalta commented 2 years ago

When i run any of the examples scripts or an external script using the library a message pops out saying:

"Google Chrome cannot read and write to its data directory : profile"

image

Any ideas how to fix it?

SaifAqqad commented 2 years ago

Passing the profile folder as a full path fixed it for me

ChromeInst := new chrome(A_ScriptDir "\profile", "https://autohotkey.com")

Also you shouldn't name the variable chrome because that's the class's name and classes are actually just objects that are stored in a super-global variable, and in this case, that variable is named chrome. AHK docs

Elanuroquesalta commented 2 years ago

Passing the profile folder as a full path fixed it for me

ChromeInst := new chrome(A_ScriptDir "\profile", "https://autohotkey.com")

Also you shouldn't name the variable chrome because that's the class's name and classes are actually just objects that are stored in a super-global variable, and in this case, that variable is named chrome. AHK docs

MUCH THANKS!

copying as a full path fixed for me aswell, also thank you for pointing out the class name thing.

I will continuing working on, cheers :)

G33kDude commented 1 year ago

This should be fixed in 1.3.0