Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why doesn't KEYBOARD "{ALT+ENTER}" not work?

Status
Not open for further replies.

fpd26man

Programmer
May 20, 2005
8
US
I am calling a Windows program (alarmwiz, to send an email) from within a DOS-Foxpro 2.6 application. It works fine except it alters the full-screen mode of the Foxpro app to a smaller windowed mode. Our employees now how to hit ALT+ENTER to get back to full-screen mode. But it would be easier on them if the Foxpro program could do this on its own.

KEYBOARD "{ALT+ENTER}"

would do that, in theory, but that key-combo appears to be "invalid" in 2.6.

Any suggestions on how to achieve this programmatically?
 
double-negative! I mean why does it NOT work!
 
I don't know if I can explain it clearly, but the Alt-Enter combination is a Windows key combination not a DOS one.

In other words, the OS can detect the key combination, but if you try to do it from within Fox DOS, it will be used by Fox and not the OS. When you do that combination manually, the OS detects it before it ever gets to the Fox level. If you do it within Fox, Fox detects it and discards it. It doesn't get to the OS level.

alarmwiz itself would need to either not modify the window state/size or return it to its previous state.

Hope that makes sense.


-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Yes, I understand that.

Can low-level Foxpro commands be used to bypass Foxpro's screening?

I have checked the settings for Alarmwiz and I've shut off all their popup notifications so their program, as well as those of OE when it sends the email. Nothing else pops up. But clearly the Windows calls are forcing a re-display of the DOS window which changes display format, for some reason.

Annoying but at least the thing works...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top