Posted 11 August 2005 - 05:02 PM
I am using sendkeys in a VB6 program to communicate with a variety of programs such as Word, Outlook express, etc. One command in particular cannot be counted on to be consistent and that is the SelectAll function: Sendkeys "^a".
Is there an alternate or more reliable way of accomplishing this function?
(I have looked at Win API but the only function I can find is
SendMessage hWnd, WM_COPY, 0, ByVal 0&. There are WM_COPY values for Cut, Copy, and Paste, but I can't find one for Select All.)