Jump to content
The simFlight Network Forums

apercrcl01

new Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by apercrcl01

  1. Except now it is running over and over again.  I'm know this is probably a dumb question and I'm sorry for asking, but how do I get that function to stop running.  I've got it looking at a global variable, but it runs over and over anyways.

    function vlc()

    checkiftrue=1

    math.randomseed(os.time())

    math.random(); math.random(); math.random()

    randomNumber = math.random(1,3)

     

    print(randomNumber)

     

    if randomNumber==1 then

    os.execute [[""C:\\Program Files\\VideoLan\\VLC\\vlc.exe" "https://www.youtube.com/watch?v=_g2qU2pSzTY" "https://www.youtube.com/watch?v=OAUUrM87jg8" "--fullscreen" "--no-qt-fs-controller" "--qt-start-minimized" "--qt-fullscreen-screennumber=2" "--no-video-title-show" "vlc://quit""]]

    elseif randomNumber==2 then

    os.execute [[""C:\\Program Files\\VideoLan\\VLC\\vlc.exe" "https://www.youtube.com/watch?v=_g2qU2pSzTY" "https://www.youtube.com/watch?v=xFnTXoKeWIE" "--fullscreen" "--no-qt-fs-controller" "--qt-start-minimized" "--qt-fullscreen-screennumber=2" "--no-video-title-show" "vlc://quit""]]

    elseif randomNumber==3 then

    os.execute [[""C:\\Program Files\\VideoLan\\VLC\\vlc.exe" "https://www.youtube.com/watch?v=_g2qU2pSzTY" "https://www.youtube.com/watch?v=sTm1I5lBDrA" "--fullscreen" "--no-qt-fs-controller" "--qt-start-minimized" "--qt-fullscreen-screennumber=2" "--no-video-title-show" "vlc://quit""]]

    end

    return

    end

     

     

    function checkPushback()

    if checkiftrue==0 then

     

    event.control(66483,"vlc")

    return

     

    end

    end

     

    checkiftrue=0

    checkPushback()

     

  2. Success!   Thank you for your help!

     

    function vlc()
    checkiftrue=1
    os.execute [[""C:\\Program Files\\VideoLan\\VLC\\vlc.exe" "https://www.youtube.com/watch?v=_g2qU2pSzTY" "--fullscreen" "--no-qt-fs-controller" "--qt-start-minimized" "--qt-fullscreen-screennumber=2" "vlc://quit""]]

    end

     

    function checkPushback()
    if checkiftrue==0 then

    event.control(66483,"vlc")


    end
    end

    checkiftrue=0
    checkPushback()

  3. I use Self-Loading Cargo and I am trying to figure out if I can get FSUIPC to open a video (Aer Lingus Safety Announcement) using VLC media player when I start to push back from the gate.  Any help would be appreciated.  I have seen how to run a program when FSUIPC starts up, but not how to start a program when a condition is true.  Also, I'm not sure what Self Loading Cargo uses to determine the beginning of the taxi phase.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.