×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

ISL / SIM Script for daily specials RES3700

ISL / SIM Script for daily specials RES3700

ISL / SIM Script for daily specials RES3700

(OP)
Hello all and thank you in advance for any advice. I am trying to set up daily specials to run at 2 different times throughout the day. i have a special that runs from 11am-2pm and another one that runs from 3pm-6pm. i can get one of these working fine but cant figure out how to get them both working. here is the code i have that runs the 3pm-6pm specials for Monday.

//Monday Drink Specials
If ((@WEEKDAY = 1) AND (@HOUR >= 15)) OR ((@WEEKDAY = 1) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn1)
ENDIF

thanks again for any info!

RE: ISL / SIM Script for daily specials RES3700

Can you post the code for the other script that is working?

RE: ISL / SIM Script for daily specials RES3700

(OP)
Hi Jimmy. here is the whole .isl file

////////////////////////////////////////////////////
////////////////////////////////////////////////////
//////HH or Special By Day and Time by SLU#//////////
/////////////////////////////////////////////////////
//This simple sim calls up differnt SLUs by time and date. It can be used to
//create multiple simple happy hours, daily specials or whatever.
//You only have to give up one button and when you link it to the sim it pulls
//up the specials that are TIMED CORRECTLY to that slu. Nothing active? Nothing shows?
////////////////////////////////////////////////////
////
///////////////////////////////////////////////////
//weekday 1 = Monday
//hour 14 = 2pm


VAR scrn1 :N4 =401 //Monday Drink Specials
VAR scrn2 :N4 =402 //Tuesday Drink Specials
VAR scrn3 :N4 =403 //Wednesday Drink Specials
VAR scrn4 :N4 =404 //Thursday Drink Specials
VAR scrn5 :N4 =405 //Friday Drink Specials
VAR scrn6 :N4 =406 //Saturday Drink Specials
VAR scrn7 :N4 =407 //Sunday Drink Specials
VAR scrn8 :N4 =301 //Monday Food Specials
VAR scrn9 :N4 =302 //Tuesday Food Specials
VAR scrn10 :N4 =303 //Wednesday Food Specials
VAR scrn11 :N4 =304 //Thursday Food Specials
VAR scrn12 :N4 =305 //Friday Food Specials
VAR scrn13 :N4 =306 //Saturday Food Specials
VAR scrn14 :N4 =307 //Sunday Food Specials
//scrn# :N4 ="SLU#"

// Start event FOR DRINKS
Event Inq : 1


//Edit your days and time. Set your "scrn#" VAR to match your "SLU#"

//Timed by day(S) of week and hours
//If ((@WEEKDAY >= 1) AND (@WEEKDAY <= 5)) AND ((@HOUR >= 16 AND @HOUR <= 19))
// Call your key function here with LoadKybdMacro
//LoadKybdMacro key(17,scrn1)


//ENDIF

//Monday Drink Specials
If ((@WEEKDAY = 1) AND (@HOUR >= 15)) OR ((@WEEKDAY = 1) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn1)


ENDIF

//Tuesday Drink Specials
If ((@WEEKDAY = 2) AND (@HOUR >= 15)) OR ((@WEEKDAY = 2) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn2)


ENDIF

//Wednesday Drink Specials
If ((@WEEKDAY = 3) AND (@HOUR >= 15)) OR ((@WEEKDAY = 3) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn3)


ENDIF

//Thursday Drink Specials
If ((@WEEKDAY = 4) AND (@HOUR >= 15)) OR ((@WEEKDAY = 4) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn4)


ENDIF

//Friday Drink Specials
If ((@WEEKDAY = 5) AND (@HOUR >= 15)) OR ((@WEEKDAY = 5) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn5)


ENDIF

//Saturday Drink Specials
If ((@WEEKDAY = 6) AND (@HOUR >= 9)) OR ((@WEEKDAY = 6) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn6)


ENDIF

//Sunday Drink Specials
If ((@WEEKDAY = 0) AND (@HOUR >= 15)) OR ((@WEEKDAY = 0) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn7)


ENDIF

ENDEVENT

//Start Event FOR FOOD
Event Inq : 2

//Monday Food Specials
If ((@WEEKDAY = 1) AND (@HOUR >= 15)) OR ((@WEEKDAY = 1) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn8)

ENDIF

//Tuesday Food Specials
If ((@WEEKDAY = 2) AND (@HOUR >= 15)) OR ((@WEEKDAY = 2) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn9)


ENDIF

//Wednesday Food Specials
If ((@WEEKDAY = 3) AND (@HOUR >= 15)) OR ((@WEEKDAY = 3) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn10)


ENDIF

//Thursday Food Specials
If ((@WEEKDAY = 4) AND (@HOUR >= 15)) OR ((@WEEKDAY = 4) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn11)


ENDIF

//Friday Food Specials 2pm-5am
If ((@WEEKDAY = 5) AND (@HOUR >= 15)) OR ((@WEEKDAY = 5) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn12)


ENDIF

//Saturday Food Specials
If ((@WEEKDAY = 6) AND (@HOUR >= 15)) OR ((@WEEKDAY = 6) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn13)


ENDIF

//Sunday Food Specials
If ((@WEEKDAY = 0) AND (@HOUR >= 15)) OR ((@WEEKDAY = 0) AND (@HOUR <=18))
LoadKybdMacro key(17,scrn14)


ENDIF

ENDEVENT

RE: ISL / SIM Script for daily specials RES3700

Sved where is the code for the 11-2 ?

RE: ISL / SIM Script for daily specials RES3700

(OP)
Hi Jimmy, sorry, the code for 11-2 is what i need. i tried to write isl to do the 11-2 within this code that already does 3-6 with no luck. thanks. Dave.

RE: ISL / SIM Script for daily specials RES3700

so what happens if you edit the code to match the 3-6? like this for each day

//Timed by day(S) of week and hours
//If ((@WEEKDAY >= 1) AND (@WEEKDAY <= 5)) AND ((@HOUR >= 11 AND @HOUR <= 13))
// Call your key function here with LoadKybdMacro
//LoadKybdMacro key(17,scrn1)


What happens to the monday special? in theory just changing the hours to match your hour specials should work

RE: ISL / SIM Script for daily specials RES3700

(OP)
Hi Jimmy, thanks for your suggestion. i was trying to have two separate times happening so changing one to the other wouldnt help. I did figure out how to add another event inquiry though. from the code i first posted i added this code..
i declared more VAR for the SLU..
VAR scrn15 :N4 =408 //Monday Drink Specials
VAR scrn16 :N4 =409 //Tuesday Drink Specials
VAR scrn17 :N4 =410 //Wednesday Drink Specials
VAR scrn18 :N4 =411 //Thursday Drink Specials
VAR scrn19 :N4 =412 //Friday Drink Specials
VAR scrn20 :N4 =413 //Saturday Drink Specials
VAR scrn21 :N4 =414 //Sunday Drink Specials

and added this inquiry/ISL code to the end..
// Start event FOR DRINKS 11am-2pm
Event Inq : 3

//Monday Drink Specials 11am-2pm
If ((@WEEKDAY = 1) AND (@HOUR >= 11)) OR ((@WEEKDAY = 1) AND (@HOUR <=14))
LoadKybdMacro key(17,scrn15)


ENDIF

//Tuesday Drink Specials
If ((@WEEKDAY = 2) AND (@HOUR >= 11)) OR ((@WEEKDAY = 2) AND (@HOUR <=14))
LoadKybdMacro key(17,scrn16)


ENDIF

//Wednesday Drink Specials
If ((@WEEKDAY = 3) AND (@HOUR >= 11)) OR ((@WEEKDAY = 3) AND (@HOUR <=14))
LoadKybdMacro key(17,scrn17)


ENDIF

//Thursday Drink Specials
If ((@WEEKDAY = 4) AND (@HOUR >= 11)) OR ((@WEEKDAY = 4) AND (@HOUR <=14))
LoadKybdMacro key(17,scrn18)


ENDIF

//Friday Drink Specials
If ((@WEEKDAY = 5) AND (@HOUR >= 11)) OR ((@WEEKDAY = 5) AND (@HOUR <=14))
LoadKybdMacro key(17,scrn19)


ENDIF

//Saturday Drink Specials
If ((@WEEKDAY = 6) AND (@HOUR >= 11)) OR ((@WEEKDAY = 6) AND (@HOUR <=14))
LoadKybdMacro key(17,scrn20)


ENDIF

//Sunday Drink Specials
If ((@WEEKDAY = 0) AND (@HOUR >= 11)) OR ((@WEEKDAY = 0) AND (@HOUR <=14))
LoadKybdMacro key(17,scrn21)


ENDIF

ENDEVENT

then through the POS Configuration i added the SLUs i declared and then for the touch screens i added the 11-2 button with these properties; category:SIM/PMS enquire, Interface: 3.Daily Specials, Inquiry Number: 3

it all seems to work fine however the menu items are somehow still available for the entire day and what i have accomplished is just a fancy way of using the menu levels. im still trying to figure out why. i will post more info if i get that part figured out too.

RE: ISL / SIM Script for daily specials RES3700

in the sim for 3-6 you have the food at

//Start Event FOR FOOD
Event Inq : 2

you can make another event inq like 5.

I would recommend creating 2 separate isl for the 2 different specials that way you can create 2 completely different food or drink menu for each time.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close