2

Calling chrome.ahk outputs error and script file is not executing.

I tried using Chrome.ahk library by calling #Include Chrome.ahk in the following way. However upon running the script , get the error and specified below. Chrome.ahk is located as Documents/AutoHotKey/Lib/Chrome/Chrome.ahk. What is the cause of the error? And how to call it correctly?

Error message is:

"#Include file "Chrome.ahk" cannot be opened

#SingleInstance Force
#Include Chrome.ahk
#z::
    chromePath := "C:\Program Files\Google\Chrome\Application\chrome.exe"
    url := "https://Fprojects"
    
    Run, %chromePath% --guest %url%
    WinWaitActive, ahk_class Chrome_WidgetWin_1,, 10
    if ErrorLevel{
        MsgBox, Chrome Not Open
        ExitApp
    }
    WinWait ahk_class Chrome_WidgetWin_1
    Page := new Chrome.ahk.Chrome()
    Page.WaitForLoad()
1
  • Where is you script file in relation to chrome.ahk? They probably need to be in the same directory, our you need to use the full path to reference chrome.ahk. Also pay attention to capitalization: Chrome and chrome are not the same. Commented Aug 26 at 12:59

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.