Scripting help needed
Friday, February 23, 2007 by MagsGonyo | Discussion: OS Customization
This is my first post here so if this is not in the right area feel free to move it.
I am looking for help writing a script that will start DXPlayer playing when a time is reached. Basically a script to hit play when my alarm clock goes off. Thanks for the help.
Please login to comment and/or vote for this skin.
Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:
- Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
- Access to a great community, with a massive database of many, many areas of interest.
- Access to contests & subscription offers like exclusive emails.
- It's simple, and FREE!







Reply #1 Sunday, February 25, 2007 7:11 AM
Sub Object_OnScriptEnter
Dim Alarm = "8:30:00 PM" 'Define alarm time
Dim Seconds = DateDiff(Now, Alarm) 'Returns number of second until the alarm goes of
Object.SetTimer 1, Seconds * 1000 'Convert to milliseconds
End Sub
Sub Object_OnTimer1
Set objPlayer = CreateObject("WMPlayer.OCX")
objPlayer.OpenPlayer("C:\path\to\some\file.mp3")
Sub