set the date in a date field : NOT autoit picker

2 posts in this topic

I am trying to set the date in a date picker field not created by autoit (shown in the attached images).

I did not create this field. It already exists in the window.

I used the following code:

; enter from date

$sFromDate  = "09/01/2017"
ControlFocus($hWnd, "", "WindowsForms10.SysDateTimePick32.app.01")
ControlSetText($hWnd, "", "WindowsForms10.SysDateTimePick32.app.01", $sFromDate )

As the AutoIt Window Info gave me info about the control but not the specific items ( month/day/year) inside the control.

How to set the date?



Share this post

Link to post
Share on other sites

Moved to the appropriate forum, as the Technical Discussion forum clearly states:


Do not post general support questions here, instead use the AutoIt Help and Support forums


√-1 2^3 ∑ π, and it was delicious!

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