Jump to content

_GUICtrlTreeView_Expand hits recurssion limit


jdelaney
 Share

Recommended Posts

Background: we have an app that was recently able to be built as 32 bit and 64 bit.  One of the windows is a File Explorer, but uses a tree view (don't ask me why) to navigate the file structure

On the 32bit app, it was scripted to grab the c:, and double click it (_GUICtrlTreeView_ClickItem), which worked fine, it would expand the c: to allow the next item to be double clicked, etc, until the file was selected.

On the 64bit app, when running scite as 64 bit, the _GuiCtrlTreeView_ClickItem returns an error level > 0 (I haven't put a lot of debugging into why, but I prefer to not use mouseclicks when other methods are available anyways), so I was converting to use the other functions to not use clicks:

_GuiCtrlTreeView_Expand

_GuiCtrlTreeView_SelectItem

etc

 

I attempted using _GUICtrlTreeView_Expand, but this function recursively opens ALL directories, which hits the recursion limits.  Is there another ready made function to NOT expand recursively?  I just want the item  I specified to expand, and I'll logically keep digging deeper and expanding the additional items.  If not, I'll make my own variation of __GuiCtrlTreeView_ExpandItem.

 

Edit: I 'hacked' the current functions to do what I needed...made _GuiCtrlTreeView_ExpandOnce (copied form _GuiCtrlTreeView_Expand) , which calls __GuiCtrlTreeView_ExpandItemOnce (copeied from __GuiCtrlTreeView_ExpandItem) , which doesn't recursively call it's self.

Edited by jdelaney
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...