Jump to content
The simFlight Network Forums

cyberflygo

Members
  • Posts

    12
  • Joined

  • Last visited

Posts posted by cyberflygo

  1. Dear Pete:

    I'm doing a small software trying to use a camera to control view direction of FS2004. So I need to send view command to fs through FSUIPC。But I'm confusd when I find the description in the Offset table as below :(

    3200

    12

    These locations operate the FSUIPC facility to send keystrokes to FS. For this to operate correctly the PC must be using Windows 98, ME or 2000. The facilities used just do not exist in Windows 95 nor NT.

    3200 message (WM_KEYDOWN or WM_KEYUP)

    3204 wParam for the message

    3208 lParam for the message

    All 12 bytes must be written in one IPC write. (This feature is used in WideClient version 3.998 and later, when the [user] parameter "SendKeyPresses=Yes" is included in its .ini file, to relay all non-system (i.e. no Alt key) key presses it receives to the WideServer host).

    How to use offset 3200? Need I registe Widefs first? What are the messages? wParam ,lParam?

    Thanks !

    :D

    a fs fan.

  2. I want to modify the nav1 stby freq.so I writed the value to 0X311E,but after execute the program,I found the nav1 stby freq didn't changed at all.

    void __fastcall TForm1::Timer1Timer(TObject *Sender)

    {

    DWORD dwResult;

    char String[32], chTime[3];

    BOOL fTimeOk = TRUE;

    unsigned long pdwResult;

    if (!dwClosed) {

    if (!FSUIPC_Read(0x238, 3, chTime, &dwResult) ||

    !FSUIPC_Process(&dwResult))

    fTimeOk = FALSE;

    char t[32]="1234";

    FSUIPC_Write(0x311e, 2, &t, &pdwResult); //modify nav1 freq

    // Now display all the knowledge we've accrued:

    if (fTimeOk) {

    Label2->Caption = "OK";

    sprintf(String, "%02d:%02d:%02d", chTime[0], chTime[1], chTime[2]);

    Label8->Caption = String;

    }

    else {

    Label2->Caption = "Failed";

    }

    }

    }

  3. help with the fsuipc sample

    I want to write some application to interface to fs2004,when I run the FSUIPC SDK 28th Release sample(\UIPC_SDK_BCB5) .the pragram running

    result show "Incorrect version of FSUIPC, or not FSUIPC", "Failed to open link to FSUIPC". I CHECK the Code ,found this program need to find

    the "UIPCMAIN ",

    // Connect via FSUIPC, which is known to be FSUIPC's own

    // and isn't subject to user modificiation

    m_hWnd = FindWindowEx(NULL, NULL, "UIPCMAIN", NULL);

    if (!m_hWnd)

    { // If there's no UIPCMAIN, we may be using WideClient

    // which only simulates FS98

    m_hWnd = FindWindowEx(NULL, NULL, "FS98MAIN", NULL);

    fWideFS = TRUE;

    if (!m_hWnd)

    { *pdwResult = FSUIPC_ERR_NOFS;

    return FALSE;

    }

    }

    My question is,what is the UIPCMAIN,what should I do to connect to fsuipc.

    I had install fsuipc3.8 into fs2004 and registered sucessful. log file as follow:

    ********* FSUIPC, Version 3.80 by Pete Dowson *********

    Running on Windows Version 5.1 Build 2600 Service Pack 2

    Verifying Certificate for "G:\Flight Simulator 9\MODULES\FSUIPC.dll" now ...

    SUCCESS! Signature verifies okay!

    Running inside FS2004(original release)

    User Name=

    User Addr=

    FSUIPC Key is provided

    WIDEFS not user registered, or expired

    Module base=61000000

    ClassOptions: UIPCMAIN=FF7F, FS98MAIN=FF7F, FS2KMAIN=FF5E

    WeatherOptions(Orig)=40003605[40003605]

    InitDelay: 0 seconds

    WeatherReadInterval=4

    LogOptions=00000001

    DebugStatus=15

    8094 System time = 14:53:13

    8391 G:\Flight Simulator 9\

    8406 G:\Flight Simulator 9\fs9.exe

    13906 System time = 14:53:19, FS2004 time = 12:00:00 (00:00Z)

    17500 FLIGHTS\OTHER\FLTSIM.flt

    17578 AIRCRAFT\c172\Cessna172SP.air

    17828 Aircraft="Cessna Skyhawk 172SP"

    33047 Advanced Weather Interface Enabled

    Regards

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.