Search results

  1. S

    Update section overload

    Many thanks for your reply, I sometimes think i'm talking to myself, although it helps my thought process even if I get no replies. :) I am progressing well now with want I am hoping to achieve. regards Keith
  2. S

    Update section overload

    I think that I have worked this out but I still need some help. It appears my original mouse click routine was dependant on a Visibility statement. my code for operating the mouse routine looks like this (L:GCU477_ENT,bool) 1 == if{ 1 (>L:blabla,bool) } How do I make it dependant on this code...
  3. S

    Update section overload

    Some extra info which I have uncovered. I have been programming an external switch box which is a Garmin GCU477. It has 64 different switches as it has an aplha and numeric keypad along with various function buttons. I have managed to program all but two (The Enter button and the FMS knob) I...
  4. S

    Update section overload

    Hi guys, Sorry if this is a gauge xml newbie question but here goes.... I have set out to control mouse clicks with custom Lvars so that i can assign external switches. I now see that there is a problem if i add too much into an update section (I ran out of VAS !). Is there a better way of...
  5. S

    Heading select knob

    Hi all, In LINDA/Fsuipc i see the following fsx assignable events.... HDG plus HDG plusfast HDG minus HDG minusfast I have a single encoder with a push switch and would like to use HDG plusfast and minusfast when the push switch is activated. Is there any way to achieve this? I cant find the...
  6. S

    Triggering xml event with a hardware button instead of mouse

    Ok thanks, i'll give it a go although having spent 3 days on the code i have i shan't spend too long on it if it does work! Appreciate it, thanks Keith Sent from my SM-G935F using Tapatalk
  7. S

    Triggering xml event with a hardware button instead of mouse

    Out of interest, is that 7 referring to region 7 of the gps or something like that? Keith Sent from my SM-G935F using Tapatalk
  8. S

    Triggering xml event with a hardware button instead of mouse

    My macro looks like this... C:fs9gps:7 Does that 7 make a difference? Sent from my SM-G935F using Tapatalk
  9. S

    Triggering xml event with a hardware button instead of mouse

    It's possible that when i tried it that i messed up the syntax but i think i copied and pasted. My code referenced a macro That was written earlier in that same gauges code, could that be the difference? Keith Sent from my SM-G935F using Tapatalk
  10. S

    Triggering xml event with a hardware button instead of mouse

    No........................but this did !!!!!!!!!!!! Weyhey. whoop whoop. !!!! <Update> <Script> (L:Stinger2k2_A,bool) 1 == if{ 65 chr (&gt;@c:IcaoSearchEnterChar) 0 (>L:Stinger2k2_A,bool) } </Script> </Update> I can't thank you enough for sticking with me. All have to do now is get the...
  11. S

    Triggering xml event with a hardware button instead of mouse

    I forgot about the copyright issues, can't do that then as it's a Carenado gauge. Sorry, yes, I am using FSX. Further clue......I just tried the above code without the script loop, instead of the script loop I tried it inside ,{ }, and it won't work at all?should I replace the script lop with (...
  12. S

    Triggering xml event with a hardware button instead of mouse

    This code is the closest I have gotten. It operates by inputting the letter A as it should but I cannot understand why it is doing it without me switching my Lvar to 1. Even after this code resets it to 0, when it loops it reads it as 1 and operates again? All without me touching my assigned...
  13. S

    Triggering xml event with a hardware button instead of mouse

    I'd put the entire gauge code on here if it would help but it's massive. I tried leaving my extra code in there without the update loop but the gauge would not show at all. Keith Sent from my SM-G935F using Tapatalk
  14. S

    Triggering xml event with a hardware button instead of mouse

    I tried it to no avail. Should the "if" have a "1 ==" before it? Also I created a new Update loop as there are multiple update loops already in the gauge, i gave it an id. Keith
  15. S

    Triggering xml event with a hardware button instead of mouse

    Bob, So, here is the code which I put into the carenado gauge (which is hopefully the same as yours in #25) <Update> (L:Stinger2k2_A,bool) 1 == if {'A'(>C:fs9gps:IcaoSearchEnterChar) 0 (>L:Stinger2k2_A,bool)} </Update> And here is my Lua code for my button function...
  16. S

    Triggering xml event with a hardware button instead of mouse

    Me again!, Is this the correct XML code to set my local variable to "0" ? I can't seem to stop it entering the letter A now every time the gauge code updates. It is not even waiting for me to press my button to operate the Lvar assignment. 0 ("Stinger2k2_A",bool)
  17. S

    Triggering xml event with a hardware button instead of mouse

    And here is mine...basically the unit is seen by FSUIPC as a joystick and each letter button etc as a joystick button. So what I am trying to achieve is this... By pressing the letter A button on my unit, it triggers the same event as the mouse click code at the start of this thread (a long way...
  18. S

    Triggering xml event with a hardware button instead of mouse

    Will do. Unfortunately i am often replying using Tapatalk which doesn't show those features as far as I can see. Cheers Keith Sent from my SM-G935F using Tapatalk
  19. S

    Triggering xml event with a hardware button instead of mouse

    A joystick like mine has 52 buttons! As i said its a home made Garmin Gcu477(google images will show you what it is). Ive given up for the day now. I'll try again tomorrow. Cheers Keith Sent from my SM-G935F using Tapatalk
  20. S

    Triggering xml event with a hardware button instead of mouse

    I put this line into the Carenado gauge and it operates even without me operating my Lvar "Stinger2k2_A" via an assigned switch. Where do I go from here? <Update> (L:Stinger2k2_A,bool) 1 == if <Script>65 chr (&gt;@c:IcaoSearchEnterChar)</Script> Keith
Top