This person was trying to do exactly the same thing, and apparently found the solution here:
However I still don’t know how I can call that function and what parameter I should pass.
This person was trying to do exactly the same thing, and apparently found the solution here:
However I still don’t know how I can call that function and what parameter I should pass.