Jump to content

TreeView Click by text


DIMM_V2
 Share

Go to solution Solved by DIMM_V2,

Recommended Posts

4 hours ago, Danp2 said:

Ok... so this appears to be the same issue as described in this prior thread. Running the script in x64 mode works for me.

#AutoIt3Wrapper_UseX64=Y
#include <GUIConstantsEx.au3>
#include <TreeViewConstants.au3>
#include <WindowsConstants.au3>

; Run the Everything application
Run('C:\Program Files\Everything\Everything.exe')
Sleep(1000)
Send("^p")
Sleep(1000)

; Get the handle of the SysTreeView32 control in the Everything window
Local $hWnd  = WinGetHandle("Everything Options")
Local $hTreeView = ControlGetHandle($hWnd, "", "[CLASS:SysTreeView32; INSTANCE:1]")

ControlTreeView($hWnd , "", $hTreeView, "Select", "General|Home")
ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : ControlTreeView = Error code: ' & @error & @CRLF)
 

 

now im doing some advanced test , and  I See that for me it's working only with 32 bits version of Everything @win11 , can you post your  Everything version ? and on which os you are ? win 10 / win 11 ? and build  . and the  "#AutoIt3Wrapper_UseX64=Y" changes nothing to me .

Link to comment
Share on other sites

I See interesting thing , this is working for 64bits only from SciTE.exe , not from cmd,powershell or Visual Studio Code .

this is really strange , or maybe it is normal because there are an argument "#AutoIt3Wrapper_UseX64=Y"  which is accepted only by Scite ?

if compiled in x64 to final exe , this works fine .

 

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