need help getting controltext
#1
Posted 03 December 2008 - 04:35 PM
I need help with getting the control text from the following window:
Attached is a file with a screen shot of the controlwindow.
thanks,
I tried :
$m=WinGetText ("[CLASS:AfxWnd70u]","") --> dosen't work.
also: ControlGetText ("Customer Interaction Express","","[CLASSNN....) didn't work also.
please help me out.
#2
Posted 03 December 2008 - 05:50 PM
$sText = ControlGetText("Customer Interaction Express", "", "[CLASSNN:AfxWnd70u36]") ConsoleWrite($sText & @CR)
#3
Posted 03 December 2008 - 06:07 PM
hi, Thanks, I will try it tomorrow and let you know if it worked.You're trying to use the class of the control to get reference to the window, that obviously won't work.
$sText = ControlGetText("Customer Interaction Express", "", "[CLASSNN:AfxWnd70u36]") ConsoleWrite($sText & @CR)
#4
Posted 04 December 2008 - 09:23 AM
I still have a problem, allthough this works, the second time you open the application, it has a different CLASSNN number for this control.
pls help out.
is there any way to get the CLASSNN of a CLASS control before getting the data like guictrlgetclassNN ? because the CLASS itself AfxWnd70u never changes only the CLASSNN.
#5
Posted 04 December 2008 - 12:22 PM
Looks which of other properties of that control don't change (for example: X,Y,W,H) and specify it in yourhi, again.
I still have a problem, allthough this works, the second time you open the application, it has a different CLASSNN number for this control.
pls help out.
is there any way to get the CLASSNN of a CLASS control before getting the data like guictrlgetclassNN ? because the CLASS itself AfxWnd70u never changes only the CLASSNN.
[CLASS:AfxWnd70u; X:100; Y:200]
Edited by Zedna, 04 December 2008 - 12:23 PM.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users





