Mike Butler Posted December 24, 2019 Report Posted December 24, 2019 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
Paul Henty Posted December 25, 2019 Report Posted December 25, 2019 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now