VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   crt.GetScriptTab.Session.Log (https://forums.vandyke.com/showthread.php?t=13549)

slouw 05-16-2019 07:34 AM

crt.GetScriptTab.Session.Log
 
What is wrong with this little script?
Code:

# $language = "python"
# $interface = "1.0"
#
crt.GetScriptTab.Session.Log(False)

I get this error:
Quote:

---------------------------
SecureCRT
---------------------------
AttributeError
Error: 'builtin_function_or_method' object has no attribute 'Session'
File: C:\Users\xx\crt.GetScriptTab.Session.Log.py
Line: 4
crt.GetScriptTab.Session.Log(False)
---------------------------
OK
---------------------------

bgagnon 05-16-2019 10:40 AM

Hi slouw,

You are missing the ()s after your object:

crt.GetScriptTab().Session.Log(False)

slouw 05-18-2019 01:18 AM

Thank you!!!!


All times are GMT -6. The time now is 08:15 PM.