Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ISL / SIM Script for daily specials RES3700

Status
Not open for further replies.

Sved

Programmer
Jan 27, 2016
4
NL
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!
 
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
 
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.
 
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
 
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.
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top