Jump to content

i send a path with auto_send and this path change on the moment to search the file


Cinostroza
 Share

Recommended Posts

 

I tried saving the route as a string and it still throws me the same error. In addition every time I send the route I print it to see the value of the variable and there is no problem. In addition, this problem does not always occur, in most occasions the route is well written

 

image.png.6c970e6fd967697f1481c26c2cd22c7b.png

Edited by Cinostroza
Link to comment
Share on other sites

You stated that you are using Python and Autoit, and based on the structure of your code I assumed that you are using PyAutoit. Correct?

The Autoitx ControlSend function supports an optional flag parameter. This appears to be implemented in PyAutoit as "mode" instead of "flag" --

def control_send(title, control, send_text, mode=0, **kwargs):

so I was suggesting that you try changing your code to --

autoit.control_send("Abrir", "Edit1", Imagepath, 1)

and then test to see if the issue reoccurs.

Link to comment
Share on other sites

Sorry, but your description is lacking as "didn't succeed" could have so many different meanings. I'm going to assume that you meant that the code ran fine but it exhibited the same behavior as before.

No matter... this isn't an area where I have much experience, so I don't know how to assist you further until you can identify a way to reliably repeat the issue.

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...