Re: Get a reference to an opened window
- From: "Altman" <NotGiven@xxxxxxxxxxxxxx>
- Date: Thu, 7 Apr 2005 15:24:08 -0500
Yes, the application object has to be passed to you. Office is a good
example of this, but many applications do not have this capability. I can't
make 2 VFP apps, have app 1 running, and have app 2 change the properties
and call methods of app 1 other with some API call like GiveMeObject("App
1")
"Dan Freeman" <spam@xxxxxxxxxxxxx> wrote in message
news:uafWA4vOFHA.3376@xxxxxxxxxxxxxxxxxxxxxxx
> Actually, it's possible and practical IF the target application was
> written
> to allow it. The technique is called Automation, and is (currently) a core
> technology in Windows.
>
> Dan
>
> Altman wrote:
>> If it is a totally different application, and that application does
>> not pass the object to you by some means, then no you cannot just say
>> for example, I want the Quickbooks form object set to this variable,
>> and have all the properties and methods that it has. This would
>> definitely be a security risk if this was allowed.
>>
>> "Leon" <Leon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:6C8F8127-2276-4555-AE9F-A24193ABAA8A@xxxxxxxxxxxxxxxx
>>> Hi Lee.
>>> Thanks for replying.
>>> May be I did not explain it correctly, but what I need is to have
>>> the same type of reference
>>> to the window as I would have by calling like O = Getobject(...).
>>> And later
>>> I want
>>> to use properties and methods of that object like O.ObjectProperty.
>>> Is that possible to do?
>>>
>>> Leon
>>>
>>>
>>> "Lee Mitchell" wrote:
>>>
>>>> Hi Leon:
>>>>
>>>> You need to use Windows API calls to find the Window name. Take a
>>>> look at
>>>> the code in this article:
>>>>
>>>> http://support.microsoft.com/default.aspx?scid=KB;EN-US;188404
>>>>
>>>> I hope this helps.
>>>>
>>>> This posting is provided "AS IS" with no warranties, and confers no
>>>> rights.
>>>>
>>>> Sincerely,
>>>> Microsoft FoxPro Technical Support
>>>> Lee Mitchell
>>>>
>>>> *-- VFP9 HAS ARRIVED!! --*
>>>> Read about all the new features of VFP9 here:
>>>> http://msdn.microsoft.com/vfoxpro/
>>>>
>>>> *--Purchase VFP 9.0 here:
>>>>
> http://www.microsoft.com/PRODUCTS/info/product.aspx?view=22&pcid=54787e64-52
>>>> 69-4500-8bf2-3f06689f4ab3&type=ovr
>>>>
>>>> Keep an eye on the product lifecycle for Visual FoxPro here:
>>>> http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
>>>> - VFP5 Mainstream Support retired June 30th, 2003
>>>> - VFP6 Mainstream Support retired Sept. 30th, 2003
>>>>
>>>>> Hi Guys.
>>>>
>>>>> Can anyone prompt me how to get a reference to not a VFP window?
>>>>> The window was not opened from VFP 8.0 using Createobject() or
>>>>> Getobject().
>>>>
>>>>> Thanks
>
>
.
- Follow-Ups:
- Re: Get a reference to an opened window
- From: Dan Freeman
- Re: Get a reference to an opened window
- References:
- Get a reference to an opened window
- From: Leon
- RE: Get a reference to an opened window
- From: Lee Mitchell
- RE: Get a reference to an opened window
- From: Leon
- Re: Get a reference to an opened window
- From: Altman
- Re: Get a reference to an opened window
- From: Dan Freeman
- Get a reference to an opened window
- Prev by Date: Re: dbf trashing problem after upgrade
- Next by Date: Re: Get a reference to an opened window
- Previous by thread: Re: Get a reference to an opened window
- Next by thread: Re: Get a reference to an opened window
- Index(es):
Relevant Pages
|