Running python script via mission planner

Hi all, I’m a newbie so please be gentle.
I want to write a script to do the following:
Once the drone is connected to mission planner via telemetry do the following:
1.change mode to guided.
2. Arm
3. Take off to 10m
4. Fly to give LAT LONG cooards.

Is it possible to run this kind of a script threw mission planner?
If so, where do I start?

Thanks in advanced

Hi
Yes it possible

start point is here : https://ardupilot.org/planner/docs/using-python-scripts-in-mission-planner.html

1 Like

and also examples in the MP install directory, called scripts