Question

Suppose I have x.ahk, which is an AutoHotKey file. I want to open it through my Sikuli program.

I tried the following methods:

openApp("F:\\folder\\x.ahk")

I got the following error

[info] VDictProxy loaded.
[log] App.open F:\folder\x.ahk(0)
[error] App.open failed: F:\folder\x.ahk not found

I tried using open() instead

open("F:\\folder\\x.ahk","r")

It did not throw any error from this, but it still did not open the file.

How can I launch my AutoHotKey script?

Was it helpful?

Solution

You could try running autohotkey.exe with the script name as a parameter.

Example: If my Autohotkey.exe is in "C:\Program Files (x86)\AutoHotkey" and the script to start is "c:\temp\1.ahk"

I would run "C:\Program Files (x86)\AutoHotkey\autohotkey.exe c:\temp\1.ahk"

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top