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:
    336
    Likes Received:
    26
    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
  2. Trevor

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,534
    Likes Received:
    175
    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
  3. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    336
    Likes Received:
    26
    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
  4. Trevor

    AntDwyer3875

    Joined:
    Jul 14, 2019
    Messages:
    19
    Likes Received:
    0
     
    AntDwyer3875, Aug 7, 2021
    #4
  5. Trevor

    AntDwyer3875

    Joined:
    Jul 14, 2019
    Messages:
    19
    Likes Received:
    0
    Hi Trevor.
    I would like to implement something similar also including a clock function.
    Where do you place this code to implement the solution?
    Regards
    Anthony
     
    AntDwyer3875, Aug 7, 2021
    #5
  6. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    336
    Likes Received:
    26
    Location:
    Melbourne Victoria
    have a look in the logic section i put sample code from one of my customers there, it has an analog clock.
     
    Trevor, Aug 9, 2021
    #6
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.