Jump to content
The simFlight Network Forums

Macro with Carenado Hawker 850XP FSX, Overhead switch mouse right click.


Recommended Posts

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!!!

 

 

Link to post
Share on other sites

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

 

Link to post
Share on other sites

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!

Link to post
Share on other sites
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

 

Link to post
Share on other sites

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

  • Like 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • 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.