TaranVH / 2nd-keyboard

ALL of Taran's scripts - not just for the 2nd keyboard.
https://www.youtube.com/watch?v=O6ERELse_QY
1.66k stars 534 forks source link

Still shows F24 in X-Plane #123

Open FlightP opened 4 years ago

FlightP commented 4 years ago

I just downloaded the scripts yesterday and it all worked fine in windows. When I want to set my keybinds in X-Plane 11 however, every keypress is registered as F24. What can I do?

TaranVH commented 4 years ago

you're not supposed to go directly into an application. No application I know of is set up to handle F24 used as a modifier key. You have convert it through AHK. So, the G key on your 2nd keyboard is currently sending F24 down, G down, G up, F24 up. You need to use autohotkey to convert that to something else, like CTRL ALT SHIFT 7. (Or you could use CTRL ALT SHIFT G to keep things consistent. You can set it to whatever you want.) Then in X-plane, you set up CTRL ALT SHIFT 7 to execute the command you want. Again, X-plane cannot handle (F24 G) as an input.

On Wed, Jun 3, 2020 at 4:58 AM FlightP notifications@github.com wrote:

I just downloaded the scripts yesterday and it all worked fine in windows. When I want to set my keybinds in X-Plane 11 however, every keypress is registered as F24. What can I do?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/TaranVH/2nd-keyboard/issues/123, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2MGX3R34PPRPTYS7YX65DRUY3FPANCNFSM4NRTCLVQ .

FlightP commented 4 years ago

image

Alright so I wrote this small bit and it sort of works? I tried Send, ^g but that did not work for me, so I had it holding down CTRL while pressing g. In X-Plane I then bound CTRL + g to "Show ATC Menu" which brings up a pop up window. On my regular keyboard, no problem but on the MACRO keyboard it didn't quite work :( It sometimes only presses G which brings the landing gear up and down and only when I press the button ~10 times rapidly it'll show the menu. I can send you the luamacro script and the AHK script if you wish.

Thanks in advance :)

TaranVH commented 4 years ago

instead, just do sendinput, ^g

because it deals with any other modifiers or other keys that might be held down, and will change their state before that keystroke is sent. Or at least change the Send, to Sendinput,

On Thu, Jun 4, 2020 at 4:01 AM FlightP notifications@github.com wrote:

[image: image] https://user-images.githubusercontent.com/66366667/83748040-e27b6e80-a661-11ea-8f11-e3f8f068817c.png

Alright so I wrote this small bit and it sort of works? I tried Send, ^g but that did not work for me, so I had it holding down CTRL while pressing g. In X-Plane I then bound CTRL + g to "Show ATC Menu" which brings up a pop up window. On my regular keyboard, no problem but on the MACRO keyboard it didn't quite work :( It sometimes only presses G which brings the landing gear up and down and only when I press the button ~10 times rapidly it'll show the menu. I can send you the luamacro script and the AHK script if you wish.

Thanks in advance :)

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/TaranVH/2nd-keyboard/issues/123#issuecomment-638778873, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD2MGX2O3WVA7SQQRABSJ6DRU55JLANCNFSM4NRTCLVQ .