Jump to content
The simFlight Network Forums
Sign in to follow this  
Erwan Alexandre

Mouse macro with push buttons

Recommended Posts

MOVED FROM SUBFORUMS TO MAIN SUPPORT FORUM

 

Hi everyone ! 

 

I am currently trying to make my VrInsight CDU work with the FSL A320. 

Yesterday, I succeeded in assigning all the buttons of the CDU hardware to the MCDU of the aircraft with FSUIPC mouse macros, it was working fine BUT... 

I can only click one time on the CDU, then, the button stay pushed and I have to click on it again with the mouse in the sim to release it. 

 

Do you know this issue ? Is there a solution ? 

 

Regards

Share this post


Link to post
Share on other sites

I've moved your post from one of the reference subforums to the main support forum so it can be answered.

6 hours ago, Erwan Alexandre said:

I can only click one time on the CDU, then, the button stay pushed and I have to click on it again with the mouse in the sim to release it. 

Do you know this issue ? Is there a solution ? 

I think each press changes is from "released to pressed" or "pressed to released", like a latching switch. If so you will simply need to program it in FSUIPC to do the same action on both press and released.

Pete

 

Share this post


Link to post
Share on other sites

Thanks for your reply ! 

 

I've already tried this, setting the same action when the button is released but nothing happened... It seems that the button is held down until I interact with the mouse cursor in the sim... 

 

I also tried to make a macro switching up the button but it didn't worked.

 

Regards

Share this post


Link to post
Share on other sites
1 hour ago, Erwan Alexandre said:

I've already tried this, setting the same action when the button is released but nothing happened... It seems that the button is held down until I interact with the mouse cursor in the sim... 

There's something wrong there, then. 

Enable Button/Key logging in FSUIPC's Logging tab, then operate the buttons. See what gets logged.

1 hour ago, Erwan Alexandre said:

also tried to make a macro switching up the button but it didn't worked.

Switching "up"? What sort of buttons on screen are you talking about?  Most CDUs don't have up/down toggle switches. Of course, I don't know the Airbus.

I'm just concerned that FSUIPC is doing the right things. How they then work on yor add-on aircraft is a seperate problem which i cannot really solve -- it may be a matter of experimentation. Don't FSL provide keyboard short-cuts? Or are there L:Vars which work.

Mouse macros sometimes need you to experiment with the code. If you are using P3D4, the standard code is 3. That means "single left click".  There's a list of the codes in the Advanced User's manual,  Just search for the Mouse macro section.

Pete

 

 

Share this post


Link to post
Share on other sites

The log has been attached. I've deleted some lines that seemed not to be usefull because of the size of the file. I use P3D v4 yes.

I tried with and without assigning the same action when the button is released.

 

Quote

Switching "up"?

Sorry, I should have said that, when the button was locked down, I tried to make a macro to release it. You're right, MCDU buttons are not toggle switches. I was just trying to unlock them with a macro but in vain...

 

There are codes available on their forum to assign hardware to some actions but nothing for the MCDU.... And, unfortunately, I'm not familiar with codes or LVar and Lua terms at all.

 

Thanks for your help

FSUIPC5.log

Share this post


Link to post
Share on other sites

Hi Erwan,

the log file shows the mouse macro is being activated ok.

There are a few things you could try:

1. Duplicate your macro file (giving it another name), and in the second file change the left mouse-click code (3) to a left release (13) [P38 of Advanced User Manual]. Then assign this macro to the key release.

2. Instead of using two macro files (as above), you could edit the existing macro to contain both the left click and the release - see the section entitled 'Multiple actions in one macro control' P37 of advanced user manual.

3. If the above two fail, add event logging to see whats being sent when you both click and release with the mouse in the sim.

Cheers,

John

 

 

 

Share this post


Link to post
Share on other sites

Hello John,

 

Ok, everything is now working perfectly with the second option, thanks a lot !

 

For those who woud like to see an example, this is how I edited the macro file :

 

[Macros]
1=MCDU_A
1.1=RX24400018,3
1.2=RX24400018,13

...

 

Regards

Share this post


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...
Sign in to follow this  

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