Home AMX Forum AMX Technical Discussion
Options

"Emulate a Device" from code

Anyone know of a way to duplicate what "Emulate a device" does but from code? I want to be able to run the string event of a touch panel, and can do this with Emulate a Device, sending a string to it, and the string event executes, but there doesn't seem to be a way to do this otherwise. Perhaps there is no way....
Paul

Comments

  • ericmedleyericmedley Senior Member - 3709 Posts
    How about create a virtual device that sends a string to another virtual device on a button push on the first device. Then do a data event on the second device.
  • Joe HebertJoe Hebert Junior Member
    a_riot42 wrote: »
    Anyone know of a way to duplicate what "Emulate a device" does but from code? I want to be able to run the string event of a touch panel, and can do this with Emulate a Device, sending a string to it, and the string event executes, but there doesn't seem to be a way to do this otherwise. Perhaps there is no way....
    Paul
    If you temporarily change the device ID of the touch panel to something in the virtual device range and send a string to it, the string event will fire...
Sign In or Register to comment.