Jump to content

Recommended Posts

Posted

Hi,

Hi, I'm using autoit with python to send files by whatsApp. At the time of sending the route in some cases the characters change from (\) to (') or (:) to (.)

Any idea what is happening?

error.PNG.bc8b7a5da5657cb5600a3ea8390a13e8.PNGruta.PNG.a9acfab123d4de0bb0a2696b2e8e70ce.PNG

Posted (edited)

 

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
Posted

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.

Posted

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.

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