Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete and others,

I got simple question, how better can read/write value at offset which is defined with mouse macro (3rd party aircraft GAU)? I got my HW Board (not JOY device) with switches and leds, no problem reading/writing offsets including in your documentation witn my C++ client via FSUIPC to FS. Thnx for help.

Ivan

Posted

Read solved :) Using user defined offsets 66C0... and seting in my C++ aplication now can read status of pushbuttons defined with mouse macro to my aplication :) Now going testing WRITE...

Posted

Hi Pete,

after success for reading status of for examp. togle switch created via Mouse macro to my C++ aplication, in write (change position to this togle switch from my aplication) i've crashed with my head on the wall heh. The problem is that I can't find proper definition in FSUIPC.INI??? to work this togle switch from status in user defined offset f.e. 0x66C0. I can write from my aplication to this offset whatever I want, but don't know how join this working macro (togle switch) change position (ON/OFF) due this value on 0x66C0. What I discovered is that definition is via Buttons or Keypresses but for me will be enough testing change on offset and then run macro (togle switch). Any help will be fine :)

Ivan

Posted

The problem is that I can't find proper definition in FSUIPC.INI??? to work this togle switch from status in user defined offset f.e. 0x66C0. I can write from my aplication to this offset whatever I want, but don't know how join this working macro (togle switch) change position (ON/OFF) due this value on 0x66C0.

Why are you messing about in the INI file? Use the FSUIPC options dialogue, assign to one of the Offset controls, enter the offset and the parameter. You can set a value, inc or dec (cyclically with a limit if you want), or set / cear / toggle individual bits! Whatever you need!

Why do I make things easy if everyone wants to do it some complicated way? :-(

Regards

Pete

Posted

Thnx Pete for reply, but this I think not solve my problem. I just show what I wanto to do, maybe we'll find some solution :)

1. Defined with Mouse Macro 3rd party togle switch (FSD Seneca) -> working.

2. Due to my HW switch position on my HW Board (not Joy device) I'll read status of this HW switch to my C++ application -> no problem.

In this moment I've tried find solution, how will read FSUIPC my HW switch position what isn't recognised as JOY Button/KeyPress. Thinking to write some value from my C++ appl. to user defined offsets. I've select 66C0.

3. I've wrote from my C++ application to offset 66C0 for examp. 0x1 -> no problem.

And now is the question, how join this offset 66C0 (0x0-OFF/0x1-ON) to switch that Seneca togle switch MouseMacro. When I've try solve this In FSUIPC dialog, I must define JoyButton/Keypress but I haven't one. I want run this MouseMacro due that 66C0 offset value. Maybe using LUA?

Hope I now explained this problem better :) Thnx for any comments...

Ivan

Posted

Hmmmmm I just again looked at FSUIPC for programing and founded offset 0D6C and 0D70. Is any chance to run that MouseMacro (FSD Seneca togle switch) with using these offsets? I want push my HW Switch and in that case run that MouseMacro to see efect in Seneca. I think I must set some values to these offsets from my C++ application heh. Is this solution? I just try.... Any comment will be fine.

Ivan

Posted

In this moment I've tried find solution, how will read FSUIPC my HW switch position what isn't recognised as JOY Button/KeyPress. Thinking to write some value from my C++ appl. to user defined offsets. I've select 66C0.

Much easier to use the virtual button offsets at 3340. There is room there for 288 separate buttons, all of which are recognised in FSUIPC's options dialogue for assignment. Then just assign as needed.

Hmmmmm I just again looked at FSUIPC for programing and founded offset 0D6C and 0D70. Is any chance to run that MouseMacro (FSD Seneca togle switch) with using these offsets? I want push my HW Switch and in that case run that MouseMacro to see efect in Seneca. I think I must set some values to these offsets from my C++ application heh. Is this solution? I just try.... Any comment will be fine.

You are finding each time the most complex methods. The virtual buttons facility is made EXACTLY for the purpose of feeding non-Joystick switches into FSUIPC in a way which, to FSUIPC, looks like any other. It is much easier and much more flexible. Try it!

Regards

Pete

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.