Nevermind. I solved it by using AutoHotKey to create an executable. For reference, the script I used is as follows:
~$LButton::
While GetKeyState("LButton", "P"){
Click
Sleep 250 ; milliseconds
}
return
~$RButton::
While GetKeyState("RButton", "P"){
Click right
Sleep 250 ; milliseconds
}
return
This repeats the mouse left and right buttons four times per second, if they are held down.
This will do for Magic Carpet, anyway, until I get the Rapid Fire Fireball anyway. :)