@Xeo786, thanks.
It looks like a step in correct direction.
Now I see new Chrome' window but default URL (so script doesn't opens link).
And look what I see: (Screenshot_26.png attachement)
In this case code what used is:
Code: Select all
#include Rufaydium.ahk
Chrome := new Rufaydium()
Chrome.capabilities.setUserProfile() ; it will load chrome with default user
; default userDataDir location
userDataDir := "D:\Users\" A_UserName "/AppData/Local/Google/Chrome/User Data" ; you can change location here
Chrome.capabilities.setUserProfile("Default",userDataDir) ; in case userDataDir is something else in your windows
Page := Chrome.NewSession()
; Chromeapp := A_ProgramFiles "\Google\Chrome\Application\chrome.exe"
; Page := Chrome.NewSession(Chromeapp) ; in case executable location is changed for you
Page.url := "https://www.autohotkey.com/boards" ; this navigate just line page.navigate(url)
Msgbox, % Page.Title "`n" Page.URL
return
If I commenting the
Code: Select all
Chrome.capabilities.setUserProfile("Default",userDataDir) ; in case userDataDir is something else in your windows
I see all as was before.
If I create new profile and choose it like:
Code: Select all
Chrome.capabilities.setUserProfile("Profile 2",userDataDir)
I see same (busy profile message)
OK, then I thought to use maybe portable chrome?
I've choosed portableapps with chrome beta and changed the code:
Code: Select all
#include Rufaydium.ahk
Chrome := new Rufaydium()
userDataDir := "C:\PortableApps\GoogleChromePortableBeta\Data\profile" ; you can change location here
Chrome.capabilities.setUserProfile("Profile 2",userDataDir) ; in case userDataDir is something else in your windows
Page := Chrome.NewSession()
Chromeapp := "C:\PortableApps\GoogleChromePortableBeta\App\Chrome-bin\chrome.exe"
Page := Chrome.NewSession(Chromeapp) ; in case executable location is changed for you
Page.url := "https://www.autohotkey.com/boards" ; this navigate just line page.navigate(url)
Msgbox, % Page.Title "`n" Page.URL
return
...and that helps!
BUT! I still get that error what I've show you before (screenshot25.png attachement). Why?
And maybe an idea:
I've test it using my laptop and all working fine.
Not sure, but... Is any win11 users here? Maybe win11 doesn't allows to operate with Chrome profile folders?