|
-
Feb 28th, 2001, 06:42 PM
#1
Thread Starter
Member
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.
-
Mar 2nd, 2001, 11:41 AM
#2
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.
-
Mar 2nd, 2001, 03:22 PM
#3
The GetWindowLong function will get the styles and extended styles.
-
Mar 3rd, 2001, 03:57 AM
#4
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.
-
Mar 3rd, 2001, 04:31 AM
#5
-
Mar 3rd, 2001, 05:28 AM
#6
im in a different time zone. (live near evansville) and i haven't been to bed yet either
-
Mar 3rd, 2001, 05:31 AM
#7
Fanatic Member
oh that is why 
have you tried out the new browser thing that is being developed for this forum?
-
Mar 3rd, 2001, 09:12 AM
#8
Sounds nice... do you know what the constant is for setting the passwordchar on textboxes?
Gerco.
-
Mar 3rd, 2001, 11:25 AM
#9
Here it is
Private Const EM_SETPASSWORDCHAR = &HCC
-
Mar 3rd, 2001, 11:28 AM
#10
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
-
Feb 22nd, 2005, 07:38 AM
#11
Member
Re: How do find properties of controls of other applications?
 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
-
Feb 22nd, 2005, 04:31 PM
#12
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|