Serial Data from PLC

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
User avatar
Jadden182
Posts: 21
Joined: 08 Jan 2021, 21:10

Serial Data from PLC

Post by Jadden182 » 23 Jun 2022, 21:34

I have a pretty complex issue. We have a PLC that sends the string 40000 to a PC via serial cable. A program on that PC called CPS Plus then transforms that string into simulated keystrokes. Users have found that they are able to type 40000 instead of letting the PLC run its course. Unfortunately they need the keyboard for other tasks. I have tried blocking the 4 and 0 keys when this specific window is active but it blocks the keystrokes coming from this CPS program. I'm to any ideas to stop the end users from manually typing 40000. Thank you!

BoBo
Posts: 6564
Joined: 13 May 2014, 17:15

Re: Serial Data from PLC

Post by BoBo » 24 Jun 2022, 02:25

Looking at a posting like this https://www.autohotkey.com/board/topic/64800-specifying-an-arificial-key/ (from Telic) makes me think that :arrow: GetKeyState() in companion with a Hotkey/-string could do the trick?! :think:

User avatar
Jadden182
Posts: 21
Joined: 08 Jan 2021, 21:10

Re: Serial Data from PLC

Post by Jadden182 » 26 Jun 2022, 17:09

I'm sorry. I dont think I quite understand. Can you elaborate on how the two would work together?


BoBo wrote:
24 Jun 2022, 02:25
Looking at a posting like this https://www.autohotkey.com/board/topic/64800-specifying-an-arificial-key/ (from Telic) makes me think that :arrow: GetKeyState() in companion with a Hotkey/-string could do the trick?! :think:

Post Reply

Return to “Ask for Help (v1)”