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.

Code works in FS2004 but not FS2002

Featured Replies

Hi All,I'm currently converting a FS2004 panel to FS2002. Except one problem everything is ready. Unfortunately I found no way to solve my existing problem at the moment.I made a spring load switch to increase and decrease the duct temp. When pressing the switch, it moves up and increases the duct temp as long as you press the switch. When releasing the switch, it moves back to the center position. This works perfectly in FS2004, but I do not know why it won't work in FS2002. Here is the code for the mousecklick:Flightdeck Duct Temperature Select %((L:Ducttemp_FD,percent))%!3.1f!

Hi Matthias,I don't have FS2002 anymore, but I remember having some probems with Mouse click event in FS2002. So that might well be it.But again, I'm not sure since I can't test it anymore.You could try using this code:(M:Event) 'LeftSingle' scmp ! if{ ..... }(M:Event) 'LeftRelease' scmp ! if{ ..... }Cheers, Rob Barendregt

IIRC the (M:Event) was not utilized in FS02. What you may have to do is use the mouse click, set to repeat, and toggle a variable where once this vriable is set to one the code is run then the variable is set back to zero.Regards,Roman

20AUG21_Avsim_Sig.png?dl=1  FS RTWR   SHRS F-111   JoinFS   Little Navmap 
 

 

Hi Rob and Roman,I've checked Rob's code yesterday evening and it works very good. Thank you very much! The only thing which is not perfect is the flickering tooltip text (caused from the repeat command). Nevertheless this is a problem I could live with. The result is as I want it. When pressing the switch and holding it down, the click sounds one time and the duct temp increase (or decrease in the lower switch area) as long as you press the switch. Releasing it, sets the switch back to the center position.BTW: Another thing I've recognized when converting the panel to FS2002 (just an info) is, that the units radians and degrees did not work perfect for custom variables in FS2002. I've programmed a custom heading bug using degrees and radians. In FS2004 I could use it like the standard heading bug and everything works fine no matter what heading is adjusted. When I decrease the custom heading to a value below 0 (or 360), FS2004 hands over 340

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.