if you know what you doing you should understand the code
DINPUT8.dll specifies the start address of the module and 0x7758+ is the offset. Let's say that DINPUT8.dll was loaded at 0x100000 then we add the offset which is +0x7758 which = 0x107758. That'd be the address for LockOnA (whatever that is). Don't worry if you don't understand though.
if(MenuCalled)
{
SetCursorPosition(float x, float y, float z) //(z if possible, as you know the z coordinate is a 3D coord.)
}else{
//nothing
}