I re-read you post Karlos and maybe I'm mistaken but I think you got some things mixed up?
The program looks for right mous button clicks within a specific task name (default: ShapeShifter Window Int; can be changed with ToolType). If the right mouse button is clicked it simulates a double click with the left mouse button. I want it to simulate instead a single left click with right Amiga pressed simultaneously.
Correct me if I'm wrong but then you don't need to replace IECODE_LBUTTON with IECODE_RBUTTON or do a InputEvent because it doesn't need to check key strokes?