Hey guys, this code is already in the community configs and works really well, (mouse takeover VST controller 1.1) but since I don't really know much about scripting was hoping this someone would help me to modify it so it saves the current mouse location before click and after click release it would go back to the saved location.
if self.axis ~= 3 and self.c_act == false then
mouse_button_send(1, 1)
self.c_act = true
end
if self:encoder_value() > 63 then
mouse_move_send(self.axis, self.step)
else
mouse_move_send(self.axis, self.step * -1)
end
timer_start(self:element_index(), self.time)