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.

Any idea why this doesn't work?

Featured Replies

I tested this code outside of the sim, and it worked... but interestingly... when I trigger it in the sim, the 1st character (code[0]) never shows up.So, if I enter "2345" in the scratchpad, then hit the key to trigger this method, I get "345" in the Xpdr.void Xpdr::SetXpdr1Code(){ UINT32 bcd = 0; // encoded xpdr code (ie 1200 coded to 4608) const wchar_t *code = ScratchPad::GetText().c_str(); bcd = (code[0] - 0x30) << 12; bcd += (code[1] - 0x30) << 8; bcd += (code[2] - 0x30) << 4; bcd += (code[3] - 0x30); trigger_key_event(KEY_XPNDR_SET, bcd);}If I set a break point, I do see the full text "2345" is in the scratchpad, but strangely I can't see any of the local variables in the debugger.More strangely, the code works fine in a console app with the *code = "2345".Anyone see why this happens??

Never mind, got it all figured out finally!

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.