Sign in to follow this  
Followers 0
CoderAI

MouseClick on selected element in treeview

2 posts in this topic

#1 ·  Posted

Hello,

I am struggling with finding the appropriate co-ordinate for each element present in a treeview. The treeview is not Systreeview32 but it is developed in .Net (Class:WindowsForms10.Window.8)

So the treeview is not operated with the AutoIT built-in functions. I am handling it with Send keys i.e Send("{SPACE}"), Send("{DOWN}") etc.

My question is: I want to find the co-ordinates of the elements which are present in this treeview. There is a loop which navigates all elements in treeview and I want to click on each element one by one.

I tried mouse related functions i.e. MouseMove($pos[0],$pos[1],0) and MouseClick("left", 571, 293, 2) but as obvious it won't move to next element. 

I need to use the counter and pass it to MouseClick function.

I observed that there is a difference of 10 - 15 pixels (not fixed) for each element in my treeview.

Please suggest the solution.

Thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted

Anybody to help me out?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0