Jump to content

ControlSetText dont seen work with Date controle.

Recommended Posts


The command ControlSetText work with Edit control, but dont seen work with date control.

ControlSetText("Ajouter", "", "TEdit1", "Orange")

This one work.

ControlSetText("Ajouter", "", "TDateTimePicker3", "01/05/1990")

This one dont work.

Where is my mistake.

Thanks in advance.



Link to post
Share on other sites
  • Moderators

Thanks for sharing your work around tintin92, I'm afraid I didn't know what program you were playing with to be able to attempt to help, but nice to know you posted a self made solution!!

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to post
Share on other sites

Find a workaround.

ControlFocus ("Ajouter ", "", "TDateTimePicker3")


If you have something safer, please tell it.


you could use ControlSend() instead of Send() then you dont' have to worry about setting focus, or anything (like another script) changing the active window while data is being sent.
Link to post
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...