How to prevent skipping videos with ESC

  • #1, by AkcayKaraazmakWednesday, 28. February 2018, 03:46 6 years ago
    Hi guys,

    Is it possible to prevent skipping videos by pressing ESC. I can make ESC useless with LEE's script, but because it also opens the menu so I just need ESC to open the menu when pressed but not skipping videos.

    Cheers smile


    Great Poster

    440 Posts


  • #2, by shicoWednesday, 28. February 2018, 10:55 6 years ago
    I think this topic was covered in this post here.

    Try the "hide cursor" action part under miscellaneous as AFRLme suggested in that post, and then "show cursor" after video. Could work for videos as it worked for the cutscenes.

    Newbie

    21 Posts

  • #3, by afrlmeWednesday, 28. February 2018, 11:51 6 years ago
    don't think that's possible mate with regular videos. you either disable escape entirely when videos are played or alternatively you could use the new in-scene video plugin thing that Simon created as those can't be skipped. Switch to an empty scene. wrap the video in a hide/show cursor thing with a pause the length of the video after the action part for playing the video.

    Do you really want people to be able to access the menu while a video is playing? If you don't then just disable esc when a video is showing & enable it once the video is done.

    Imperator

    7278 Posts

  • #4, by AkcayKaraazmakThursday, 01. March 2018, 11:38 6 years ago
    Thank you mates, ... Lee you wrote that just disable the ESC, how I will do that? I wrote a small code just to open the menu with ESC but dont know how to diable it completly? ... As you say yea no need to open menu while  video is playingsmile .. But how I will do it? smile

    Great Poster

    440 Posts

  • #5, by afrlmeThursday, 01. March 2018, 12:33 6 years ago
    Insert an if query into the script to check if a condition or Lua variable is true or false.

    It's shown/explained here in the tutorial I wrote ages back. Back then videos still got skipped with ESC, but I don't know if that's the case anymore as I haven't tried testing it since.

    Imperator

    7278 Posts