Results 1 to 4 of 4

Thread: Am I stupid?

  1. #1
    25+ Posting Member
    Join Date
    Feb 2009
    Location
    Sweden
    Posts
    29
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Am I stupid?

    I might be putting the 'stupid-sign' on my forehead by asking this question but when I've made a very easy "add-on" via SimConnect and I would like to use it with FS. How do I do? Let's say I've made a file which tells FS to apply left brakes on the push of Alt+Shift+<- (left arrow), where to put this file to make it work?

    Best Regards
    Didrik

  2. #2
    2000+ Poster - Never Leaves the Sim Michael Carter's Avatar
    Join Date
    Oct 2006
    Location
    Southern Illinois, USA
    Posts
    2,887
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Just buy FSUIPC and forget about having to do any writing. Commands like that are all in FSUIPC for assignment to switches, buttons, and knobs.

    And pedals, and throttles, and...
    Boeing Skunk Works
    Remember...140, 250, and REALLY FAST!

    We don't need no stinkin' ETOPS!



    Powered by FS9 & BOEING

  3. #3
    300+ Forum Addict



    Join Date
    Feb 2007
    Location
    California, USA
    Posts
    380
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Quote Originally Posted by Didrik View Post
    I might be putting the 'stupid-sign' on my forehead ...?

    Best Regards
    Didrik
    I think at one point or another we all have a stupid sign on our foreheads. However, this is not such a time for you. (Later, maybe, but not now.) SimConnect is a complex interface, and takes some time to learn.


    Using SimConnect requires writing a program that links to the SimConnect DLL. SimConnect acts as a "server" to the user program "client". Step one is to open a connection port with SimConnect. Step two is to tell SimConnect what variables and flight sim event you will be interested in. Step three is actually requesting or setting values of these variables, and examining or triggering the events. The final step is closing the connection when you shut down your application.

    This sounds worse than it is. If you're used to writing programs that simply call functions, SimConnect will seem overly complicated. SimConnect is based on message passing. Your program doesn't make a function call to immediately read a sim variable or trigger landing gear movement. Your program sends a message to SimConnect asking it to act on your behalf, and perhaps return a message on completion. Your program has to do some set up work to get the messaging system initialized, then things just zip along.

    The advantages of the messaging system are that your program can be doing other things while SimConnect triggers flight sim events (like lowering the gear), and collects flight sim variable values for you. It also means that multiple client programs can run concurrently talking with flight simulator.

    I think the best way to learn about SimConnect is to work through some of the coding examples in the SDK. For example look at the Throttle Control code on this page: http://msdn.microsoft.com/en-us/libr...WorkingSamples

  4. Thanks Didrik thanked for this post
  5. #4
    25+ Posting Member
    Join Date
    Feb 2009
    Location
    Sweden
    Posts
    29
    Contribute If you enjoy reading the
    content here, click the below
    image to support MyCockpit site.
    Click Here To Contribute To Our Site

    Thanks a lot

Similar Threads

  1. I have gone stupid
    By mondo50m in forum General Builder Questions All Aircraft Types
    Replies: 0
    Last Post: 01-12-2010, 10:18 AM
  2. Probably a stupid question for PM experts
    By barkay in forum PM Boeing GC
    Replies: 5
    Last Post: 11-26-2008, 10:59 AM
  3. Probably a stupid question on PM+OC modules
    By barkay in forum OpenCockpits General Discussion
    Replies: 4
    Last Post: 11-14-2008, 12:01 PM