Can you have an app running that is receiving data from an FT232RL device( USB to serial ), and have that app output receive data from my USB module, and the app output key values that emulate a generic USB HID keyboard. The concept is that I want to have bidirectional capabilities with my processor on the remote USB device, which means using USB 2 Serial. The FT232RL does not emulate a USB HID generic device, so that would mean adding some switching to toggle the USB chipset from a generic USB HID device to USB to Serial device. I was hoping to find a way that an Xojo app could talk to the PC/Mac and the computer think it is seeing key values from a real keyboard.
Does anyone agree that this looks like it would allow me to have an app with a serial port that receives data, and presses any key that I define? As well, it looks like you can press the control key first then release it after. Not sure if Command and shift are options. If this looks like the ticket then I will buy it.
Actually there are many options for key presses. Anyone used this?[/quote]
I just played with that on Mac. Very nice. It works fine in any Mac application just as if typed from the keyboard.
Command and shift are there as well as control. You do not need to buy to try. Just download the plugin complete from Monkeybread Software - MBS FileMaker Plugin: Component: RemoteControl and you will be able to play with it. All the plugin are functional, simply they display a box saying they are not registered.
There are several examples that come with the plugin package, I just played with the one described in /Documentation/HTML%20files/files/example-computercontrol-presskey-writesomething.html
And the nice thing is that Christian Schmitz is around to assist
4.5 module RemoteControlMBS
4.5.1 module RemoteControlMBS
Plugin Version: 8.4, Console & Web: Yes, Mac: Yes, Win: Yes, Linux: Yes.
Function:
This module collects
methods for simulating user input with mouse and keyboard.
Notes:
You can use this class for GUI scripting.
Requires libXtst.so.6 on Linux to be installed.
Which platform ? On Mac you can do sort of the same thing with AppleScript with Tell application, but not to all the system as the plugin does. On PC you can send events to a particular window by its title. Search for Sendkeys in this forum. It is not built in but there is a declare. On Linux I am not aware of anything besides MBS.