#1
|
|||
|
|||
![]()
Hi,
is there a way to send multiple backspaces in a custom menu file? For backspace I am using: \033[D When I need some backspaces is there a possibility to send this n times. Code:
MENUITEM "myMenu Item", "SEND", "Hello\033[D\033[D\033[D\033[D" Code:
MENUITEM "myMenu Item", "SEND", "Hello{\033[D 4}" Thanks and best regards scrt_fool |
#2
|
|||
|
|||
Hi scrt_fool,
As you discovered, that syntax is not supported in a custom menu file. What problem are you trying to solve? Does sending the data for backspace have to be done via a menu option? Why not just map a button or a key to send one backspace and then execute it as many times as needed? (I am assuming the data sent is different from what the keyboard backspace key sends.) Or mapping one button/key to send two at a time, another button/key to send three at a time, etc.?
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#3
|
|||
|
|||
sorry made a little mistake
Hi Brenda,
sorry, I made a mistake here. I don`t want to send BACKSPACE. I want to send LEFT. Means I want to put the cursor at a specific position where I want to write something. And it works with: \033[D But when I want to send LEFT Key n-times then I need to write this n-times in a row: \033[D\033[D\033[D\033[D\033[D And I like to know if there is a possibility to specify n If possible in mnu Menu File. If not maybe in a script. Thanks |
#4
|
|||
|
|||
Hi scrt_fool,
What version of SecureCRT are you using? On what platform/OS? VBScript's SendKeys() method does allow for specifying the data be sent multiple times: Quote:
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#5
|
|||
|
|||
![]()
Hi Brenda,
thanks and sorry for late reply. I am using version 6.7.5 on WIN7-64bit. Soon on WIN10. I tried your suggestion and it works. So I am not using "SEND" in the Menu but "RUN" And in the VBScript I am using send and sendkeys. E.g. Code:
crt.Screen.Send "xxxx yyyy " crt.Screen.sendkeys ("{LEFT 6}") And if I need only some "LEFT`s" I use still "SEND" and the code "\033[D" for "LEFT" (like shown in my first example) Thanks and best regards scrt_fool ![]() |
#6
|
|||
|
|||
Hi scrt_fool,
I am glad to hear of your success. ![]() Please note the first version of SecureCRT with support for Windows 10 was v7.3.4. You can check your upgrade eligibility here.
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Tags |
menu , menuitem , mnu , send |
Thread Tools | |
Display Modes | Rate This Thread |
|
|