What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » DateTimeControl

DateTimeControl
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: DateTimeControl
after a lot of testing and swearing this works :P

code:
var DTM_SET_SYSTEMTIME = 0x1002;
var GDT_VALID = 0;

var SysTimeStruct = Interop.Allocate(16);
SysTimeStruct.WriteWORD(0, 2006); //Year
SysTimeStruct.WriteWORD(2, 1); //Month (1-12)
SysTimeStruct.WriteWORD(4, 6); //Day Of Week (0-6 = Sunday-Saturday)
SysTimeStruct.WriteWORD(6, 1); //Day Of Month (1-31)
SysTimeStruct.WriteWORD(8, 12); //Hour (0-23)
SysTimeStruct.WriteWORD(10, 12); //Minute (0-59)
SysTimeStruct.WriteWORD(12, 12); //Second (0-59)
SysTimeStruct.WriteWORD(14, 500); //Millisecond (0-999)

PlusWnd.SendControlMessage('DateTimeControlId', DTM_SET_SYSTEMTIME, GDT_VALID, SysTimeStruct.DataPtr);

This post was edited on 07-01-2006 at 09:47 AM by Eljay.
07-01-2006 08:46 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
DateTimeControl - by NiteMare on 07-01-2006 at 05:33 AM
RE: DateTimeControl - by Mnjul on 07-01-2006 at 07:59 AM
RE: DateTimeControl - by NiteMare on 07-01-2006 at 08:02 AM
RE: DateTimeControl - by Eljay on 07-01-2006 at 08:46 AM
RE: DateTimeControl - by NiteMare on 07-01-2006 at 09:52 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On