Results 1 to 12 of 12

Thread: How do find properties of controls of other applications?

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2001
    Location
    Chicago
    Posts
    40

    Question

    How do find properties of controls of other applications?

    For example: Looking to find the properties (ID,Value,Text, Enabled, etc...) of a text box on Internet Explorer.

    We found APIs to find the handle, coordindates, caption, class.

  2. #2
    Guest
    How DID you find the handle and control type?

    You must send windowmessages to the control to get at the properties. I'm not quite sure how it works either, but I need to know how to find the handle & control type.

    Gerco.

  3. #3
    Guest
    The GetWindowLong function will get the styles and extended styles.

  4. #4
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    a& = SendMessage(iCheck&, BM_GETCHECK, 0&, 0&)
    would return the state of a checkbox, given the handle of it (iCheck). A lot of controls have similar constants. confusingly, list boxes and combo boxes have different constants.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  5. #5
    Fanatic Member ExtremePimpness's Avatar
    Join Date
    Jan 2001
    Location
    Indianapolis, Indana - USA
    Posts
    550
    Lord Orwell you are up really early it is 4:30 herein indiana.
    Not me though i haven't been to bed yet

  6. #6
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628
    im in a different time zone. (live near evansville) and i haven't been to bed yet either
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  7. #7
    Fanatic Member ExtremePimpness's Avatar
    Join Date
    Jan 2001
    Location
    Indianapolis, Indana - USA
    Posts
    550
    oh that is why
    have you tried out the new browser thing that is being developed for this forum?

  8. #8
    Guest
    Sounds nice... do you know what the constant is for setting the passwordchar on textboxes?

    Gerco.

  9. #9
    Guest
    Here it is

    Private Const EM_SETPASSWORDCHAR = &HCC

  10. #10
    Guest
    Here is the full code.
    Code:
    Private Const EM_SETPASSWORDCHAR = &HCC
    Private Declare Function SendMessage Lib "user32" Alias "SendMessageA" (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long
    
    'Usage
    SendMessage EditHwnd, EM_SETPASSWORDCHAR, byVal "*", 0

  11. #11
    Member
    Join Date
    Apr 2002
    Location
    in
    Posts
    40

    Re: How do find properties of controls of other applications?

    Quote Originally Posted by Lord Orwell
    a& = SendMessage(iCheck&, BM_GETCHECK, 0&, 0&)
    would return the state of a checkbox, given the handle of it (iCheck). A lot of controls have similar constants. confusingly, list boxes and combo boxes have different constants.

    Hi!
    Would you please tell me a site or URL that contains the constant values? for example the value for BM_GETCHECK (that i need it but i cant find!!)
    A.B.Fatehi
    Microsoft Certified Professional

  12. #12
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: How do find properties of controls of other applications?

    The specific constant is :

    VB Code:
    1. Const BM_GETCHECK As Long = &HF0&

    You can use the API Viewer to find the constants : http://www.activevb.de/rubriken/apiv...viewereng.html



    Has someone helped you? Then you can Rate their helpful post.

Posting Permissions

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



Click Here to Expand Forum to Full Width