This is a work-in-progress of a SendInput declare so that a user can send keyboard keys, mouse input, or hardware input to a program. I have a working program in C++, and am trying to convert it to Xojo. One of the fun puzzles was to retrieve the memory address of a structure: See How to get structure memory address? - #11 by Eugene_Dakin
Working Code in Visual Studio C++ presses the Window Key + D to minimize all windows, which is a relatively harmless program call and shows that the program is working. Here is the C++ code:
There are four input steps, which are: 1) Press the Virtual Win Key, 2) Press the virtual D key, 3) lift the virtual D key, 4) lift the virtual Win Key. The inputs are in an array with a size of 28 bytes. Here is the Microsoft Link to the SendInput function: SendInput function (winuser.h) - Win32 apps | Microsoft Docs
Here is the work-in-progress for the SendInput demonstration program in Xojo: SendInputRev1
This is a non-working partial-example. Chuckle, I am trying to convert C++ to Xojo Declares. Sorry for the Xojo spaghetti code, as I am not even close at completing the program.
Its just for fun, and feel free to play with it.