Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Recording Data
#1
Hello, I am new with QM. I am currently doing an internship that requires me to create a macro that will be for regression testing of a company's software. One of the requirements for this macro is to be able to record all the data. I saw on another forum something similar.

Find EVERY accessible object in an application

I tried to test the program, but the following command came up with an error saying "Window not found."

Acc a=acc("" "OUTLINE" win("My Computer" "ExploreWClass") "SysTreeView32" "" 0x1000)

Any help would be grateful.

Thank you
#2
This code will not work with all folder windows of Windows 7 and some folder windows on other OS.
Try to replace this line with code generated by the "Find accessible object" dialog. In the dialog, drag-capture the listview object.

Example with folder window on Windows 7
Macro Macro1730
Code:
Copy      Help
out
int w=win("" "CabinetWClass")
Acc a.Find(w "LIST" "Items View" "class=DirectUIHWND" 0x1005)
ARRAY(Acc) c; int i
a.GetChildObjects(c)
for i 0 c.len
,str name=c[i].Name; err name=""
,str value=c[i].Value; err value=""
,out "name='%s', value='%s'" name value
#3
Thank you very much Gintaras helps a lot


Forum Jump:


Users browsing this thread: 3 Guest(s)