Trying to create a screen saver

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by Trevor, Dec 8, 2018.

  1. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    72
    Likes Received:
    2
    Location:
    Melbourne Victoria
    Hi All,
    I am trying to set up a screen saver. Will this work. I have 5 pages of images "Image Page 1..., each page has an image placed on it linked to the next page and Image Page 5 is linked back to the Welcome page, which is the project timeout page at 10 seconds. I have placed a blank button over these that link to the main menu if any of the image pages is pressed. if i set the image page time outs to 9 seconds, will they cycle through each image page until the unit receives a screen press?

    Any help or ideas on this or an alternative method would be appriciated.

    regards
    Trevor
     
    Trevor, Dec 8, 2018
    #1
    1. Advertisements

  2. Trevor

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    972
    Likes Received:
    73
    Location:
    Adelaide, Australia
    The page timeout specifies how long a page is displayed before defaulting back to the main page if no user input is detected. So, no, it won't work. It will display the first page then go straight back to the main page. You will need to write a logic loop to cycle through the pages. Make the first screen saver page the main page, then have logic regularly check if that page has just been shown, and then start your screen saver module to swap pages until another page is selected.
     
    Ashley, Dec 8, 2018
    #2
    1. Advertisements

  3. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    72
    Likes Received:
    2
    Location:
    Melbourne Victoria
    All good and solved, thanks for all assistance with this.

    Code:
    once ShowingPage("Welcome Screen") then
    begin
      TimerStart(ssTimeOutTimer);
      TimerStop(ssPageTimer);
    end;
    once not ShowingPage("Welcome Screen") then
      TimerStop(ssTimeOutTimer);
    if TimerTime(ssTimeOutTimer) = "00:00:15" then
    begin
      ShowPage("Photo Page 1");
      TimerStart(ssPageTimer);
    end;
    if TimerTime(ssPageTimer) = "00:00:15" then
    begin
      TimerStart(ssPageTimer);
      if ShowingPage("Photo Page 1") then
        ShowPage("Photo Page 2")
      else if ShowingPage("Photo Page 2") then
        ShowPage("Photo Page 3")
      else if ShowingPage("Photo Page 3") then
        ShowPage("Photo Page 4")
      else if ShowingPage("Photo Page 4") then
        ShowPage("Photo Page 5")
      else if ShowingPage("Photo Page 5") then
        ShowPage("Photo Page 6")
      else if ShowingPage("Photo Page 6") then
        ShowPage("Welcome Screen");
    end;
     
    Trevor, Dec 9, 2018
    #3
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.