Jump to content
The simFlight Network Forums

BertusS

Members
  • Posts

    5
  • Joined

  • Last visited

About BertusS

  • Birthday 01/01/1970

Contact Methods

  • Website URL
    http://

BertusS's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Hallo Pete Hope you had your holiday in January. You helped me last to use the information generated by your FSUIPC log facility: 590140 *** EVENT: Cntrl= 66587 (0x0001041b), Param= 74070 (0x00012156) ROTOR_BRAKE to activate a rotorswitch on the panel of the PMDG 747-400 in the following way: {fswnd = FindWindow("FS98MAIN", NULL); PostMessage(fswnd, WM_COMMAND, 66587, 74070);} and it works perfectly, thank you. However, when I turn the rotorswitch on the panel and use Microsoft Spy++ to spy on Window FS98MAIN, the following are revealed: <00375> 002403EC P WM_COMMAND wNotifyCode:0201 wID:1051 hwndCtl:00012156 [wParam] Notice that the wParam:0201041B (revealed by Spy++) is not exactly the same as the wParam (0x0001041b) revealed by your FSUIPC log facility. Furthermore, when I push a button on the panel, the FSUIPC log reveals: 218219 *** EVENT: Cntrl= 71023 (0x0001156f), Param= 0 (0x00000000) but when I spy on Window FS98MAIN, the wParam (or lParam) values are not revealed, only the mouse event: <00431> 002403EC S WM_PARENTNOTIFY fwEvent:WM_LBUTTONDOWN xPos:603 yPos:591 [wParam] <00432> 002403EC R WM_PARENTNOTIFY lResult:00000000 <00433> 002403EC S .WM_MOUSEACTIVATE hwndTopLevel:002403EC nHittest:HTCLIENT uMsg:WM_LBUTTONDOWN [wParam] <00434> 002403EC R .WM_MOUSEACTIVATE fuActivate:MA_ACTIVATE [lResult] <00435> 002403EC P message:0xB209 [user-defined:WM_USER+44553] wParam:00000020 lParam:00000000 How did FSUIPC get hold of the values? I wish to test for the wParam (or lParam) values to play a voicefile when I push a button. All the best, Bertus
  2. Hallo Pete Thanks for the advise with special regard to your "pointers". I have a lot of studying to do. Yours Bertus
  3. Hallo again Pete I spend the past week researching your advise. I have hardly any experience in programming C (28 years ago first year university) and started learning XML 2 months ago. From what I gather, searching through the forums, is that I need a C compiled gauge (*.gau) on my own XML gauge to communicate through your FSUIPC the FScontrols to the PMDG 747 gauges. This specially designed gauge (e.g. XML_TO_FSUIPC.gau to give a name) will enable me to link via so called L:variables in my XML coding or send an event via ”arg (>;K:EVENT)” which is equivalent to ”trigger_key_event(KEY_EVENT,arg);”. For example to turn on the APU in the PMDG 747 I need to send: 71025 (>;K:ROTOR_BRAKE) The 71025 argument I obtained from your FSUIPC log file and luckily for me ROTOR_BRAKE is a predefined event. For switches using this event I therefore have no problem. But to switch on the NAV lights, I need to send FScontrol 71281 perhaps like this: (>;K:71281) which the specially designed gauge will be able to intercept/convert and "SendMessage to the main FS window (FS98MAIN class)" (your words). Your FSUIPC log file list all the FScontrol numbers needed to to switch on the BOOST PUMPS, PACK CONTROLS, etc. and I would like to use them to design my own First Officer. I hope I understand what needed to be done and are on the right track. Designing this special gauge are of course at present beyond my ability. I posted a request for help at the AVSIM forum (Panels and Gauges) a week or more ago but to no avail. I was hoping someone like DOUG DAWSON might take an interest. Perhaps I was not insistent enough? I have never posted in a forum before and now have a feeling that I might have touched on a taboo subject. If you have time to spare, would you kindly help me with this gauge? I do have Microsoft Visual Studio.net. If not then perhaps only some comments on my efforts thus far which I can then use to approach the forums again. Yours Bertus BandH@skeletoncoastsafaris.com
  4. Hallo Pete Through your FSUIPC module I noticed using your logging facility 659937 *** EVENT: Cntrl= 71281 (0x00011671), Param= 0 (0x00000000) for the PMDG 747-400. This unknown control will select the NAV lights. If I put this control number in the FSUIPC.INI file and ask FSUIPC to flip the switch using for example keyboard action CNTRL+Z, there is no problem. FSUIPC seems to be quite happy to handle the control number, but is their any way to have XML coding send the number to FS2004? Help will be greatly appreciated. Yours Bertus
×
×
  • 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.