Passing a panel as parameter to a script
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018
02:39 AM
01-23-2018
02:39 AM
Passing a panel as parameter to a script
Hello,
i am using python as my programming language and I wanted to ask if it is possible to pass a panel to the function.
What I want to do is:
create a function, that takes a panel as parameter and returns the classname of this panel.
best regards and thanks for help upfront
Solved! Go to Solution.
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018
03:00 AM
01-23-2018
03:00 AM
Hi,
Below might help you ,
def getClassName(panelObject): return panelObject.JavaClassName you can specify what field you want to return def testFunctoin(): Log.Message(getClassName(Sys.Process("jp2launcher").SwingObject("MainWindow", "*", -1, 1)))
Thanks
Shankar R
LinkedIn | CG-VAK Software | Bitbucket | shankarr.75@gmail.com
“You must expect great things from you, before you can do them”- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2018
03:48 AM
01-23-2018
03:48 AM
thx
