Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Python and SendMessage function

Featured Replies

Tony--I have a little idea I want to play around with. Could you please email me a copy of the Yakster source. I downloaded it once from Jeff Davis' website, but can't find it on my old computer...and the links are broken at his page to the Yakster [email protected]

TonyNo, these are adventure scripts so they're designed to be attached to scenario's. However, if global scripts still aren't compiling you could always compile it as a scenario and then subsequently move the .pyc file to the global directory.Andrew Luck18 miles SW EGSH

I have to admit to being stumped here. I cannot get a Python script to operate the fuel shutoff valve in the Cessna.Here's the device in flyhawk.gas - Fuel Shutoff Valve (used by Scripts) - fSub kill -- connects to Fuel Shutoff Valve -- shut 1 The script is trying to turn this on and off so I'm using the following fragments:# necessary global messagesfuelMessage = Message(MSG_SETDATA, ID('kill'), ID('st8t'))####################################### Turn on/off the fuel shutoff valve######################################def KillFuel(): global fuelMessage fuelMessage["intData"] = 0 fuelMessage["id"] = MSG_SETDATA SendMessage(fuelMessage)def RestoreFuel(): global fuelMessage fuelMessage["intData"] = 1 fuelMessage["id"] = MSG_SETDATA SendMessage(fuelMessage)######################################This code is identical to other functions that control other systems and appear to work OK so I just can't see where the fault lies here. This is about the last problem I have with the supplied Taking Chances scripts so once I get this cracked then I can release the new scripts. Trouble is, I've been looking at this on and off for a couple of weeks now and can't see the solution. Can anyone help?Andrew Luck18 miles SW EGSH

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.