Is there any way to add menu command through a python script?!
i want to add specific commands in run menu or macro commands for certain filetypes or langs
so that commands appears only in the menu if the active file is of certain filetype
can i do that through a script
Short answer: No.
Take a look at this project: http://sourceforge.net/projects/npppythonplugsq/
It's an addon built on top of Notepad++ Python Script that might do something like what you're interested in doing.