main logo
Subject: Re: VB to VFP
Author: PLBorkholder
Posted: 2004/12/30 14:29:13
 
View Entire Thread
New Search


Thanks Gene,
You're correct if I'm working with just my VFP windows.
However, my goal is to mimimize all the windows on the desktop because
I'm calling a compiled VFP app via another software program that allows
triggers. When my messagebox's popup, they appear behind the app. I want
to miminize everything , then show my popup.
I know I can do it via Script object: CREATEOBJECT("shell.application")
however, I've been told not to depend on that because some workstations
have that option locked up.
Thus, I'm looking for the keyboard option that the VB code is given.
I can translate it all except the :
constant values:
Const KEYEVENTF_KEYUP = &H2
Const VK_LWIN = &H5B

#DEFINE KEYEVENTF_KEYUP ???
#DEFINE VK_LWIN ???

I don't know how to interpret the &H2 or &H5B

T.I.A.

Philip L. Borkholder
Systems Analyst/Programmer
Automation Plus, Inc.
Solution Provider # 1256200
(800) 253-4871 Ext: 24
Fax No.: (269) 651-9392
philip.b (at) automationplus DOT com



Eugene Vital wrote:

> PLBorkholder wrote:
>
>> I'm not good at these declarations:
>> Can some one translate this code to mimimize windows to VFP ?
>> T.I.A.
>>
>> http://support.microsoft.com/default.aspx?scid=kb;en-us;194914
>>
>
> If you are trying to minimize forms or the main VFP screen you don't
> need that code, remember VFP is OOP. :)
>
>
> LOCAL loForm as Form
>
> FOR EACH loForm IN _screen.Forms
> loForm.WindowState= 1
> NEXT loForm
>
> OR
>
> _screen.WindowState = 1
>
>
>
>
>
[excessive quoting removed by server]


 
©2004 PLBorkholder
<-- Prior Message New Search Next Message -->