Jump to content
The simFlight Network Forums

Recommended Posts

Posted

As the title really - is it possible to trigger a mouse macro from the FSUIPC client DLL? I've been through the documentation and can't see any way to do this but hopefully I'm missing something obvious!

-- Mike

Posted

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

 

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.