Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Notices

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-07-2018, 07:44 AM
Rian Rian is offline
Registered User
 
Join Date: Mar 2018
Posts: 8
Change de Keyword set does not refresh the view

Hello,

I've make a script that switch from an existing "Keyword set" to an empty set and vice versa, switch from an empty "Keyword set" to the "Cisco Words_light"

Code:
    objTab = crt.GetScriptTab()
    objConfig = objTab.Session.Config
    hlStyle = objConfig.GetOption("Keyword Set")

    if hlStyle == keywordDefault:
        objConfig.SetOption("Keyword Set", "<None>")
    else:
        objConfig.SetOption("Keyword Set", keywordDefault)
When I launch it, it works but when I'm switching from an empty set to an existing set, the view is not refreshing and the color does not apply.
But if do it manually (by changing from the Session Options windows, it works well).

Regards
Reply With Quote
  #2  
Old 03-07-2018, 10:51 AM
ekoranyi ekoranyi is offline
VanDyke Technical Support
 
Join Date: Jan 2017
Posts: 654
Hi Rian,

I was able to recreate the behavior you're seeing when setting the Keyword Set. I have asked our QA/DEV team to review the issue and I will be sure to let you know when I have additional information. If you would like to be notified directly please send and email to Support@VanDyke.com with "Attn: Eric Forum Post 13039" in the subject line.
__________________
Thanks,
--Eric

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 03-08-2018, 03:42 AM
Rian Rian is offline
Registered User
 
Join Date: Mar 2018
Posts: 8
Thank you, I'll wait for a fix.
I can test the beta or the fix if you need.

Regards
Reply With Quote
  #4  
Old 03-19-2018, 12:03 PM
Maureen's Avatar
Maureen Maureen is offline
VanDyke Product Director
 
Join Date: Feb 2004
Location: Albuquerque, NM
Posts: 1,612
This has been fixed in a pre-beta version of SecureCRT. Please email me at Maureen.Jett@vandyke.com if you'd like to try it.

Regards,
Maureen
Reply With Quote
Reply

Tags
keyword , python

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 02:10 AM.