Code: Select all
#Requires AutoHotkey v2.0
f1:: {
Run("C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe " "C:\Users\jethr\OneDrive\Desktop\hello world.ahk")
}
Code: Select all
f1:: {
Send("^c") ; copy the file path
sleep(100)
Run("C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe " A_Clipboard)
return
}