Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Alternative to SYS(1037)
Message
 
To
07/03/2002 03:12:51
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00629402
Message ID:
00629413
Views:
8
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform