• 按键公众号 :
按键精灵电脑版
立即下载

软件版本:2014.06
软件大小:22.9M
更新时间:2021-12-03

按键精灵安卓版
立即下载

软件版本:3.7.2
软件大小:46.2M
更新时间:2023-05-10

按键精灵iOS版
立即下载

软件版本:1.8.0
软件大小:29.2M
更新时间:2023-03-21

按键手机助手
立即下载

软件版本:3.8.0
软件大小:262M
更新时间:2023-05-30

快捷导航

登录 后使用快捷导航
没有帐号? 注册

发新话题 回复该主题

[神梦] 按键精灵里也可以使用Me对象 [复制链接]

1#
所有对象的父类
  1. TracePrint TypeName(Me)
复制代码
储存 Empty 的一个内置变量
  1. TracePrint TypeName(Me.F2730835_2229_445E_97C7_l3F76l2771DA)
复制代码
储存 空数组(256) 的一个内置变量
  1. TracePrint TypeName(Me.F2730835_2229_445E_97C7_l3F761277lDA)
  2. TracePrint UBound(Me.F2730835_2229_445E_97C7_l3F761277lDA)
复制代码
子程序或函数里储存所有定义的变量和参数的一个内置类
  1. Call 子程序("SMWH", true, 2)

  2. Sub 子程序(a, b, c)
  3. Dim d
  4. d = 3.14
  5. Set names = Me.F2730835_2229_445E_97C7_l3F7612771DA
  6. TracePrint names.a
  7. TracePrint names.b
  8. TracePrint names.c
  9. TracePrint names.d
  10. End Sub
复制代码
子程序里储存 Nothing、Empty、 Variant(256) 的内置变量
  1. Call 子程序()

  2. Sub 子程序()
  3. Set names = Me.F2730835_2229_445E_97C7_l3F7612771DA
  4. Set var_Nothing = names.F2730835_2229_445E_97C7_13F76l2771DA
  5. var_Empty = names.F273O835_2229_445E_97C7_l3F76l277lDA
  6. var_Array = names.F2730835_2229_445E_97C7_l3F761277lDA
  7. TracePrint TypeName(var_Nothing)
  8. TracePrint TypeName(var_Empty)
  9. TracePrint TypeName(var_Array) & "=" & UBound(var_Array)
  10. End Sub
复制代码
储存 SetSimMode 设置值的一个内置变量
  1. ' 未设置模拟方式前,输出该变量的值
  2. TracePrint Me.g_iSimulateModeInVBSBlock
  3. ' 设置模拟方式为 2=超级模拟
  4. SetSimMode 2
  5. ' 该变量的值也同时变成了 2
  6. TracePrint Me.g_iSimulateModeInVBSBlock
复制代码
Me支持的方法函数
  1. Variant SetSimMode(SimMode As Variant)
  2. Variant KeyPress(KeyCode As Variant, Count As Variant)
  3. Variant KeyDown(KeyCode As Variant, Count As Variant)
  4. Variant KeyUp(KeyCode As Variant, Count As Variant)
  5. Variant KeyGroup(KeyCodes As Variant)
  6. Variant LeftClick(Count As Variant)
  7. Variant RightClick(Count As Variant)
  8. Variant MiddleClick(Count As Variant)
  9. Variant LeftDoubleClick(Count As Variant)
  10. Variant LeftDown(Count As Variant)
  11. Variant LeftUp(Count As Variant)
  12. Variant RightDown(Count As Variant)
  13. Variant RightUp(Count As Variant)
  14. Variant MoveTo(MoveX As Variant, MoveY As Variant)
  15. Variant MoveR(MoveX As Variant, MoveY As Variant)
  16. Variant MouseWheel(Movement As Variant)
  17. Variant KeyPressH(KeyCode As Variant, Count As Variant)
  18. Variant KeyDownH(KeyCode As Variant, Count As Variant)
  19. Variant KeyUpH(KeyCode As Variant, Count As Variant)
  20. Variant LeftClickH(Count As Variant)
  21. Variant RightClickH(Count As Variant)
  22. Variant MiddleClickH(Count As Variant)
  23. Variant LeftDoubleClickH(Count As Variant)
  24. Variant LeftDownH(Count As Variant)
  25. Variant LeftUpH(Count As Variant)
  26. Variant RightDownH(Count As Variant)
  27. Variant RightUpH(Count As Variant)
  28. Variant MoveToH(MoveX As Variant, MoveY As Variant)
  29. Variant MoveRH(MoveX As Variant, MoveY As Variant)
  30. Variant MouseWheelH(Movement As Variant)
  31. Variant KeyPressS(KeyCode As Variant, Count As Variant)
  32. Variant KeyDownS(KeyCode As Variant, Count As Variant)
  33. Variant KeyUpS(KeyCode As Variant, Count As Variant)
  34. Variant LeftClickS(Count As Variant)
  35. Variant RightClickS(Count As Variant)
  36. Variant MiddleClickS(Count As Variant)
  37. Variant LeftDoubleClickS(Count As Variant)
  38. Variant LeftDownS(Count As Variant)
  39. Variant LeftUpS(Count As Variant)
  40. Variant RightDownS(Count As Variant)
  41. Variant RightUpS(Count As Variant)
  42. Variant MoveToS(MoveX As Variant, MoveY As Variant)
  43. Variant MoveRS(MoveX As Variant, MoveY As Variant)
  44. Variant MouseWheelS(Movement As Variant)
  45. Variant SaveMousePos()
  46. Variant RestoreMousePos()
  47. Variant LockMouse()
  48. Variant UnlockMouse()
  49. Variant WaitKey()
  50. Variant GetLastKey()
  51. Variant WaitClick()
  52. Variant GetLastClick()
  53. Variant Delay(DelayTime As Variant)
  54. Variant MessageBox(MessageText As Variant)
  55. Variant SayString(MessageText As Variant)
  56. Variant Beep()
  57. Variant EndScript()
  58. Variant PutAttachment(PutPath As Variant)
  59. Variant TracePrint(PrintContent As Variant)
  60. Variant LogStart(LogFileName As Variant)
  61. Variant LogStop()
  62. Variant ExitScript()
  63. Variant RestartScript()
  64. Variant StopThread(ThreadID As Variant)
  65. Variant PauseThread(ThreadID As Variant)
  66. Variant ContinueThread(ThreadID As Variant)
  67. Variant GetThreadId()
  68. Variant GetMacroID()
  69. Variant GetExeDir()
  70. Variant GetEnv(Name As Variant)
  71. Variant GetEnvironmentVar(Name As Variant)
  72. Variant SetEnv(Name As Variant, Value As Variant)
  73. Variant SetEnvironmentVar(Name As Variant, Value As Variant)
  74. Variant CompColor(XPos As Variant, YPos As Variant, ColorToComp As Variant, CompType As Variant)
  75. Variant RunApp(AppPath As Variant)
  76. Variant GetCursorPos(CursorX As Variant, CursorY As Variant)
  77. Variant GetPixelColor(PosX As Variant, PosY As Variant)
  78. Variant FindColor(iLeft As Variant, iTop As Variant, iRight As Variant, iBottom As Variant, szColor As Variant, FoundX As Variant, FoundY As Variant)
  79. Variant FindCenterColor(iLeft As Variant, iTop As Variant, iRight As Variant, iBottom As Variant, szColor As Variant, FoundX As Variant, FoundY As Variant)
  80. Variant FindColorEx(iLeft As Variant, iTop As Variant, iRight As Variant, iBottom As Variant, szColor As Variant, iType As Variant, fSimilar As Variant, FoundX As Variant, FoundY As Variant)
  81. Variant ReadMemory(dwAddress As Variant, iType As Variant, ReadValue As Variant)
  82. Variant FindPic(iLeft As Variant, iTop As Variant, iRight As Variant, iBottom As Variant, szFileName As Variant, fSimilar As Variant, FoundX As Variant, FoundY As Variant)
  83. Variant FindPicEx(iLeft As Variant, iTop As Variant, iRight As Variant, iBottom As Variant, szFileName As Variant, fSimilar As Variant, szTransparentColor As Variant, FoundX As Variant, FoundY As Variant)
  84. Variant GetCursorShape(iType As Variant)
  85. Variant GetScreenResolution(ScreenX As Variant, ScreenY As Variant)
  86. Variant SetCursorPos(CursorX As Variant, CursorY As Variant)
复制代码

发新话题 回复该主题