Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keyboard emulation under programatic control
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00678501
Message ID:
00678504
Views:
22
Hi Neil,

Check out Windows Script Host - SendKeys Method. You can also find lots more info about WSH by starting with a search here on UT.

Mike

>Hi ,
>
>Does anyone know how to force keyboard input to a running windows application. I have an cad cam program that can launch with a particular cad cam file open for viewing. I type in the RUN textbox: c:\CadCam\cadcam.exe file=c:\CadCam\BrooklynBridge.cad (BrooklynBride is the file that opens for display). If I then type:
>alt+f I G S alt+x , The cadcam program will save the displayed cad cam file as a jpg image.
>
>I would like to launch cadcam.exe from within VFP7. Wait 10 seconds (which allows the cad cam file to be displayed), then I would like to send the above characters to cadcam.exe so that the displayed image can be saved as a jpg automatically without me actually typing them in. I remember we used do things like this in DOS with the pipe command.
>
>I would like to do this from within VFP7
>
>Any thoughts?
>Dr. G. (Neil)
Montage

"Free at last..."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform