Jump to content
The simFlight Network Forums

Running mouse macros from FSUIPC client DLL


Mike Butler

Recommended Posts

Yes you can. There isn't an easy helper method in the DLL, but it's just a matter of writing a string to 0x0D70. See the offsets list (FSUIPC4/5 Offsets Status.pdf) for the details of what to write.

As this is a write-only offset, I recommend declaring the offset as write-only and placing it in it's own group. Then you can process just that group.

Something like this:

        private Offset<string> macroRequest = new Offset<string>("macro", 0x0D70, 40, true);

        private void fireMacro(string macroRequestString)
        {
            this.macroRequest.Value = macroRequestString;
            FSUIPCConnection.Process("macro");
        }

Paul

 

Link to comment
Share on other sites

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.