LOCAL lcFile lcFile = GETFILE("prg") MODIFY COMMAND (lcFile) NOWAIT * Select all SYS(1500, '_MED_SLCTA ', '_MEDIT') && Select All menu item * Copy SYS(1500, '_MED_COPY ', '_MEDIT') && Copy menu itemThe problem is that sometimes it seems to work fine, and sometimes, nothing happens. I've already tried lots of things, like ensuring that the menu is visible, prior checking if the menu is available using SYS(2013), DOEVENTS, waiting for a second before each action...