Hallo,
ich habe ein Problem. Nämlich möchte ich per Trigger den Screen wechseln nur springt er wenn ich auf diesen Trigger drücken dann immer auf den Hauptscreen zurück.
Wie kann ich das ändern, dass das nicht passiert
'#############################################################################################################
' Atron-Script von Projekt Potsdam
'#############################################################################################################
'Simulates ticket printer
'(c) 12.01..2010 Rüdiger Hülsmann
'Script Version: 1.0
'Omsi release: 1.0
'Needs:
'- none
'Revision History:
'- Rüdiger Hülsmann 12.01.2011 File created
'- Rüdiger Hülsmann 15.01.2011 Functions added
'- Projekt Potsdam 07.03.2020 angepasst auf Atron 4.10 Regiobus Mod Pack
'----------------------
' Trigger
'----------------------
{trigger:atron_button_Nachtmodus}
(L.L.elec_busbar_main)
(L.L.Atron_startup_time) 9 >
{if}
(M.L.tastenton)
(L.L.Nachtmodus) ! (S.L.Nachtmodus)
{endif}
{end}
{trigger:atron_button_Start}
(L.L.elec_busbar_main)
(L.L.Atron_startup_time) 9 >
{if}
(M.L.tastenton)
2 (S.L.atron_display)
{endif}
{end}
{trigger:Karte_drag}
1 (S.L.Fahrerkarte)
1 (S.L.Karte)
{end}
{trigger:Karte_off}
0 (S.L.Fahrerkarte)
(T.L.ev_schedule)
0 (S.L.Karte)
{end}
{macro:Atron_frame}
'Display Modi Definition:
'Startup:
'0.1 = Display Startup0
'0.2 = Display Startup1
'0.3 = Display Startup2
'0.4 = Display Startup3
'0.5 = Display Startup3.1
'0.6 = Display Startup4
'0.61 = Display Hälligkeitsstufen
'0.62 = Display Hälligkeitsstufen
'0.63 = Display Hälligkeitsstufen
'0.64 = Display Hälligkeitsstufen
'0.65 = Display Hälligkeitsstufen
'Hauptscreens:
'0 = Display Aus
'1 = Display Start
'2 = Anmeldung
'3 = Pin
'4 = LSK
(L.L.atron_display) 0 =
{if}
"Atron AFR4.10\atron_display_s.dds" (S.$.atron_background)
0 (S.L.vis_atron_Nachtmodus) (S.L.vis_atron_Start)
{else}
(L.L.atron_display) 0.1 =
{if}
"Atron AFR4.10\atron_Start0.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.2 =
{if}
"Atron AFR4.10\atron_Start1.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.3 =
{if}
"Atron AFR4.10\atron_Start2.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.4 =
{if}
"Atron AFR4.10\atron_Start3.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.5 =
{if}
"Atron AFR4.10\atron_Start3.1.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.6 =
{if}
"Atron AFR4.10\atron_Start4.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.61 =
{if}
"Atron AFR4.10\atron_display_1_h0.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.62 =
{if}
"Atron AFR4.10\atron_display_1_h1.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.63 =
{if}
"Atron AFR4.10\atron_display_1_h2.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.64 =
{if}
"Atron AFR4.10\atron_display_1_h3.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 0.65 =
{if}
"Atron AFR4.10\atron_display_1_h4.dds" (S.$.atron_background)
{else}
(L.L.atron_display) 1 =
{if}
(L.L.Nachtmodus) 0 =
{if}
"Atron AFR4.10\atron_display_1.dds" (S.$.atron_background)
1 (S.L.vis_atron_Nachtmodus) (S.L.vis_atron_Start)
{else}
"Atron AFR4.10\atron_display_1_n.dds" (S.$.atron_background)
1 (S.L.vis_atron_Nachtmodus) (S.L.vis_atron_Start)
{endif}
{else}
(L.L.atron_display) 2 =
{if}
(L.L.Nachtmodus) 0 =
{if}
"Atron AFR4.10\atron_display_Fahrerkarte.dds" (S.$.atron_background)
0 (S.L.vis_atron_Nachtmodus) (S.L.vis_atron_Start)
{else}
"Atron AFR4.10\atron_display_Fahrerkarte_N.dds" (S.$.atron_background)
0 (S.L.vis_atron_Nachtmodus) (S.L.vis_atron_Start)
{endif}
{else}
(L.L.atron_display) 3 =
{if}
(L.L.Nachtmodus) 0 =
{if}
"Atron AFR4.10\atron_display_Anmeldung.dds" (S.$.atron_background)
{else}
"Atron AFR4.10\atron_display_Anmeldung_N.dds" (S.$.atron_background)
{endif}
{else}
(L.L.atron_display) 4 =
{if}
(L.L.Nachtmodus) 0 =
{if}
"Atron AFR4.10\atron_display_LSK.dds" (S.$.atron_background)
{else}
"Atron AFR4.10\atron_display_LSK_N.dds" (S.$.atron_background)
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
{endif}
'#############################################################################################################
'Startup-timer definition:
(L.L.elec_busbar_main)
{if}
(L.L.Atron_startup_time) (L.S.Timegap) + 10 min (S.L.Atron_startup_time)
{else}
0 (S.L.atron_display)
0 (S.L.Atron_startup_time)
{endif}
'#############################################################################################################
'Boot Reihenfolge:
(L.L.Atron_startup_time) 0 >
{if}
0 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 1 >
{if}
0.4 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 2 >
{if}
0.1 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 3 >
{if}
0.2 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 4 >
{if}
0.3 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 5 >
{if}
0.4 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 6 >
{if}
0.6 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 7 >
{if}
0 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 7.5 >
{if}
0.5 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 7.9 >
{if}
0.61 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 8.2 >
{if}
0.62 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 8.4 >
{if}
0.63 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 8.6 >
{if}
0.64 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 8.8 >
{if}
0.65 (S.L.atron_display)
{endif}
(L.L.Atron_startup_time) 9 >
{if}
1 (S.L.atron_display)
{endif}
'#############################################################################################################
'zurücksetzten des Nachtmoduses
(L.L.elec_busbar_main) 0 =
{if}
0 (S.L.Nachtmodus)
{endif}
'#############################################################################################################
'Textfeld Uhrzeit / Datum
(L.L.elec_busbar_main)
(L.L.Atron_startup_time) 7.9 >
{if}
'Stunden:
(L.S.Time) 3600 / s0 trunc s1 "02" $IntToStrEnh ":" $+
'Minuten:
l0 l1 - 60 * s1 trunc s2 "02" $IntToStrEnh $+ ":" $+
'Sekunden:
l1 l2 - 60 * trunc "02" $IntToStrEnh $+
{else}
""
{endif}
(S.$.Atron_Uhrzeit)
(L.L.elec_busbar_main)
(L.L.Atron_startup_time) 8 >
{if}
' Datum
(L.S.Day) "02" $IntToStrEnh "." $+ (L.S.Month) "02" $IntToStrEnh $+ "." $+ (L.S.Year) $IntToStr $+
{else}
""
{endif}
(S.$.Atron_Datum)
'#############################################################################################################
{end}
'#############################################################################################################
'Soundtrigger:
{macro:tastenton}
(T.L.ev_fahrscheindrucker_touchscreen)
{end}
{macro:tastenton_error}
(T.L.ev_fahrscheindrucker_touchscreen_error)
{end}