Patrick M Posted November 6, 2005 Report Posted November 6, 2005 I would like to send virtual key to fs 2004 through fsuipc. i am searching some examples for this. If i want to send CTRL-N key, how can i do it. I have understood that 3200 is for WM_KEYDOWN or WM_KEYUP 3204 for wparam : virtual key but how write 2 or more virtual keys 3208 for lparam: what must i write here I am using leveld-767 addon (not answering to virtual keys sent by an another application) Than you Patrick
Pete Dowson Posted November 6, 2005 Report Posted November 6, 2005 I would like to send virtual key to fs 2004 through fsuipc.i am searching some examples for this. If i want to send CTRL-N key, how can i do it. I have understood that 3200 is for WM_KEYDOWN or WM_KEYUP 3204 for wparam : virtual key but how write 2 or more virtual keys 3208 for lparam: what must i write here The wparam and lparam values are the parameters for the WM_KEYDOWN or WM_KEYUP messages. You need to refer to Microsoft Windows programming references, for whatever language you are using. For combinations like Ctrl+N you have to do the same as the keyboard would, i.e. Press Ctrl (KEYDOWN) Press N (KEYDOWN) Release N (KEYUP) Release Ctrl (KEYUP) i.e. 4 operations -- 4 separate writes t the 12 bytes at 3200. You may want to consider toggling a bit in the virtual joystick offsets instead (see 3340) and then simply programming the resulting button press in FSUIPC's Buttons page to send the Ctrl+N. It would be easier. Regards, Pete
Patrick M Posted November 7, 2005 Author Report Posted November 7, 2005 Thank you Pete I am considering your solution and studying now virtual joystick after virtual key Patrick
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now