but if chrome not active, I want the native "select all" to be the action.
Code: Select all
#Requires AutoHotkey v2.0
^a:: {
if WinActive("ahk_exe chrome.exe") {
msgbox("hello")
}
else {
; ^a::^a ; SELECT ALL
}
}
Code: Select all
#Requires AutoHotkey v2.0
^a:: {
if WinActive("ahk_exe chrome.exe") {
msgbox("hello")
}
else {
; ^a::^a ; SELECT ALL
}
}
Code: Select all
#Requires AutoHotkey v2.0
#HotIf winActive("ahk_exe chrome.exe")
^a:: {
msgbox("hello")
}
#HotIf
Code: Select all
LCtrl & a:: {
if WinActive("ahk_exe chrome.exe") {
Msgbox("hello")
}
else {
SendInput("{Ctrl Down}a{Ctrl up}")
}
}
Code: Select all
#Requires AutoHotkey v2.0
#SingleInstance Force
$^a:: {
if WinActive("ahk_exe chrome.exe") {
Msgbox("hello")
}
else {
; ; MsgBox "n0"
; SendInput("{" A_MenuMaskKey "}" )
SendInput("{Ctrl Down}a{Ctrl up}")
}
}
Users browsing this forum: DavidP and 79 guests