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.

TokenVars for Pause / Slew?

Featured Replies

Are there TokenVars to check pause / slew state (in C of course, no XML)? Just can't find 'em... :-rollThanks,Etienne :-wave

There aren't any. Personally I log ELAPSED_SECONDS and check if they have changed from last iteration. If no we have pause (not too shure about slew).Arne Bartels

Ahh yeah I see. Well the prob with slew will be that time keeps running. And TICK18 is totally useless since it overrides everything, pause, slew, and time compression.Thanks.Etienne :-wave

Hi Etienne,there are two possibilities:1.) Use the FSUIPC interface to retreive this value2.) Read the memory of the flightsimulator (you need the offset of that variable which is set in sim1.dll and stored in global.dll - just debug a bit, you will find it)Regards,Marcel

>1.) Use the FSUIPC interface to retreive this value If you tell me how to...>2.) Read the memory of the flightsimulator (you need the >offset of that variable which is set in sim1.dll and stored >in global.dll - just debug a bit, you will find it) If you tell me how to...Hehe you're funny :-) but I ain't a pro!!Thanks anyway, maybe one day I am able to do this (lol)!Etienne :-wave

I dug this out from flightsim.com forum:...#include "FSUIPC_User.h"...DWORD dwResult=0;...#define CENTRE_LEVEL 0x0B74...BOOL FSAPI FuelDump(PPIXPOINT arg1, FLAGS32 mouse_flags ){ DWORD fuellevel=66536*128;//100% fuellevel = (int)((double)fuellevel*0.5);//50% FSUIPC_Open(SIM_FS2K2 , &dwResult); FSUIPC_Write(CENTRE_LEVEL, 4, &fuellevel, &dwResult);... FSUIPC_Process(&dwResult); FSUIPC_Close(); return FALSE;}This was a "fueldump" gauge. You have to link these libraries:user32.lib FSUIPC_User.lib kernel32.lib msvcrt.lib It won't compile in BCC, because the lib format isn't compatible, but VC andGCC work.So with FSUIPC_Read and proper offsets it might work. There are some other possibilities desribed in the FSUIPC SDK.Arne Bartels

Hmmm if it does not compile with BCC that's bad... :-hmmmThanks for the research anyway. Does FSUIPC generally not work with BCC?Etienne :-wave

My problem was, that the FSUIPC_User.lib isn't BCC compatible (BCC uses a different file format then VC or GCC). There are tools to convert this, but the result was also not working.I saw a possibility by recompiling one of the samples of the FSUIPC SDK to generate a new BCC compatible FSUIPC_User.lib, but I didn't check that in detail, because I didn't need it, having other compiler possibilities.So I wouldn't say there are general problems with BCC and FSUIPC, it just doesn't work "out of the box".Arne Bartels

Ahh ok, thanks. Maybe when I get some time I gotta start fiddling around a bit with this stuff.Etienne :-wave

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.