Run Script, but send normal input in certain program

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
aweinberg
Posts: 52
Joined: 08 Feb 2019, 15:38

Run Script, but send normal input in certain program

14 Feb 2019, 18:01

I am trying to make the code where when you hit caplocks that script runs. However if you are in ahk_exe AfterFX.exe it send just normal caplocks and not the script. How do I go about fixing that?

$CapsLock::
{
IfWinNotExist, ahk_class CabinetWClass
Run, explorer.exe
GroupAdd, taranexplorers, ahk_class CabinetWClass
if WinActive("ahk_exe explorer.exe")
GroupActivate, taranexplorers, r
else
WinActivate ahk_class CabinetWClass ;you have to use WinActivatebottom if you didn't create a window group.
}
#IfWinActive ahk_exe AfterFX.exe
SendInput CapsLock
Return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Araphen, doanmvu, Google [Bot] and 290 guests