Setting series of commands as one hotkey?

Is there way to set series of command as one hot key?
For example, I’d like to dupedge, then join, then remove knots, then subcrv to get a short curve from edge.
When I type a hot key and enter, I’d like to do the dupedge then after that is done, have the join done, then remove the knots, and get the subcrv command to pop-up.

@Toshiaki_Takano, you might try a macro and set it to a button or keyboard shortcut. Note that _SubCurve can only work on a single curve, so _Join must create a single curve or it will fail:

! _DupEdge _Pause _Join _RemoveMultiknot _SubCurve _Pause _Pause _Pause _SelLast

c.

Thanks! will try it out.