How to perfom native action when condition is false in v2. "ctrl + a" for example.
Posted: 29 Apr 2024, 07:56
When chrome is active, I want to show message "hello",
but if chrome not active, I want the native "select all" to be the action.
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
}
}