I looked into the AutoHotKey script and the mouse tracking functions in there, seemed a bit more than i need, but i dont know..
A 2 line autohotkey script would cover both buttons, the caveat in autohotkey is that doubleclick is a different thing than single clicking twice... Should still get you by until you find a better solution tho.
EDIT: Here is an autohotkey script I made for moving the mouse and handling the buttons, prolly not very useful for you, but it may get you somehere.
^up::Mousemove,0,-5,0,R
^down::Mousemove,0,5,0,R
^left::mousemove,-5,0,0,R
^right::mousemove,5,0,0,R
^q::mouseclick,left
^w::mouseclick,left,,,2
^e::mouseclick,right
note the mouseclick,left,,,2 is the double click