Jump to content

Set time in DateTimePick32


Recommended Posts

Hi all. I have a control WindowsForms10.SysDateTimePick32. I use this code:

$Test = _GetFileProperty("1.wmv", "Duration")

WinActivate("Form1")

$a_DateX = StringSplit($Test, ":", 1)

Local $hDTP, $a_Date[7] = [False, @YEAR, @MON, @MDAY, $a_DateX[1], $a_DateX[2], $a_DateX[3]]

$hDTP = NET_ControlGetHandleByName("Form1", "", "dTime")

Sleep(250)

_GUICtrlDTP_SetFormat($hDTP, "H:mm:ss")

_GUICtrlDTP_SetSystemTime($hDTP, $a_Date)

Sleep(250)

I can put the text in the WindowsForms10.SysDateTimePick32, but when i try to save, will revert to 0:00:00. Can someone tell me what i´m doing wrong?

Regards.

Link to comment
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
 Share

  • Recently Browsing   0 members

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