VanDyke Software Forums

VanDyke Software Forums (
-   Scripting (
-   -   If currentrow contains *string* (

conqueror 05-05-2021 01:11 PM

If currentrow contains *string*
Hi! I am trying to create two scripts, one which will run at after each successful login and the other will be bound to a hotkey.

What I try to achieve is to bind a script to button B on my keyboard. Once this is pressed it will based on the whichever of the two is present on the screens current row, [user@fedoraserver ~]$ or [admin@fedoraserver ~]$ , type either A or B.

I also wish to get the most consistent variant of this in an own script that runs at login / connect.

Any advice would be greatly appreciated. Thanks!

bgagnon 05-05-2021 01:27 PM

Hi conqueror,

We don't write custom scripts but if you're having trouble figuring out how to accomplish a cohesive task, finding a script method or function in SecureCRT to help accomplish that task, or if you are seeing a specific error in your script, we welcome you to send us a detailed description of the problem you are encountering, the exact error message you are seeing, a copy of the script code that generates the error message, etc. and we will try to get back to you with helpful information.

What version of SecureCRT are you using?

On what platform/OS?

What are the results of your efforts thus far?

All times are GMT -6. The time now is 12:53 PM.