08-05-2005, 10:01 AM
You can enumerate all accessible objects in a dialog. Use acc with flags=0x8000, x=address of callback function, and other arguments except window = "" or 0.
This macro enumerates all objects in Windows XP User Accounts dialog:
or, to enumerate objects only in the Internet Explorer_Server child window (it actually is a web page):
Function acc_enum_proc:
When you have reference to accessible object (variable a), you can manipulate the object using accessible object functions.
This macro enumerates all objects in Windows XP User Accounts dialog:
or, to enumerate objects only in the Internet Explorer_Server child window (it actually is a web page):
Acc a=acc("" "" "User Accounts" "Internet Explorer_Server" "" 0x8000 &acc_enum_proc 0)
Function acc_enum_proc:
function Acc&a level lParam
str name=a.Name
str role
a.Role(role)
out "%s ''%s''" role name
ret 1
When you have reference to accessible object (variable a), you can manipulate the object using accessible object functions.