Jump to content

Recommended Posts

Posted

I am using below code to select from treeview.It is showing 1 value in msg box  but its not selecting the India item.

                executeScript("""
                    #include <MsgBoxConstants.au3>
                    
                    \$hWnd = WinActive("Title")
                    MsgBox("", "", \$hWnd)  --it is returning title handle value
                   
                    \$result = ControlTreeView ("Title", "", "[CLASS:SysTreeView32; INSTANCE:1]", "Select", "#0|India")
                    MsgBox("", "", \$result) --it is returning value 1,but item India is not selecting
                   
                """)
                
                Can you please help on this.

Posted
  On 8/10/2021 at 2:51 PM, Nine said:

1- check @error AND $result

2- you may need to expand the tree first

3- as described in help file, you may need to run it x64

4- you could try also #RequireAdm

Expand  

i have tried expand also but its not working and my application is 32 bit and SciTe script also giving return result as one and selecting the item but issue here is we are using this code in bot automation and bot is unable to select it which is preiously working fine and we dont have any idea why bot is not selecting.

  • 4 weeks later...
Posted

Do you have 64 bit Windows? 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)
  On 9/6/2021 at 6:49 PM, mLipok said:

Do you have 64 bit Windows? 

Expand  

I asked because I think that half year ago I had similar problem.

Take a look here:

 

Edited by mLipok

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

  • 3 weeks later...
Posted
  On 9/6/2021 at 6:49 PM, mLipok said:

Do you have 64 bit Windows? 

Expand  

yes we have 64 bit. actually we are using code in BOT machines, when i checked with Sciti it is selecting India item but when bot is running it is not selecting.

Posted
  On 9/27/2021 at 2:49 PM, mounika said:

India item

Expand  

?

Did you try the code I pointed you ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

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
  • Recently Browsing   0 members

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