Sign in to follow this  
Redlander

Need mouse event syntax help

Recommended Posts

I'm trying to use the left and right mouse buttons to operate the pitot heat switch. The left button will turn it on but the right one won't work. What am I doing wrong here? (I based this on what I was able to glean about the use of mouse events in the fs9gps file but I'm not a programmer and don't fully understand the complicated syntax.)(A:Pitot heat,bool)(M:Event) 'LeftSingle' scmp 0 == (>K:PITOT_HEAT_ON) 0 == and if{ 1 (K:PITOT_HEAT_OFF) (M:Event) 'RightSingle' scmp 0 == (>K:PITOT_HEAT_OFF) 0 == and if{ 1 (K:PITOT_HEAT_ON)Cheers, Bob

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,Try this:(M:Event) 'LeftSingle' scmp 0 == if{ (>K:PITOT_HEAT_ON) }(M:Event) 'RightSingle' scmp 0 == if{ (>K:PITOT_HEAT_OFF) }Tom

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this