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.

Token for paused sim

Featured Replies

Hi!Is there any token variable to get informations about if the flight simulator is paused or not?I couldn't find any token var in my list(FS2002).Kind regards,Harry

  • Moderator

If there is, it's thus far elluded discovery by anyone... :(

Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

There is a great way to detect pauses, but not sure that it works in Fs2002. I put up a tutorial on how to do it over at flightsim.com on Bill's forum.There are other ways to do it as well by looking at the ELAPSED_SECONDS, but they are a bit trickier because you have to store and check the state.Patrick

OK, so is there any other way to find out if the sim is paused?I'm programming an autopilot and it shouldn't change the ruder positions while the sim is paused, otherwise the plane is totally wrong trimmed when the simulation is continuied again.The standard Microsoft autopilots don't do anything while the sim is paused. Where do they get the information from?HarryEDIT: Patricks posting is new so I couldn't see it while writing my message. I would be interrested in your workaround. I also had the idea with the ellapsed time, but I first wanted to ask here at avsim for a solution.

Harry,What version are you programming?Have you checked out the tutorials over at flightsim.com? Did that work for you?If not, do a search of this forum for ELAPSED_SECONDS and you will find a few articles to get you going.

Hi,Which kind of code are you using, XML or C++?In XML, it is very easy to detect a paused state. Tom

@Patrick: I can't find your tutorial on flightsim.com!? Maybe I'm blind. Could you please tell me the link!?I'm programming for FS2002.@Tom: I'm programming in C.Harry

Harry,>@Patrick: I can't find your tutorial on flightsim.com!? Maybe>I'm blind. Could you please tell me the link!?>I'm programming for FS2002.The tutorial is [link=http://forums.flightsim.com/dc/dcboard.php?az=show_topics&forum=31|here], but if you are programming for FS2002, it will do you little good as I suspect that this was not yet implemented then.You really need to get the updated SDK. FS2002 was years ago and we are two versions down the road. Anything you develop will likely not be fully compatible and have issues with FSX.Good luck.

Hi!Thanks, I've found it now.As you said before, it isn't possible in FS2002.The reason why I'm using the FS2002 SDK is that I'm using FS2002. Yes, there are people (like me) who are still using that old sim ;-) Regards,Harry

Working with the elapsed time works fine://-----------------------------------------------------lookup_var(&mv_elapsed_seconds);elapsed_seconds=mv_elapsed_seconds.var_value.n;if(elapsed_seconds>elapsed_seconds_alt) pause=0;else pause=1;elapsed_seconds_alt=elapsed_seconds;//-----------------------------------------------------Harry

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.