Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
API to move to front
Message
From
19/05/2009 14:32:51
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01400668
Message ID:
01400765
Views:
60
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform