View Single Post
  #2  
Old 12-18-2017, 02:56 PM
ekoranyi ekoranyi is offline
VanDyke Technical Support
 
Join Date: Jan 2017
Posts: 654
Hi mschaafs,

There is!

Changes in SecureCRT 8.3 (Beta 1) -- September 21, 2017
-------------------------------------------------------
- Added the ability to script session locking from the Session object.

Lock
Description
Locks the current session (or all sessions).
Remarks
All the parameters are optional. The default for prompt is false. If prompt is true, the Lock Session dialog will be displayed. The default for password is the empty string ("") and the default for lockallsessions is false.
Syntax
object.Lock([,prompt [,password, [,lockallsessions]]])
As an example you could use:

Code:
crt.Session.Lock
<your code>
crt.Session.Unlock
This would silently lock the session preventing input, unlocking when you're ready to release control.
Does this give you the functionality you're looking for?
__________________
Thanks,
--Eric

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730

Last edited by ekoranyi; 12-18-2017 at 04:46 PM.
Reply With Quote