Advertisement
Guest User

Untitled

a guest
Jun 10th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. [General]
  2. SyntaxVersion=2
  3. BeginHotkey=121
  4. BeginHotkeyMod=0
  5. PauseHotkey=0
  6. PauseHotkeyMod=0
  7. StopHotkey=123
  8. StopHotkeyMod=0
  9. RunOnce=1
  10. EnableWindow=
  11. MacroID=a2892cd2-d123-44c6-a97b-b8d25020f719
  12. Description=我的脚本1_自动备份
  13. Enable=0
  14. AutoRun=0
  15. [Repeat]
  16. Type=0
  17. Number=1
  18. [SetupUI]
  19. Type=2
  20. QUI=
  21. [Relative]
  22. SetupOCXFile=
  23. [Comment]
  24.  
  25. [Script]
  26. '==========以下是按键精灵录制的内容==========
  27.  
  28. Dim codefile, eachline, codefile_path,Text
  29.  
  30. Dim shoulparse
  31. shouldparse = "~!@#$%^&*()_+QWERTYUIOP{}|ASDFGHJKL:""ZXCVBNM<>?"
  32.  
  33. parseto = "`1234567890-=qwertyuiop[]\asdfghjkl;'zxcvbnm,./"
  34.  
  35. codefile_path = Plugin.File.SelectFile()
  36.  
  37. // codefile = Plugin.File.OpenFile(codefile_path)
  38.  
  39. Delay (5000)
  40.  
  41. // codefile = Plugin.File.OpenFile(codefile_path)
  42.  
  43. // Text = Plugin.File.ReadFileEx(codefile_path)
  44.  
  45. // TracePrint Text
  46.  
  47. // Dim debug_text
  48.  
  49. Dim fso
  50. Set fso = CreateObject("Scripting.FileSystemobject")
  51. Dim f
  52. Set f=fso.OpenTextFile(codefile_path,1)
  53.  
  54. Do Until f.AtEndOfStream
  55. strline = Trim(f.Readline)
  56. For i=1 to len(strline)
  57. Dim topress, pos
  58. topress = mid(strline, i, 1)
  59. debug_text = debug_text + topress
  60. pos = InStr(shouldparse, topress)
  61.  
  62. If pos = 0 Then
  63. If topress = Chr(13) or topress = Chr(10) Then
  64. TracePrint "Get\n"
  65. KeyPress Chr(13), 1
  66. ElseIf topress = " " Then
  67. TracePrint "Get Space"
  68. KeyPress "Space", 1
  69. Else
  70. KeyPress topress, 1
  71. End if
  72. Else
  73. TracePrint "Get toparse"
  74. KeyDown "Shift", 1
  75. KeyPress mid(parseto,pos,1), 1
  76. KeyUp "Shift", 1
  77. End if
  78. TracePrint topress & ";"
  79. Next
  80. KeyPress "Enter",1
  81. Loop
  82. /*
  83. For i=1 to len(Text)
  84. Dim topress, pos
  85. topress = mid(Text, i, 1)
  86. debug_text = debug_text + topress
  87. pos = InStr(shouldparse, topress)
  88.  
  89. If pos = 0 Then
  90. If topress = Chr(13) or topress = Chr(10) Then
  91. TracePrint "Get\n"
  92. KeyPress Chr(13), 1
  93. ElseIf topress = " " Then
  94. TracePrint "Get Space"
  95. KeyPress "Space", 1
  96. Else
  97. KeyPress topress, 1
  98. End if
  99. Else
  100. TracePrint "Get toparse"
  101. KeyDown "Shift", 1
  102. KeyPress mid(parseto,pos,1), 1
  103. KeyUp "Shift", 1
  104. End if
  105. TracePrint topress & ";"
  106. Next
  107. */
  108. // TracePrint debug_text
  109.  
  110. // Call lib.键盘.键盘按键组(Text,0,50)
  111.  
  112. // Plugin.File.CloseFile(codefile)
  113.  
  114. '==========以上是按键精灵录制的内容==========
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement