Jump to content
The simFlight Network Forums

Getting User Input


ark1320
 Share

Recommended Posts

Hi John,

Do you happen to know if there has been any "advances" in the MSFS SDK that supports getting user input values via the keyboard?

I'm thinking of something similar to the ipc.ask() function that we have available in FSX and P3D.

Thanks,

Al

Link to comment
Share on other sites

8 hours ago, ark1320 said:

Do you happen to know if there has been any "advances" in the MSFS SDK that supports getting user input values via the keyboard?

I'm thinking of something similar to the ipc.ask() function that we have available in FSX and P3D.

The issue with the the ipc.ask() function is its dependence on a simconnect message window using the API SimConnect_Text function, not on getting the input values back - this is handled by FSUIPC. This function is still documented as not currently available for use. So no, there has been no advance with this, and I don't know if this will ever be fixed or replaced by something else.

At some point I could look into adding a similar function to get user input via the wnd library (e.g. a wnd.ask() function), but I can't say when I will get the time to look into adding such a function at the moment. 

John

Link to comment
Share on other sites

4 hours ago, John Dowson said:

At some point I could look into adding a similar function to get user input via the wnd library (e.g. a wnd.ask() function), but I can't say when I will get the time to look into adding such a function at the moment. 

John,

A wnd.ask() function would sure be helpful, but I can appreciate your time constraints.

Thanks,

Al

Link to comment
Share on other sites

4 hours ago, John Dowson said:

Note that we discussed this before (nearly 1.5 years ago now) and I provided you with a script that gets numeric input via lua using the wnd library

Yes!  And I used versions of your script in the MSFSmoveAircraft and Set Future Pause for MSFS or P3D scripts that are in the User Contributions subforum here. I was hoping that since that time Asobo had made things a bit easier.

However, it has been a while since I wrote those scripts -- I need to go back and review the details.

Many thanks,

Al

Link to comment
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...
 Share

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