Jump to content
Sign in to follow this  
pammi

Right Click on Treeview object

Recommended Posts

pammi

Hi All,

I am new to autoit and I am finding difficulty in right clicking on a treeview object using autoit. I have single parent node in the treeview with a file name and I want to right click on that file and select the context menu. Can anyone please help me out with this.

Share this post


Link to post
Share on other sites
jdelaney

_GUICtrlTreeView_ClickItem

Click on a item

#include <GuiTreeView.au3>

_GUICtrlTreeView_ClickItem($hWnd, $hItem [, $sButton = "left" [, $fMove = False [, $iClicks = 1 [, $iSpeed = 0]]]])

change the button to "right"...if you are able to read the data within it. I have had to do some dirty coding, and used relative values to the treeview control.

You can do that with ControlGetPos, and then doing a mouseclick on the X,Y coords, plus the relative coords of the place to click.


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
pammi

@jdelaney : thanks much for ur help. ControlGetPos worked.

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  

×