Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi Pete,

I have a question about offset 3200, can I send any message in there or is it bound to only WM_KEYUP/DOWN ? ie can this be seen as a simple "SendMessage" parameter list ?

I am interrested in sending mouse events to simulate mouse clics on gauges.. the trick will be to determine the x/y positions but I have my idea about it..

thks for your time,

Benoit

Posted

I have a question about offset 3200, can I send any message in there or is it bound to only WM_KEYUP/DOWN ? ie can this be seen as a simple "SendMessage" parameter list ?

It is only for KEYUP and KEYDOWN. It doesn't actually do a "SendMessage", because that isn't effective in simulating keystrokes (they need to be processed in Windows to generate WM_CHAR and other messages and indications where appropriate).

They actually generate calls to the Windows "SendInput" API -- this is why it says you need Win98 or later, as that API didn't exist beforehand.

I am interrested in sending mouse events to simulate mouse clics on gauges.. the trick will be to determine the x/y positions but I have my idea about it..

Why send them via FSUIPC? As long as you are running on the same PC just send them directly to FS.

Regards,

Pete

Posted
Why send them via FSUIPC? As long as you are running on the same PC just send them directly to FS.

well this is it, I am running on another PC.. I thought about the following chain :

- a switch gets closed in my pit, the software on my laptop picks it up

- WideFS sends a keyboard key via offset 3200

- Key2Mouse intercepts it on the host and translates it into the correct mouse clic.

Now I have one question about this flow : will FSUIPC send the command at a high enough level so it will be picked up by key2mouse ? or is it using a low level which key2mouse won't intercept ?

thks for your prompt reply !

Benoit

Posted

Now I have one question about this flow : will FSUIPC send the command at a high enough level so it will be picked up by key2mouse ? or is it using a low level which key2mouse won't intercept ?

I think you have the "levels" upside down to the way I view them -- the lowest down you can get is hardware, so a keyboard sending keystrokes is real low. FSUIPC can't get that low, and it doesn't get down to driver level.

But it uses "SendInput" for the precise reason that this recently-added Windows API is supposed to reproduce the results just as if the keypresses had originated reasonably low down, so "fooling" most programs. The other way is to use the recorded playback facilities, but they are very awkward and need the program to have focus -- SendInput is specifically addressable.

If "key2mouse" manages to avoid seeing them it will be because it is using a much lower level access, effectively interrogating the keyboard itself, not processing windows messages, which is unlikely.

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.