Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    500+ This must be a daytime job



    Join Date
    Jul 2013
    Posts
    917
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Trying to get USBkeys to work with SIOC

    Quote Originally Posted by tiburon View Post
    Why does your script start with Var0000, value 0 ?
    Martin

    You can delete that line - the snippet of code I gave you was a fraction of my FMC code and I had left that in
    That line actually is used to give some variables an initial value at start up. If you have a var 0000, then SIOC will run the code attached to that Var once at startup. So you can use it to initialise other variables eg
    Var 0000 Value 0
    {
    &Altitude = 10000
    &Heading = 180
    }
    Etc
    Etc

    David

  2. #12
    500+ This must be a daytime job kiek's Avatar
    Join Date
    Jan 2007
    Location
    Netherlands
    Posts
    698
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Trying to get USBkeys to work with SIOC

    Quote Originally Posted by tiburon View Post
    So if I understand correctly : For the second option you don't have to assign keystrokes at all ? You just see which codes are generated ?
    Yes, indeed.

    Quote Originally Posted by tiburon View Post
    : is there a reason for the "5" in this statement ?
    Yes, because in sioc.ini i had defined DEVICE 5 to be your USBKeys card (44)
    Code:
    [USBKEYS]
    USBKeys=5,44
    Quote Originally Posted by tiburon View Post
    What does "static" do in the first line of the script ?
    It means that the var number 6000 will never change when you compile this script together with another script, is not very important here actually.

    Gefeliciteerd met het 30ste kampioenschap van Ajax (!), zit je niet in de kroeg ?

    Groeten,
    Nico
    Last edited by kiek; 05-15-2011 at 02:34 PM.

  3. #13
    300+ Forum Addict


    tiburon's Avatar
    Join Date
    May 2007
    Location
    Amsterdam
    Posts
    350
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Re: Trying to get USBkeys to work with SIOC

    Nah, ben niet zo'n voetbal fan

Page 2 of 2 FirstFirst 12