There are certainly ways in which magic can act on its own behalf, rather than the user's, without having a mind of its own. Believe me, when it truly has a mind of its own, it is much more dangerous than that.
It was the year 1819, and the worlds that I lived in were [...] more focused on magical advancement, except for one, but even that world did not have this technology yet. I suppose they might develop it later.