Page 3 of 3 FirstFirst 123
Results 21 to 27 of 27

Thread: COM_GetObject()

  1. #21
    thinBasic MVPs
    Join Date
    May 2007
    Location
    UK
    Posts
    1,427
    Rep Power
    159

    Re: COM_GetObject()

    Thanks for your work Roberto, I see a few applications for this coupled with the Comm module for the instruments I work with.

    Home Desktop : Windows 7 - Intel Pentium (D) - 3.0 Ghz - 2GB - Geforce 6800GS
    Home Laptop : WinXP Pro SP3 - Intel Centrino Duo - 1.73 Ghz - 2 GB - Intel GMA 950
    Home Laptop : Windows 10 - Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz, 2401 Mhz, 2 Core(s), 4 Logical Processor(s) - 4 GB - Intel HD 4400
    Work Desktop : Windows 10 - Intel I7 - 4 Ghz - 8GB - Quadro Fx 370

  2. #22

    Re: COM_GetObject()

    Abraxas,

    you are welcome!
    Please let me know if you need somethings else, COM module is just sketched.

    Bye,
    Roberto
    http://www.thinbasic.com

  3. #23

    Re: COM_GetObject()

    Quote Originally Posted by RobertoBianchi
    Marcel,

    the function that you need already exist, it's hWnd = Win_FindByTitle(WindowTitle [, FindMethod])

    I'm sorry but I don't understand what you mean with
    open ole_objects
    do you mean Open Office?

    Ciao,
    Roberto
    Hi Roberto,

    Thanks for the win_findbytitle() function. This makes it a lot easyer.

    No, I just mean instances of MSWord or Excel objects.

    Kind Regards

    Marcel
    Kind regards<br /><br />Marcel

  4. #24

    Re: COM_GetObject()

    Quote Originally Posted by ErosOlmi
    Marcel,

    Win_FindByTitle is in UI module. Hope it is what you are searching.
    It can work with partial windows names, see help. But it will not work with child windows so if your MSWord uses different windows it will work fine other wise, old Word versions worked MDI. In this case Win_FindByTitle will not find child MDI windows.

    Ciao
    Eros
    Hi Eros,

    Thanks for the information. I use MSOffice 2002/2003 and I think it uses child MDI windows but I don't know for sure. The function looks the same but I have to test it.

    Kind regards,

    Marcel
    Kind regards<br /><br />Marcel

  5. #25
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: COM_GetObject()

    Marcel,

    I've checked and Word 2003 uses multiple windows one for each document so WIN_FindByTitle will be able to find different open documents using window title. The same for Word 2000.

    Ciao
    Eros
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

  6. #26

    Re: COM_GetObject()

    Hi Eros,

    That is what I call SERVICE, thanks.

    Kind regards

    Marcel
    Kind regards<br /><br />Marcel

  7. #27
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10

    Re: COM_GetObject()

    Thanks Marcel.
    We try our best when we can.
    www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
    Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000

Page 3 of 3 FirstFirst 123

Members who have read this thread: 0

There are no members to list at the moment.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •