Jump to content

Right Click on Treeview object


Recommended Posts

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.

Link to comment
Share on other sites

_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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...