Jump to content
The simFlight Network Forums

New window capture feature from FSUIPC


Chrilith

Recommended Posts

Hello,

 

A new Passerelle version is coming with a window capture feature. Passerelle is a module to control Saitek devices that can be used with the FSUIPC Lua engine. You can now stream an instrument window to your Saitek Flight Panel Instrument with a very simple script:

require "passerelle"
 
passerelle.addPage("SFIP", 1, 1, true);
 
function capture()
    local bitmap = passerelle.captureWindow("FS98FLOAT", "PFD", 0, 0, 100, 100);
    passerelle.setImage('SFIP', 1, 1, 0, bitmap);
    collectgarbage();
end
 
while true do
    capture();
    ipc.sleep(50);
end
 
To test this script in FSUIPC:
 
- Select a Cessna with a G1000 GPS
- Start the flight
- Open the PFD window
- Undock it (window must be in non-minimized state)
- Run the script

 

And voilà! Your are streaming your PFD to your FIP!

 

Check the installation procedure here:
 

This preview version can be downloaded from here:

https://github.com/chrilith/Passerelle/releases

 

The documentation is here:

https://github.com/chrilith/Passerelle/wiki

 

Chris

  • Upvote 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.