gustavousanj Posted January 21, 2021 Report Posted January 21, 2021 Hello all, I have the aircraft Carenado Hawker 850XP for FSX. I'm trying to create macros for the overhead, and it works fine, with exception of the switches (usually 3 positions) where I have to use the mouse right click to change the switch position. How can I program the macro simulating mouse right click? Anyone here with the same issue? Thank you so much!!!
John Dowson Posted January 21, 2021 Report Posted January 21, 2021 Create with a left click initially, then edit the macro file and change the left mouse-click code 3 to a right mouse click code 1. The mouse click codes are defined in the Advanced User Guide, in the Mouse Macros section: Quote 1 Right single click 2 Middle single click` 3 Left single click 4 Right double click 5 Middle double click 6 Left double click 7 Right button & drag 8 Middlebutton & drag 9 Left button & drag 10 Move 11 Right elease 12 Middle release 13 Left release 14 Wheel up 15 Wheel down 16 Leave 17 Count John
gustavousanj Posted January 21, 2021 Author Report Posted January 21, 2021 Hey John, Thx for the quick help response! If the line of the macros is: [Macros] 1=L:ASD_SWITCH_ISOLATE_850XP=Toggle Where in this line should I add the number to activate right click instead of the left? I’m manually typing the macros. Carenado Hawker doesn’t work with mouse macros. Thx again!
John Dowson Posted January 21, 2021 Report Posted January 21, 2021 1 minute ago, gustavousanj said: [Macros] 1=L:ASD_SWITCH_ISOLATE_850XP=Toggle Where in this line should I add the number to activate right click instead of the left? But thats an lvar macro, not a mouse macro. 2 minutes ago, gustavousanj said: Carenado Hawker doesn’t work with mouse macros. Ok. But if using lvars you need to consult the documentation for the aircraft on how the lvars work. I don't know that aircraft, but, for example, the PMDG SDK uses parameter codes (to controls) to emulate different mouse button clicks. Maybe its as simple as using the Set action (instead of Toggle), with an appropriate parameter? Or maybe Inc/Dec controls? You could try logging the lvar values with the switch in different positions, to see how that lvar changes. John
spokes2112 Posted January 21, 2021 Report Posted January 21, 2021 In the 850xp this L:Var has 3 values : 0 = Batt 2, 1 = Normal, 2 = Batt 1 Using 2 buttons, the left click can be : #=L:ASD_SWITCH_ISOLATE_850XP=Inc,2 then the right click can be :#=L:ASD_SWITCH_ISOLATE_850XP=Dec,0 Save a button! 👍 😃 Just make 1 button cyclic :#=L:ASD_SWITCH_ISOLATE_850XP=Cyc,2 Ref - Pg. 43 FSUIPC for Advanced Users.pdf Hope this helps, Roman 1
gustavousanj Posted January 21, 2021 Author Report Posted January 21, 2021 Thank you all you guys! It's working now with Inc and Dec added to the Macros. Have a great day!!! 🙂
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