Hi, Dennis!
>As VFP loses control to the modal windows form, then KEYBOARD[{ALT+P}] can't fire.
I don't thinks, that's the modal state is the problem!
The problem is: the upcoming printer dialog is not VFP window and can not reached unsing KEYBOARD command, how the following sample shows:
>>>>>>>>>>>>>>
LOCAL xo
xo = NEWOBJECT( "xt" )
xo.interval = 2000
SYS(1037)
WAIT WINDOW
RETURN
DEFINE CLASS xt as Timer
PROCEDURE Timer
* to show the firing of the event
WAIT WINDOW PROGRAM() + ": " + TRANSFORM( WEXIST( "Druckereinrichtung" ) )
* to try the keyboard command - but it doesn't work!
This.Interval = 0
KEYBOARD "{ALT+E}"
ENDPROC
<<<<<<<<<<<<<<<<
SeBaFlu