Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
select invisble items in list
#1
I want to select items use the mouse, using "accessible object action" command.
As there has several hundreds to thousands items, I want it automatically select the items for me.
But it failed to select the invisble items.
However, the visible items can be selected and clicked without problem.
Therefore I tried to use pagedown key like this to select the invisble items .Of course when it is the next page then surely can become visible.
But this method seems to be stupid and will cause trouble some when the number of items changing.( Have to change all of the pagedown count accordingly.)

Code:
Copy      Help
int w1=win("Insert Analysis Techniques" "#32770")
act w1
key H           ;; Home
key Q           ;; Page_Down
key Q           ;; Page_Down
key Q           ;; Page_Down
key Q           ;; Page_Down
key Q           ;; Page_Down
key Q           ;; Page_Down
key Q           ;; Page_Down
key Q           ;; Page_Down
key Q           ;; Page_Down
key Q           ;; Page_Down
key Q           ;; Page_Down
int w=win("Insert Analysis Techniques" "#32770")
int w2=win("Insert Analysis Techniques" "#32770")
Acc a.Find(w2 "LISTITEM" "*NRTR WATR" "class=SysListView32[]id=6621" 0x1005)
a.Select(3)

   
   
The items cannot be viewed and need to the scroll the bar in order to click will cause the problems.

When checked the box show invisible,then like this happen:
   

When checked all the box : show invisble ,show useless, search + invisble object, +useless object,
it will not have any response ,only stay there ,and the time countdown stopped!

   

Is there a way to select items by searching them next page,and then next page,...... until they find it without needing manually
input pagedown key and automatically searching it?

And I have tried the following in this box already and still the same .

   

And it can select the visble items from QM ,but it cannot when running from exe.
I do no know where is the problem.

If it can select them for me automatically ,I will purchase QM.
Thanks in advance.
#2
Selecting items of a SysListView32 control often fails if the control is not focused.
Solution: focus the control. Or don't use the "focus" flag with Select.
Example:
Macro Macro2514
Code:
Copy      Help
int w=win("FileZilla" "wxWindowNR")
act w
Acc a.Find(w "LISTITEM" "download.html" "class=SysListView32[]id=-31781" 0x1015)

;focus the parent control
int c=child(a)
act c
;also you can scroll the item into view
SendMessage c LVM_ENSUREVISIBLE a.elem-1 0

a.Select(3)
;a.Select(2) ;;without "focus" flag, does not fail even if the control is not focused
And check "+ invisible".
#3
If does not work in exe, try to run exe as administrator. Because if the target program runs as administrator or uiAccess, and exe not, then many functions don't work.
http://www.quickmacros.com/help/Other/IDP_VISTA.html
#4
Thanks you !
It works, very excellent !
#5
This is another application have a treelist .

   

This time do not have " rectanglular box " when DRAGGING to the list area.

Is it impossible to catch the list item any other ways?

Is any other commands can accomplish this ?

Regards,
#6
Try dialog "Window text". It is in the same menu as the accessible object dialog.
But it finds only visible items. Will need to scroll somehow.
#7
Thanks you ! Smile

Quick Macros is the best !


Forum Jump:


Users browsing this thread: 1 Guest(s)