Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
API to move to front
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01400668
Message ID:
01400765
Vues:
61
>>Next to SetForeGroundWindow() etc., perhaps you can handle it internally: if the first.EXE is your own Vfp code, then this might work (assuming _screen.Visible=.T.):
>>
>>
>>With _screen
>>    .AlwaysOnTop = !.AlwaysOnTop
>>    .AlwaysOnTop = !.AlwaysOnTop
>>EndWith
>>
>>
>>
>>hth
>>-Stefan
>
>Where would this code be placed? At the end of the timer event when it times out?
>

Yes, that sounds good; in other words, at the end of the process that creates the interval you described here:

>>>After 300 seconds, the first EXE needs to come back to the front, but it doesn't.

FWIW, I'd use a timer too if that process runs frequently. If it does not, you can perhaps use the Sleep() function alternatively:
Declare integer Sleep in Win32api integer
Sleep(300*1000) && 300 seconds
hth
-Stefan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform