selva Posted February 18, 2008 Share Posted February 18, 2008 Hello All, I am able to search and select a item in a Tree view using _GUICtrlTreeView_FindItem & _GUICtrlTreeView_SelectItem. I would like to know how to get the coordinates of the selected item and how to move the mouse cursor to the corresponding to coordinates position. Thnx in advance. Regards, Selva... Link to comment Share on other sites More sharing options...
BrettF Posted February 18, 2008 Share Posted February 18, 2008 With the search func, I see it returns a handle? It may be worth to experiment with the return values of ControlGetPos ( "title", "text", controlID ), and for the second part, MouseMove () Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
selva Posted February 18, 2008 Author Share Posted February 18, 2008 With the search func, I see it returns a handle? It may be worth to experiment with the return values of ControlGetPos ( "title", "text", controlID ), and for the second part, MouseMove ()With ControlGetPos, I am getting the size and position of the tree view and not the item selected in the tree viewCan you me little bit more ??Regards,Selva Link to comment Share on other sites More sharing options...
BrettF Posted February 18, 2008 Share Posted February 18, 2008 Not sure then... Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
GaryFrost Posted February 18, 2008 Share Posted February 18, 2008 _GUICtrlTreeView_ClickItem($hTreeView, $hItem, "left", True) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
selva Posted February 19, 2008 Author Share Posted February 19, 2008 _GUICtrlTreeView_ClickItem($hTreeView, $hItem, "left", True) Hi Thanks for the reply But I couldnt able to find 'Clickitem' method in the GUICtrlTreeView. Any version update I need to do. Currently I am using SciTE Version 1.74 editor and Autoit3 Regards, Selva Link to comment Share on other sites More sharing options...
BrettF Posted February 19, 2008 Share Posted February 19, 2008 Hi Thanks for the replyBut I couldnt able to find 'Clickitem' method in the GUICtrlTreeView.Any version update I need to do. Currently I am using SciTE Version 1.74 editor and Autoit3Regards,SelvaYou need the latest Beta. Cheers,Brett Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
selva Posted February 19, 2008 Author Share Posted February 19, 2008 You need the latest Beta. Cheers,BrettHi,Thanx a lot, It is working fineRegards,Selva Link to comment Share on other sites More sharing options...
BrettF Posted February 19, 2008 Share Posted February 19, 2008 (edited) Glad to hear that! Cheers, Brett Edited February 19, 2008 by Bert Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
Zedna Posted February 19, 2008 Share Posted February 19, 2008 Hello All,I am able to search and select a item in a Tree view using _GUICtrlTreeView_FindItem & _GUICtrlTreeView_SelectItem.I would like to know how to get the coordinates of the selected item and how to move the mouse cursor to the corresponding to coordinates position.Thnx in advance.Regards,Selva...If you need only get position/coordinates of TreeView item then use _GUICtrlTreeView_DisplayRectEx() Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
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