Quantcast
Channel: AutoHotkey Community
Viewing all articles
Browse latest Browse all 579

Ask for Help (v2) • Problems with if Winactive

$
0
0
Hi

I used AutoHotkey in my first job, and I enjoyed it and its forum. After, maybe, 15 years without using AutoHotkey, I am trying to use it again for my new job, but I will have to learn from zero.

Now, I have a problem with a script: I have not control based on the active window. The hotkeys are always active, when emacs is at the front, and when it is minimized or not at the front:

CODE:

if WinActive("ahk_class Emacs")
{
LControl::<
<::RControl
Numpad0::RAlt
}
else
{
LAlt::RAlt
}

Statistics: Posted by pafec — Today, 16:08



Viewing all articles
Browse latest Browse all 579

Trending Articles