Ontosy Posted May 7, 2012 Share Posted May 7, 2012 I not see "AM" "PM" in the $iStartTime field.$iStartTime = GUICtrlCreateDate("00:00", 189, 145, 75, 20, 9); $DTS_TIMEFORMAT = 9GUICtrlSendMsg($iStartTime, 0x1032, 0, "hh:mm tt");$DTM_SETFORMATW = 0x1032why? Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted May 7, 2012 Moderators Share Posted May 7, 2012 Look at example #3 in the help file for GUICtrlCreateDate for the proper way to set this. "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 More sharing options...
Ontosy Posted May 7, 2012 Author Share Posted May 7, 2012 Look at example #3 in the help file for GUICtrlCreateDate for the proper way to set this.Also in this example if i modify: $style = "HH:mm tt" GUICtrlSendMsg($date, $DTM_SETFORMAT_, 0, $style)i not see AM and PM Link to comment Share on other sites More sharing options...
JohnOne Posted May 7, 2012 Share Posted May 7, 2012 (edited) Probably because your local computer has 24hr clock. EDIT: ie change your calendar time settings long to "hh:mm:ss tt" Edited May 7, 2012 by JohnOne AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Ontosy Posted May 7, 2012 Author Share Posted May 7, 2012 Probably because your local computer has 24hr clock.ie change your calendar time settings long to "hh:mm:ss tt"Al if i change my calendar time settings long in SO to "hh:mm:ss tt" i again not see AM and PM. Link to comment Share on other sites More sharing options...
JohnOne Posted May 7, 2012 Share Posted May 7, 2012 I'm out of ideas then. Example4() in the helpfile works fine here. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Spiff59 Posted May 7, 2012 Share Posted May 7, 2012 Have you tried _GUICtrlDTP_SetFormat() ? Maybe try out the example code for that command in the helpfile and see what happens... Link to comment Share on other sites More sharing options...
Ontosy Posted May 7, 2012 Author Share Posted May 7, 2012 Yes i tried full code in example. I think it's a problem on my XP but I do not know what. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now