This is a small example that uses SendMessage to share data between two AMS apps. Build the VideoRemote2.APZ and copy it to the DOCs folder of VideoRemote1 to run the example.
VideoRemote1 start VideoRemote2 with a commandline parameter of an input box that will be used to receive the commands. When VideoRemote2 starts, the first thing it does is send VideoRemote1 the handle of the Input that it will use for commands. From that point, the apps send messages back and forth via the Input boxes by placing text in the Input, then firing the keypress event in the Input.
This example uses a second AMS app to control the playback of a video. If either window is closed, the other will close down too.

Reply With Quote
