Jump to content
The simFlight Network Forums
Chrilith

New window capture feature from FSUIPC

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • 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.