用SecureCRT的VBScript脚本输入Ctrl组合键

  ASCIIControlCode = chr(asc(<UPPERCASE character>) - 64)

  例子脚本

  代码 (双击代码复制到粘贴板)Private Function Control(character)

  ' The following formula is useful:

  ' ASCIIControlCode = chr(asc(<UPPERCASE character>) - 64)

  '

  ' For example, Ctrl + @ is really an ASCII 0, Ctrl + A is really an ASCII 1 (SOH),

  ' and so on

  Control = chr(asc(character) - 64)

  End Function

  Sub Main

  crt.screen.Send Control("G")

  End Sub

(0)

相关推荐