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.
Printable View
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.
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.
The GetWindowLong function will get the styles and extended styles.
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.
Lord Orwell you are up really early it is 4:30 herein indiana. :)
Not me though i haven't been to bed yet:)
im in a different time zone. (live near evansville) and i haven't been to bed yet either :)
oh that is why :D
have you tried out the new browser thing that is being developed for this forum?
Sounds nice... do you know what the constant is for setting the passwordchar on textboxes?
Gerco.
Here it is
Private Const EM_SETPASSWORDCHAR = &HCC
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
Quote:
Originally Posted by Lord Orwell
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!!)
The specific constant is :
VB Code:
Const BM_GETCHECK As Long = &HF0&
You can use the API Viewer to find the constants : http://www.activevb.de/rubriken/apiv...viewereng.html
:)