Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stuffing a windows dialog textbox using keybd_event
Message
 
À
18/03/2004 15:37:25
Doug Sherman
Douglas Sherman Consulting
Littleton, Colorado, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00887664
Message ID:
00887695
Vues:
28
>I want to stuff an applicaiton SAVEAS dialog box with a full pathname using the keybd_event API, one character at a time. The virtual key codes do not indicate how to 'stuff' characters like period, colon, and backslash, nor how to enter lowercase characters. The alpha and numeric characters in the virtual key list are all upper case characters.
>
>I am using FindWindowEx and GetWindowText to obtain a handle to the dialog box window in question.
>
>keybd_event looked simpler to use than the SendInput API and structures.
>
>Thank you.

Doug,

I don't know if this might be of help, but the WScript.Shell object of the Windows Script Host might be of help. It has a SendKeys method. For more information, I'd suggest you look at the series of articles the late Ed Rauh and I wrote for the VFUG newsletter. It began in September 2000 and is available on-line at www.vfug.org.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform