Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Splitting "Hotkey 'IfXXX'" into "HotIfXXX" #176

Merged
merged 1 commit into from
Jun 7, 2020

Conversation

HelgeffegleH
Copy link
Contributor

@HelgeffegleH HelgeffegleH commented Jun 5, 2020

New:

HotIf ["Expression"/FunctionObject]    ; replaces Hotkey "If", [...]
HotIfWinXXX [WinTitle, WinText]        ; replaces Hotkey "IfWinXXX", [...]

Reason, the settings also applies to hotstrings. Slight improvement of convenience, since no quotes are required. Simplifies the Hotkey function, wrt documentation/mnemonics. Also better matches changes per #175.

Edit: Perhaps off-topic, but I feel that HotIfNotWinActive and HotIfNotWinExist would be better names, for closer resemblance to,

#If not WinActive('...')
#If not WinExist('...')

or even better,

#HotIf not WinActive('...')
#HotIf not WinExist('...')

Reason, the settings also applies to hotstrings.

Also removing Hotkey::IfWin(), since not used anymore.
@Lexikos Lexikos merged commit dec5c97 into AutoHotkey:alpha Jun 7, 2020
@HelgeffegleH HelgeffegleH deleted the hotkey_if branch June 15, 2020 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants