From 44c3112104773f77474ab531c7207aa4ee6448b1 Mon Sep 17 00:00:00 2001 From: etgocode Date: Sun, 14 Jul 2019 23:42:46 +0200 Subject: [PATCH] added IfWinActive to trigger the skript only when firefox is in the foreground. --- de/tabtowindow.ahk | 1 + en-US/tabtowindow.ahk | 1 + fr/tabtowindow.ahk | 1 + 3 files changed, 3 insertions(+) diff --git a/de/tabtowindow.ahk b/de/tabtowindow.ahk index 06a4f14..4aee55f 100644 --- a/de/tabtowindow.ahk +++ b/de/tabtowindow.ahk @@ -3,6 +3,7 @@ SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. +#IfWinActive, ahk_class MozillaWindowClass ^!n:: cal := 70 ; time in ms between the actions. Has to be tweaked according to system performance. send {F6} diff --git a/en-US/tabtowindow.ahk b/en-US/tabtowindow.ahk index 3e267fb..6ea2fec 100644 --- a/en-US/tabtowindow.ahk +++ b/en-US/tabtowindow.ahk @@ -3,6 +3,7 @@ SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. +#IfWinActive, ahk_class MozillaWindowClass ^!n:: cal := 70 ; time in ms between the actions. Has to be tweaked according to system performance. send {F6} diff --git a/fr/tabtowindow.ahk b/fr/tabtowindow.ahk index 38d49de..51826b6 100644 --- a/fr/tabtowindow.ahk +++ b/fr/tabtowindow.ahk @@ -3,6 +3,7 @@ SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. +#IfWinActive, ahk_class MozillaWindowClass ^!n:: cal := 70 ; time in ms between the actions. Has to be tweaked according to system performance. send {F6}