I want to write a macro where I use the median and scale bar commands. But I want to get the two dialogs opened in order to select the correct values by myself. Do you know how to do this?
Welcome to the forum.
A good place to start is to use the macro recorder:
Plugins > Macro s> Record....
That will open a new window. Most actions you do with the gui will be transcribed in that new window as a macro.
If you want a macro/script with editable options, I suggest you check out the script parameters page on the wiki. There are some examples there. It’s the easiest way (in my opinion) of having options that are editable in a pop-up dialog.
Those two things combined should be what you need.
Post back if you have any questions,