March 27, 20188 yr Hi, I'm trying to configure a ButtonBox button for the VS and FLC buttons on this aircraft. It has about six functions triggered by the MouseClick on each of the VS, FLC buttons. I've tried but can't get them to work using LVARs. Therefore I am trying to get the ButtonBox button to trigger as the Mouse Event does and execute the script as if the mouse button was clicked. I've added in the Shaded Section in the script below, not having any real idea of what I'm doing... can anyone advise if there is a way to do this properly or am I wasting my time. Thanks The Joystick name is what SPADnext lists it as... Edited March 27, 20188 yr by aerostar
March 27, 20188 yr Moderator XML is reverse polish notation. That line should be: (M:Event) 'LeftSingle' scmp 0 == (spad event) == or if{ rest of stuff to be done } BTW if you use a {code}] prefix followed by a {/code} suffix (using square [ ] brackets!), then the code will be easier to read and copy/paste for replies. Fr. Bill AOPA Member: 07141481 AARP Member: 3209010556 Avsim Board of Directors | Avsim Forums Moderator
March 30, 20188 yr Author Hi Fr. Bill, thanks for replying... I have tried this and many many other ideas over the past few days but can't seem to get it to work.. could it be that the script is inside a M:Event and only mouse will trigger it? Thinking... if I delete the mouse part of it and somehow make the script inside a Keyboard or Button Event would that work (if it's possible to make those as events) P.S. Was my first post , before the edited one above, not shown because it had possible references in the LVARS to the aircraft maker ... or something else, just wondering Edited March 30, 20188 yr by aerostar
March 31, 20188 yr Commercial Member What you are trying to do is simply not possible. XML will never see actual hardware input from the joystick button as the sim doesn't expose those. The closest you could come is to write something that sees a custom event come in, assign said custom event to the button vial spad. I don't know if XML can see a custom event happen or not. Ed Wilson Mindstar AviationMy Playland - I69
April 1, 20188 yr An alternate way? - Use fsuipc to trap the button box buttons and send to one or more lua files - In the lua(s) rewrite the animation code in lua to do the work.. (fsuipc/lua supports the read/write of L:vars) FS RTWR SHRS F-111 JoinFS Little Navmap
Archived
This topic is now archived and is closed to further replies.