Results 1 to 2 of 2

Thread: Getting to controls of existing applications

  1. #1

    Getting to controls of existing applications

    Hello,
    I have combed the help files looking for the means in which
    to send a mouse click to a specific tab of a piece of software
    running on my desktop. I am able to get the hWnd of the Window
    thru its title, however I do not know how to "find" i.e., get to the tab
    control and then ultimately the specific tab. I looked at the
    Win_GetDlgCtrlId and Win_GetDlgItem but I do not think that's what I
    need. Most of the other help always assumes that I created the control.
    This is an application that I did not author.
    Thank you in advance for any assistance.
    RPrinceton711

  2. #2
    thinBasic author ErosOlmi's Avatar
    Join Date
    Sep 2004
    Location
    Milan - Italy
    Age
    57
    Posts
    8,777
    Rep Power
    10
    Ciao RPrinceton711 and welcome to thinBasic community.

    thinBasic is not designed to automate windows but I think you can get something.
    Have a look at this post: https://www.thinbasic.com/community/...ghlight=winspy
    At page 3 there is post #22 with a MSPaint automation example from rjp74 user.

    You can get it and see how to adapt to your needs.
    Just start MSPaint and then execute the script to see how it works.

    Maybe you need WinSpy++ utility to find the ControlID (the unique identifier of the control) of your tab control and make some change in the source code.
    If you do not have WinSpy++, le me know and I will attach here later.

    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

Similar Threads

  1. Replies: 6
    Last Post: 19-08-2013, 16:54
  2. ARM-Based Windows 8 Will Not Run x86 Applications.
    By ErosOlmi in forum Technology
    Replies: 2
    Last Post: 20-09-2011, 07:06
  3. insert new tbgl objects into existing scene?
    By Lionheart008 in forum TBGL General
    Replies: 5
    Last Post: 22-01-2011, 17:18
  4. About your applications
    By ErosOlmi in forum Web and Forum
    Replies: 0
    Last Post: 03-05-2009, 12:01
  5. KDE applications under Windows platform
    By ErosOlmi in forum Development
    Replies: 5
    Last Post: 31-01-2008, 02:08

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
  •