Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Detecting a form in a seperate app and stuffing a textbox
Message
De
20/04/2000 09:58:55
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Titre:
Detecting a form in a seperate app and stuffing a textbox
Divers
Thread ID:
00361770
Message ID:
00361770
Vues:
51
Hi folks,
An app I am working on is launching an installation wizard for another application (which happened to have been created using VFP's Setup Wizard in case it matters). When the window appears in the installation wizard prompting for the destination folder I want to be able to detect the presence of the window from my calling application and stuff a string into the textbox over-riding the default value.

I thought I would start a timer after launching the installation wizard, periodically looking for the title bar of the window in question. When the timer sees the new window it would somehow drop the replacement text into the textbox and click OK.

Several things I don't know how to do though include:
1. Detect the new window from my timer event
2. Replace the textbox value in the other window with a new value
3. Click the OK button in the other window when done

If it helps, I know the caption for the title bar that will be displayed for the window in question, and I know what the default value will be for the textbox I want to replace.

A totally different alternative, which might not be possible, might be to replace the default destination folder entry in the appropriate SETUP files for the other application, so that when the installation wizard runs the correct value would already be there. (I don't have the option of rebuilding the installation wizard from the ground up to include the correct value.)

Any ideas would be great. Thanks.
"The most beautiful experience we can have is the mysterious ; it is the fundamental emotion which stands at the cradle of true art and true science." - Albert Einstein
Répondre
Fil
Voir

Click here to load this message in the networking platform