Kel Solaar
01-14-2008, 07:54 PM
Hello :)
I want to get the window name from where the command has been launched (last current active window), is there a way for the PrintCurrentWindowName() to get the active window? (Instead of passing the window name by the procedure arguments)
string $window = `window`;
columnLayout -adjustableColumn true;
string $menuBarLayout = `menuBarLayout`;
menu -label "Print";
menuItem -label "Current Window Name" -command "PrintCurrentWindowName";
setParent ..;
setParent ..;
showWindow $window;
global proc PrintCurrentWindowName()
{
print "Print Current Window Name !";
}
I want to get the window name from where the command has been launched (last current active window), is there a way for the PrintCurrentWindowName() to get the active window? (Instead of passing the window name by the procedure arguments)
string $window = `window`;
columnLayout -adjustableColumn true;
string $menuBarLayout = `menuBarLayout`;
menu -label "Print";
menuItem -label "Current Window Name" -command "PrintCurrentWindowName";
setParent ..;
setParent ..;
showWindow $window;
global proc PrintCurrentWindowName()
{
print "Print Current Window Name !";
}
