Jump to content
Sign in to follow this  
tintin92

ControlSetText dont seen work with Date controle.

Recommended Posts

tintin92

Hi,

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.

Tintin92


Tintin92

Share this post


Link to post
Share on other sites
tintin92

Find a workaround.

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

Send("08/10/1995")

If you have something safer, please tell it.

Regards.


Tintin92

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
seandisanti

Find a workaround.

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

Send("08/10/1995")

If you have something safer, please tell it.

Regards.

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.

Share this post


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
Sign in to follow this  

×