Create a plugin for an existing application

Hi there,


I've been programming for a fair while now. I do lots of programming in VBA and AutoHotKey on windows. On mac I've been using HammerSpoon (LUA based) and Keyboard Maestro for most of my automation needs. However they can't do everything and they, for the most part, can't do the things I want to do fast and in such a way that is as sleek as I would like them to be.


Recently I wanted to create a "plugin" or "extension" to an already existing application. The application itself has no API, which isn't helpful but I have had experience with deobfuscating Java... How different can it really be? So my idea was to develop a seperate application that could be run alongside the application in question. My application would essentially "wrap" the existing application and extend its functionality.


Now here's the big question. How would it be best to do this? What API's/Libraries should I be aware of? Is there any documentation about doing this kind of thing?


So far from 2 nights of research I have found F-Script - which honestly looked very promising before I couldn't get it working at all. I hear F-script has been "killed off" by Swift. Can you wrap applications/"inject code into applications" like this in Swift? How easy is it to do so?


I've also looked into SIMBL, which also looked promising but slightly more intimidating because of the lack of documentation...


So that's a lot of questions. Thanks in advance to anyone who helps me out in this new world that's being opened up to me!


P.S. I'm not sure if this is the correct space to post this question! - I saw it being mentioned a lot in SIMBL documentation...

Feel free to move the post if needed 🙂

Create a plugin for an existing application
 
 
Q