Zitat:
Original geschrieben von Mathew
Hoe did you get this part done ??? I am stuck with the same problem and have nearly got my head of from messing around with all kind of things but have not found a solution yet...i would really appreciate if you had an idea.
thanks
Mathias
|
Hi.
You define a switch to output a keystroke. You do this on the KEY/Mouse tab (or whatever it was called, typing this on Linux right now..)
Keyboard thingy works just like FSWrite - you can "route" switches there. But instead of doing some FSUIPC stuff one gets the keyboard event or a mouse click.
The FSBUS folder where you installed it contains a key event "finder" application where you can see mouse pointer coords and also the keyboard events, but it is actually not compled - just a lot of work to type them in.
So you define something like this:
Name a line "GYROKey" and have the key event be: "K+VK_SHIFT;K+N;d40;K-N;K-VK_SHIFT|K+VK_SHIFT;K+M;d40;K-M;K-VK_SHIFT"
This looks *horrible* but lets try to break it up:
K+KEY = press key "KEY" down. So:
K+VK_SHIFT = press shift down.
K+N = press down n
d40 = delay 40 milliseconds
K-N = release key n
K-VK_SHIFT = release shift.
Now you understand this just does a "Shift-N"
Then there's the "pipe" character | that separates rotaries - when a switch becomes "1" it does the event *on the right side* of the pipe, and when a switch becomes -1 (or was it 0? Cant remember now) then it does the sequence on the left side.
These are good to test in Notepad. Rotating the rotary will then do "NNNNNNNNNMMMMMMMMNNNNNNN".
Then in FSUIPC you define key "shift-N" to do "GYRO_DRIFT_DEC" or whatever it was, and shift-M to "GYRO_DRIFT_INC".
The annoying part is to keep stuff in sync betwen FSBUS and FSUIPC, and that you need to have keyboard focus on the FS2002 (otherwise you'll be typing NNMMMMNNNMMM on Squawkbox or somethi
ng

)
But it's a workaround until we get 2.0.
Get my config from
http://tigert.gimp.org/vatsim/cockpit-stuff/fsbus.fbc for some examples. It's best to load it up in FSBUS router and see how things are defined, the text file itself is not very informative
Tuomas