checkit
2008-01-12 10:59:20 UTC
hello,
i wrote a code which works great on explorer but it is not working for
me on firefox.
the important part of the code:
if (GetCursorPos(&pt) && (pt.x != g_pt.x || pt.y != g_pt.y)) {
g_pt = pt;
IAccessible *pacc, *new_pacc;
VARIANT vtChild;
if (SUCCEEDED(AccessibleObjectFromPoint(pt, &pacc, &vtChild))) {
new_pacc= pacc;
BSTR Result = L"";
BSTR bsName = NULL;
BSTR bsValue = NULL;
BSTR mine = L"shai";
pacc->get_accName(vtChild, &bsName);
pacc->get_accValue(vtChild, &bsValue);
HRESULT res= pacc->put_accValue(vtChild, mine);
i used it to get the text from any text box, and setting my own text.
however, in firefox i had only partiall success on receiveing the
value with get_accValue,
and no success with put_accValue which returns in res - not
implemented.
pleash help me..
i wrote a code which works great on explorer but it is not working for
me on firefox.
the important part of the code:
if (GetCursorPos(&pt) && (pt.x != g_pt.x || pt.y != g_pt.y)) {
g_pt = pt;
IAccessible *pacc, *new_pacc;
VARIANT vtChild;
if (SUCCEEDED(AccessibleObjectFromPoint(pt, &pacc, &vtChild))) {
new_pacc= pacc;
BSTR Result = L"";
BSTR bsName = NULL;
BSTR bsValue = NULL;
BSTR mine = L"shai";
pacc->get_accName(vtChild, &bsName);
pacc->get_accValue(vtChild, &bsValue);
HRESULT res= pacc->put_accValue(vtChild, mine);
i used it to get the text from any text box, and setting my own text.
however, in firefox i had only partiall success on receiveing the
value with get_accValue,
and no success with put_accValue which returns in res - not
implemented.
pleash help me..