I need to simulate pressing the F2 key, pressing a button. The code I am trying to use is the following but not working.
@ 20, 0 DCTOOLBAR oBotonesTecla SIZE 110,3 BUTTONSIZE 11,3
DCADDBUTTON CAPTION 'F2';
PARENT oBotonesTecla;
ACTION {||PostAppEvent(xbeK_F2,,,DC_GetListObject( GetList ))}
Thank you very much for your help.

Miguel