A script that is waiting at:
KeyWait, NumpadAdd
for a {+} input from the number pad. As I explained, it's working fine with the physical keystroke, but not when I generate the keystroke from a gui in another script with a gui button that sends NumpadAdd.
I've tried all the different versions of Send... SendInput, SendEvent, etc. Nothing working. I've tried #InstallKeyboardHook... I'm just throwing things at the wall at this point.
I used the word ControlPanel, but it's just a Gui I created with dozens of buttons on it, that I'm using to keep track of scoring, launch questions, launch a leaderboard etc. This is the only button that I'm having issues not working as I see.
![Screenshot 2022-11-10 232515.jpg](./download/file.php?style=1&id=19721&sid=01ebd3efb6c619f4afc36f5f4497038a)
- Screenshot 2022-11-10 232515.jpg (232.01 KiB) Viewed 208 times
Yes, I use GoSub all the time, and maybe I should have created one giant script to do all of this, but I started with each "screen" of a trivia game being it's own script, and using my "Control Panel" to launch each script as needed. So each button launches a question of a certain category, prints out a small chit on a receipt printer on stage with the question for the host to preview, and then waits for the NumpadAdd key that the host triggers from the stage to launch the visual question on the screens around the stage. I just want to be able to send the same Numpad Add keystroke from my "Control Panel" in case the host forgets it.
I'm remoting into the stage computer from my laptop. The stage screens are using the primary monitor, and the "Control Panel" is on the secondary monitor. Unfortunately, I can't send the NumpadAdd key physically from my laptop due to the remote connection, so I thought second best would be to click a Gui, Button on my "Control Panel" to Send, NumpadAdd, but it's not triggering the other script waiting in the Keywait, NumpadAdd. Since the "Control Panel" gui is running in parallel on the same machine, I thought I could trigger the other script by sending a keystroke.] It is working fine from a physical usb number pad device on the stage however.
I've tried activating the script that is in the keywait, before sending the keystroke, but that doesn't fix the problem, still doesn't work. They physical numberpad doesn't need the script that's in a keywait to be activated, so I'm missing something else somewhere.
I sometimes don't know the right words to describe the problem, kind of like I don't know the right questions to ask...