Accepting keystrokes from another AHK app

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
epete
Posts: 81
Joined: 02 Dec 2020, 10:03

Accepting keystrokes from another AHK app

Post by epete » 17 Jan 2022, 10:29

I want to create 2 AHK apps (a) and (b).
(a) sends keystrokes to (b) -- I already know how to do this with WinActivate and Send.
(b) accepts the keystrokes and displays them in an Edit box
The keystrokes sent to (b) include Ctrl + Shift + H
Multiple keystrokes can be sent to (b).

Can someone help with (b)?

User avatar
mikeyww
Posts: 26601
Joined: 09 Sep 2014, 18:38

Re: Accepting keystrokes from another AHK app

Post by mikeyww » 17 Jan 2022, 10:36

You are not sending the keys to the script, but the keys can trigger your hotkey routine.

Code: Select all

^+h::
MsgBox, 64, Keys, %A_ThisHotkey%
Return
Add hotkeys as needed.

Related: Wait for any key

Post Reply

Return to “Ask for Help (v1)”