This is a regression of moving from WM_CHAR to accelerator keys to allow for more key defs and to ease making them. The involved statements, procs and cmds never supported them. They work only with WM_CHAR keys.
Since the NEPMD change to accel keys, WM_CHAR keys are only used for single keys (and internally for those virtual keys that are on the keypad). I've overlooked that executekey
etc. works also for virtual WM_CHAR keys. BTW: There exist DoKey
and LoopKey
, too. They all use executekey
. Most likely I should also add a replacement for the lastkey
statement.
Until this will be fixed, use a simple change:
epm.exe "somefile.cod" 'mc /postme 1234 /postme MarkLine'
BTW: If you want to mark several lines, use the DoCmd
command and move the cursor down:
epm.exe "somefile.cod" 'mc /postme 1234 /postme MarkLine /postme DoCmd 2 Down /postme MarkLine'
or easier:
epm.exe "somefile.cod" 'postme mc /1234 /MarkLine /DoCmd 2 Down /MarkLine'