Code: Select all
#Requires AutoHotkey v2.0
f1:: {
; click any ahk file on desktop
; Send("^c") ; copy the file path
Run("C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe" "%A_Clipboard%")
return
}
Code: Select all
#Requires AutoHotkey v2.0
f1:: {
; click any ahk file on desktop
; Send("^c") ; copy the file path
Run("C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe" "%A_Clipboard%")
return
}
Code: Select all
Run '"C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe" "' A_Clipboard '"'
Code: Select all
#Requires AutoHotkey v2.0
A_Clipboard := 'hello'
str1 := "C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe" "%A_Clipboard%"
str2 := '"C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe" "' A_Clipboard '"'
MyGui := Gui()
MyGui.SetFont('s12','Consolas')
MyGui.Add('Text',, str1 '`n' str2)
MyGui.Show
Code: Select all
#Requires AutoHotkey v2.0
f1:: {
Send("^c") ; copy path of chosen file
sleep(100)
Run("C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe " A_Clipboard)
return
}
Code: Select all
Run '"C:\Users\jethr\AppData\Local\Programs\Microsoft VS Code\Code.exe" "' A_Clipboard '"'
Users browsing this forum: DavidP, mikeyww, TomDonovan, vanove and 92 guests