Cannot access Button Control
Posted: Mon Oct 26, 2009 11:20 pm
When using the FindChildClassName method, there seems to be a problem with similar class names, as in the following example:
form = RxFormFindTitle("My Title Something", MATCH_FROM_START, TRUE, 1000);
button = RxFormFindChildClassName(form, "TButton #4");
RxMouseMoveToControl(button);
RxMouseClickControl(button);
There are several buttons with class name starting with "TButton ..".
Compilation is o.k., but during execution the handle "button" will access only the button
named "TButton #1".
How can I reach "TButton #4" ?
---------------------------------------------------------------------
Operating System Windows 2000 SP4
Ranorex Pro 1.2, C++
VCExpress 2005, under Windows XP SP3
form = RxFormFindTitle("My Title Something", MATCH_FROM_START, TRUE, 1000);
button = RxFormFindChildClassName(form, "TButton #4");
RxMouseMoveToControl(button);
RxMouseClickControl(button);
There are several buttons with class name starting with "TButton ..".
Compilation is o.k., but during execution the handle "button" will access only the button
named "TButton #1".
How can I reach "TButton #4" ?
---------------------------------------------------------------------
Operating System Windows 2000 SP4
Ranorex Pro 1.2, C++
VCExpress 2005, under Windows XP SP3