pammi Posted May 1, 2012 Posted May 1, 2012 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.
jdelaney Posted May 1, 2012 Posted May 1, 2012 _GUICtrlTreeView_ClickItemClick 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.
pammi Posted May 2, 2012 Author Posted May 2, 2012 @jdelaney : thanks much for ur help. ControlGetPos worked.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now