I figured out what I did. It was entirely an error on my part of course.
In my AHKv1 script, the SetTimer label was MouseMove. When I converted the script to AHKv2, I changed the label into a function without considering that I was overwriting the MouseMove function. Since it has 0 parameters, that explains my error.
I should have included more context initially. For the record if someone else ever makes this mistake, this was the code that broke it:
Code: Select all
SetTimer(MouseMove, 5000)
MouseMove() {
MouseMove(1, 1, 0, "R")
MouseMove(-1, -1, 0, "R")
}
Obviously, that code can't work, but I was just completely overlooking it.
Thanks again for the quick reply, it pointed me to the solution!