Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi,

 

I have created a macro to try to automate some CDU actions, but that does not seem to run and in FSUIPC log I get the message "... not useful because it causes an exception".

 

Other macros I have created for the same aircraft  are good, only the one trying to manage the CDU is having issue. 

 

There is an explanation for that?

 

Also using in a LUA the controls managing the CDU (listed in the PMDG SDK) seem to create problem: the first time you call the control to simulate for example the push of the button L1 (ipc.control (70166,1)) everything goes okay, but after if you simulate to push again the same button nothing happens.

 

Any help will be really appreciated.

 

Thanks and kind regards

 

Joe

Posted

I have created a macro to try to automate some CDU actions, but that does not seem to run and in FSUIPC log I get the message "... not useful because it causes an exception".

 

Other macros I have created for the same aircraft  are good, only the one trying to manage the CDU is having issue. 

 

There is an explanation for that?

 

Yes. It means the code used in the CDU is not standard and cannot be called in the standard way used by Mouse Macros without crashing FS. The Mouse Macro-making facilities detect this and report it so you don't end up crashing FS.

 

Also using in a LUA the controls managing the CDU (listed in the PMDG SDK) seem to create problem: the first time you call the control to simulate for example the push of the button L1 (ipc.control (70166,1)) everything goes okay, but after if you simulate to push again the same button nothing happens.
 
This will be a function of the way PMDG implemented things. I expect the button needs "unpushing" in order to allow it to be pushed again. I don't really know much about PMDG add-ons I'm afraid.
 
Pete
Posted

hHi Pete,

 

thanks for the reply.

 

Problem solved with LUA solution: the problem was related the parameter value of ipc control statement. I found the solution looking into the user contribution section.

 

Thanks again and kind regards

 

Joe

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.