Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Stuffing a windows dialog textbox using keybd_event
Message
 
To
18/03/2004 15:37:25
Doug Sherman
Douglas Sherman Consulting
Littleton, Colorado, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00887664
Message ID:
00887695
Views:
24
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform