1

Say I have 2 programs open: Program A and program B.
I want to tell program A that I am holding down CAPSLOCK, but I want to still be able to navigate and use program B during this.
Is there a way to do this?

0
2

How to send separate keystrokes to separate programs?

You can download and use the free AutoIT program and its WinActivate() and Send() functions in particular to select a specific window based on its title (metadata). You can even Send() emulated keystrokes or even navigate a specific window mouse coordination and MouseClick() too.

Sample Script

WinWait("ProgramA", "", 10)
WinActivate("ProgramA")
MouseClick("left", 504, 549, 1, 30)
Send("AbCdEfG")
Sleep(100)
WinWait("ProgramB", "", 10)
WinActivate("ProgramB")
MouseClick("left", 504, 549, 1, 30)
Send("HiJkLmNo")

Further Resources

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.