Sign in to follow this  
Followers 0
tintin92

ControlSetText dont seen work with Date controle.

4 posts in this topic

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



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

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


[center]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.[/center]

Share this post


Link to post
Share on other sites

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.

1100111 00001011101111 00011101101111 00010111100100 00001111110100 00110111110010 00101101111001 0011100i didn't make up this form of encryption, but i like it.credit to the lvl 6 challenge on arcanum.co.nz

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  
Followers 0