Jump to content

set the date in a date field : NOT autoit picker


yaso
 Share

Recommended Posts

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

Link to comment
Share on other sites

  • Moderators

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

 

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • 1 month later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...