Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to auto restore Fox Dos (full screen) from VFP.
Message
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00798176
Message ID:
00798536
Views:
38
>>>Houston,
>>>
>>>Did you try to send ALT+ENTER using WSH?
oWSH = CreateObject( "WScript.Shell" )
>>>oWSH.AppActivate( "Command Prompt - FOXPROX" )
>>>oWSH.SendKeys("%~")
>>
>>The AppActivate sets focus to the DOS App, but it remains in the background. The SendKeys does not appear to do anything - I am testing this in the command window, by selecting the two lines of code (AppActivate and SendKeys) and then right-mouse Execute Selection. In the SendKeys, is that a percent character, followed by tilde?
>
>Yes, it's a percent character, followed by tilde. On my PC (WIN2KSP3) it brings FoxProX window on top of VFP window.

I've just re-read our exchange. It looks like you are switching from VFP to the DOS window, and sending Alt+Enter to make it full screen. Can you use VFP code to switch to the DOS window, when it is already full screen?
censored.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform