Iam using a project that uses mouse drivers to send mouse inputs, for example
from ctypes import *
import time
dd_dll = windll.LoadLibrary('x:\DD94687.64.dll')
time.sleep(2)
st = dd_dll.DD_btn(0) #DD Initialize
if st==1:
print("OK")
else:
print("Error")
exit(101)
#Second argument = positive numbers moves the mouse down, Negative numbers moves the mouse up
#First argument = positive numbers moves the mouse right, negative numbers moves the mouse left
#This will move the curser 5 pixels to the right, and 10 pixels down
def dd_dll.DD_movR(5,10)
it can be found here, i want to calculate and move the curser increment by increment (5 pixels each to be specific) from the center of screen (starting point) to another point specified by the user (it could be any coordinates on screen).
iam using the DD_movR() function, there's another function which is DD_mov() that moves the curser to a specified X,Y position, but for some reason it magnifies any integer given by 0.25. so if i wanted to move the curser to (625,625) my input should be (500,500) . i want to use either of them as long as i move the mouse increment by increment instead of jumping the specified location.
I know that there're other methods/libraries that does the same function but the target iam sending mouse inputs to blocks all of them and i found this to be working.