Jump to content
yaso

set the date in a date field : NOT autoit picker

Recommended Posts

yaso

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?

Thanks.

date.jpg

Share this post


Link to post
Share on other sites
JLogan3o13

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

Quote

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
yaso
On 9/25/2017 at 4:31 PM, JLogan3o13 said:

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

 

Where is the appropriate forum that you moved this post to?

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

×