Hello,
thank you for the explanation and the video. It is clear now. The arrow represents the mouse pointer and you want to simulate a mouse DOWN and UP events for the corresponding position.
To do this you need to understand how real touch/mouse events are fed into the GUI application. This is achieved by the methods DriveCursorHitting and DriveCursorMovement. These methods are accessible within the Application component. Thus, to feed a simulated mouse event execute following code in context of the Application class:
// Get the position of the 'mouse pointer' image
var point pos = ArrowImage.Bounds.origin;
// Simulate the DOWN/UP event pair for the given position
DriveCursorHitting( true, 0, pos );
DriveCursorHitting( false, 0, pos );
In your case you would execute the code when the user activates the B5 button. The above code feeds the DOWN/UP events only. If necessary, you can also use the method DriveCursorMovement() to feed drag events generated between the DOWN and the UP event.
Does it help you further?
Best regards
Paul Banach