July 6, 20205 yr Hello, my P2A is installed on a networked PC, so I need to send some keys to the program. I'm using SendKey facility available in FSUIPC. To make sure SendKey will always find P2A I need Windows CLASS name and P2A's window title name as well. Example: KeySend1=65,9,ThunderRT5Form,"PFD GLASS COCKPIT" ; Shift+A KeySend2=8,11,ThunderRT5Form,"PFD GLASS COCKPIT" ; Shift+Ctrl+Backspace where ThunderRT5Form is a windows class name and PFD GLASS COCKPIT is the name of the title bar. Thanks. Edited July 6, 20205 yr by Dirk98
July 6, 20205 yr Commercial Member The windows class name would be frmP2AMain, but the title bar text changes depending on the version of P2A and AIRAC cycle. Others using SendKey do not specify either and all works fine. P2A listens for all keys on whatever PC it is running on.
July 6, 20205 yr Author Just now, Dave-Pilot2ATC said: The windows class name would be frmP2AMain, but the title bar text changes depending on the version of P2A and AIRAC cycle. Others using SendKey do not specify either and all works fine. P2A listens for all keys on whatever PC it is running on. I have one extra complication that affects the active focus. I have 2 clients 1 monitor each and control them with one mouse and one keyboard via Input Director. Many thanks!
Archived
This topic is now archived and is closed to further replies.