• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

FS2004 This code works but....

Messages
1,468
Country
italy
It's not what I really want.
It has a left click and right click function. What I want though is for the right click to be rightrelease instead. I've tried a number of variations but none seem to work. Can it be done?
Thanks
vololiberista
Code:
<Click Kind="LeftSingle+RightSingle">
       (M:Event) 'LeftSingle' scmp 0 == if{ (L:redpull,bool) 0 !=
if{ 0 (&gt;L:redpull,bool) 1 (>L:Sound_button,enum) 0 (>L:Oxy_On,bool) 1 (>L:OXYGEN 100,number) 0 (>L:ox_press,number) 0 (>L:OxyFlow,number) 0 (>L:mageye,bool) }
els{ 1 (&gt;L:redpull,bool) 1 (>L:Sound_button,enum) 1 (>L:Oxy_On,bool) 0 (>L:OXYGEN 100,number) 4 (>L:ox_press,number) 4 (>L:OxyFlow,number) 1 (>L:mageye,bool) } } 
       (M:Event) 'RightSingle' scmp 0 ==if{ (L:redpush,bool) 0 !=
if{ 0 (&gt;L:redpush,bool) 0 (>L:Oxy_On,bool) 1 (>L:OXYGEN 100,number) 0 (>L:ox_press,number) 0 (>L:OxyFlow,number) 0 (>L:mageye,bool) }
els{ 1 (&gt;L:redpush,bool) 1 (>L:Oxy_On,bool) 0 (>L:OXYGEN 100,number) 2 (>L:ox_press,number) 2 (>L:OxyFlow,number) 1 (>L:mageye,bool) } }
    </Click>
 
Change both instances of RightSingle to RightRelease...
 
Unfortunately Bill that doesn't work :-(
The left click opens the valve and closes the valve.
The right mouse button instead is to simulate pressing the valve switch, holding and releasing. I've tried all sorts of code combinations. I can't seem to get left click on/off and right press hold and release to work together.
vololiberista
 
This seems to work!
It seems that the entire code has to go in exactly each time save for the pressure and sound values.
What's happening is left click=valve pulled open, left click valve pushed closed. right click= valve pushed and held in, right released=valve release to normal position. The right click/release simulates a test function pressurising the oxygen ring main.
vololiberista
Code:
<Click Kind="LeftSingle+RightSingle+RightRelease">
       (M:Event) 'LeftSingle' scmp 0 == if{ (L:redpull,bool) 0 != if{ 0 (&gt;L:redpull,bool) 1 (>L:Sound_button,enum) 0 (>L:Oxy_On,bool) 1 (>L:OXYGEN 100,number) 0 (>L:ox_press,number) 0 (>L:OxyFlow,number) 0 (>L:mageye,bool) } els{ 1 (&gt;L:redpull,bool) 1 (>L:Sound_button,enum) 1 (>L:Oxy_On,bool) 0 (>L:OXYGEN 100,number) 4 (>L:ox_press,number) 4 (>L:OxyFlow,number) 1 (>L:mageye,bool) } }
(M:Event) 'RightSingle' scmp 0 == if{ (L:redpush,bool) 0 != if{ 0 (&gt;L:redpush,bool) 0 (>L:Oxy_On,bool) 1 (>L:OXYGEN 100,number) 0 (>L:ox_press,number) 0 (>L:OxyFlow,number) 0 (>L:mageye,bool) } els{ 1 (&gt;L:redpush,bool) 1 (>L:Oxy_On,bool) 0 (>L:OXYGEN 100,number) 2 (>L:ox_press,number) 2 (>L:OxyFlow,number) 1 (>L:mageye,bool) } }
(M:Event) 'RightRelease' scmp 0 == if{ (L:redpush,bool) 0 != if{ 0 (&gt;L:redpush,bool) 0 (>L:Oxy_On,bool) 1 (>L:OXYGEN 100,number) 0 (>L:ox_press,number) 0 (>L:OxyFlow,number) 0 (>L:mageye,bool) } els{ 1 (&gt;L:redpush,bool) 1 (>L:Oxy_On,bool) 0 (>L:OXYGEN 100,number) 2 (>L:ox_press,number) 2 (>L:OxyFlow,number) 1 (>L:mageye,bool) } }
    </Click>
 
Back
Top