Skip to Content
It is currently November 15th, 2019, 8:52 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: May 20th, 2015, 2:11 pm 
Offline
New User
New User

Joined: October 19th, 2012, 11:09 am
Posts: 3
Use a VBScript in Event Adaptors option to show the names of the songs played.
Would I like a help you in this script because it does not know anything about Visual Script

That instruction put this script to display one sentence on any given day of the week and time ?

Example:

Appears the sentence "xxxxx" every Tuesday at 9:00 AM
Appears the sentence "xxxxx" every Wednesday 21:00

I wanted your help

Thank you

Marcelo


Top
 Profile  
Reply with quote  
PostPosted: May 20th, 2015, 4:52 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7880
Location: Aachen (Germany)
I'm not sure I understand your problem.
Programming languages are usually all very similar, so if you just post your problematic code I might be able to help.

I've got no real clue about the SAMCast thing, but if you just need a snippet to check the current time and display a message if it's that time, this should work:

It will check whether the current time is 09:00 on tuesday or 21:00 on wednesday and prints xxx in a message box if either is true.
Code:
If WeekdayName(weekday(Date), True) = 'Tue' And hour(time) = 9 And minute(time) = 0 Then
MsgBox "xxx"
ElseIf WeekdayName(weekday(Date), True) = 'Wed' And hour(time) = 21 And minute(time) = 0 Then
MsgBox "xxx"

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: May 20th, 2015, 6:07 pm 
Offline
New User
New User

Joined: October 19th, 2012, 11:09 am
Posts: 3
Hello Mastacheata, how are you ?
Thank you for your answer.

Where should I put these lines?
I will have many hours to appear sentences.

For example: Wednesday from 21:00 to 22:00 have to show the sentences "show name"
Friday from 12:00 to 13:00 appears the sentences "show name 2"

And when you have sentences to appear, you will have to follow the script normally.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group