Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keyboard emulation under programatic control
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00678501
Message ID:
00678848
Vues:
19
Hi George,
Thanx for the referance to the article. It worked. I have a question

how come:
wshShell=createobj("WScript.Shell")
wshShell.Run("calc")
works just fine

but.....

wshShell.run("c:\program files\cadcam\cadcam.exe")
does not work.
If I place "c:\program files\cadcam\cadcam.exe" in the RUN textbox, it will work but not when I use the above syntax in the scripting host

And....
what is the vfp syntax for wshShell.Sleep 100? I tried wshShell.run(100) and that did not work.

Regards,
Dr. G. (Neil)

>>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)
>
>An additional resource on this method, would be the second article that Ed Rauh and I wrote in a series on the Windows Script Host. It covered the Shell object, and appeared in the October, 2000 issue of the VFUG newsletter. It's available on-line at www.vfug.org.
>
>We covered this particular problem in that issue.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform