Another possibility to fulfill your task is to use batch input with tr. SHDB with FTR_EDIT.
So basically there is no way to change sy-ucomm of another program?
And no way to click a button unless it is in your own program?
No. I don't know any possibility to do this.