Re: Get a reference to an opened window

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
>
>


.



Relevant Pages

  • Re: reboot
    ... How about IBM Tivoli Framework. ... Tivoli are not applications ... such monitoring tools will invoke ... a host-system reboot using the IPMI soft-shutdown capability which ...
    (comp.unix.programmer)
  • Re: reboot
    ... Tivoli are not applications ... such monitoring tools will invoke ... a host-system reboot using the IPMI soft-shutdown capability which ... Tivoli framework is a daemon running as root. ...
    (comp.unix.programmer)
  • Re: XP RAM Limitation
    ... Even though XP Pro has the capability to allocate 3GB to applications, ...
    (microsoft.public.windowsxp.hardware)
  • Re: Could-based/Hosted/SaaS Terminal Services or Citrix solution?
    ... or Ctrix service that will allow my company to move our applications ... Windows Server 2008 R2 provides multi-monitor ... capability but to what degree I'm unsure. ... I'm looking for advice in locating a company that can ...
    (microsoft.public.windows.terminal_services)