按键精灵里也可以使用Me对象

所有对象的父类
TracePrint TypeName(Me)


储存 Empty 的一个内置变量
TracePrint TypeName(Me.F2730835_2229_445E_97C7_l3F76l2771DA)


储存 空数组(256) 的一个内置变量
TracePrint TypeName(Me.F2730835_2229_445E_97C7_l3F761277lDA)
TracePrint UBound(Me.F2730835_2229_445E_97C7_l3F761277lDA)


子程序或函数里储存所有定义的变量和参数的一个内置类
Call 子程序("SMWH", true, 2)

Sub 子程序(a, b, c)
    Dim d
    d = 3.14
    Set names = Me.F2730835_2229_445E_97C7_l3F7612771DA
    TracePrint names.a
    TracePrint names.b
    TracePrint names.c
    TracePrint names.d
End Sub


子程序里储存 Nothing、Empty、 Variant(256) 的内置变量
Call 子程序()

Sub 子程序()
    Set names = Me.F2730835_2229_445E_97C7_l3F7612771DA
    Set var_Nothing = names.F2730835_2229_445E_97C7_13F76l2771DA
    var_Empty = names.F273O835_2229_445E_97C7_l3F76l277lDA
    var_Array = names.F2730835_2229_445E_97C7_l3F761277lDA
    TracePrint TypeName(var_Nothing)
    TracePrint TypeName(var_Empty)
    TracePrint TypeName(var_Array) & "=" & UBound(var_Array)
End Sub


储存 SetSimMode 设置值的一个内置变量
' 未设置模拟方式前,输出该变量的值
TracePrint Me.g_iSimulateModeInVBSBlock
' 设置模拟方式为 2=超级模拟
SetSimMode 2
' 该变量的值也同时变成了 2
TracePrint Me.g_iSimulateModeInVBSBlock


Me支持的方法函数
Variant SetSimMode(SimMode As Variant) 
Variant KeyPress(KeyCode As Variant, Count As Variant) 
Variant KeyDown(KeyCode As Variant, Count As Variant) 
Variant KeyUp(KeyCode As Variant, Count As Variant) 
Variant KeyGroup(KeyCodes As Variant) 
Variant LeftClick(Count As Variant) 
Variant RightClick(Count As Variant) 
Variant MiddleClick(Count As Variant) 
Variant LeftDoubleClick(Count As Variant) 
Variant LeftDown(Count As Variant) 
Variant LeftUp(Count As Variant) 
Variant RightDown(Count As Variant) 
Variant RightUp(Count As Variant) 
Variant MoveTo(MoveX As Variant, MoveY As Variant) 
Variant MoveR(MoveX As Variant, MoveY As Variant) 
Variant MouseWheel(Movement As Variant) 
Variant KeyPressH(KeyCode As Variant, Count As Variant) 
Variant KeyDownH(KeyCode As Variant, Count As Variant) 
Variant KeyUpH(KeyCode As Variant, Count As Variant) 
Variant LeftClickH(Count As Variant) 
Variant RightClickH(Count As Variant) 
Variant MiddleClickH(Count As Variant) 
Variant LeftDoubleClickH(Count As Variant) 
Variant LeftDownH(Count As Variant) 
Variant LeftUpH(Count As Variant) 
Variant RightDownH(Count As Variant) 
Variant RightUpH(Count As Variant) 
Variant MoveToH(MoveX As Variant, MoveY As Variant) 
Variant MoveRH(MoveX As Variant, MoveY As Variant) 
Variant MouseWheelH(Movement As Variant) 
Variant KeyPressS(KeyCode As Variant, Count As Variant) 
Variant KeyDownS(KeyCode As Variant, Count As Variant) 
Variant KeyUpS(KeyCode As Variant, Count As Variant) 
Variant LeftClickS(Count As Variant) 
Variant RightClickS(Count As Variant) 
Variant MiddleClickS(Count As Variant) 
Variant LeftDoubleClickS(Count As Variant) 
Variant LeftDownS(Count As Variant) 
Variant LeftUpS(Count As Variant) 
Variant RightDownS(Count As Variant) 
Variant RightUpS(Count As Variant) 
Variant MoveToS(MoveX As Variant, MoveY As Variant) 
Variant MoveRS(MoveX As Variant, MoveY As Variant) 
Variant MouseWheelS(Movement As Variant) 
Variant SaveMousePos() 
Variant RestoreMousePos() 
Variant LockMouse() 
Variant UnlockMouse() 
Variant WaitKey() 
Variant GetLastKey() 
Variant WaitClick() 
Variant GetLastClick() 
Variant Delay(DelayTime As Variant) 
Variant MessageBox(MessageText As Variant) 
Variant SayString(MessageText As Variant) 
Variant Beep() 
Variant EndScript() 
Variant PutAttachment(PutPath As Variant) 
Variant TracePrint(PrintContent As Variant) 
Variant LogStart(LogFileName As Variant) 
Variant LogStop() 
Variant ExitScript() 
Variant RestartScript() 
Variant StopThread(ThreadID As Variant) 
Variant PauseThread(ThreadID As Variant) 
Variant ContinueThread(ThreadID As Variant) 
Variant GetThreadId() 
Variant GetMacroID() 
Variant GetExeDir() 
Variant GetEnv(Name As Variant) 
Variant GetEnvironmentVar(Name As Variant) 
Variant SetEnv(Name As Variant, Value As Variant) 
Variant SetEnvironmentVar(Name As Variant, Value As Variant) 
Variant CompColor(XPos As Variant, YPos As Variant, ColorToComp As Variant, CompType As Variant) 
Variant RunApp(AppPath As Variant) 
Variant GetCursorPos(CursorX As Variant, CursorY As Variant) 
Variant GetPixelColor(PosX As Variant, PosY As Variant) 
Variant FindColor(iLeft As Variant, iTop As Variant, iRight As Variant, iBottom As Variant, szColor As Variant, FoundX As Variant, FoundY As Variant) 
Variant FindCenterColor(iLeft As Variant, iTop As Variant, iRight As Variant, iBottom As Variant, szColor As Variant, FoundX As Variant, FoundY As Variant) 
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) 
Variant ReadMemory(dwAddress As Variant, iType As Variant, ReadValue As Variant) 
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) 
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) 
Variant GetCursorShape(iType As Variant) 
Variant GetScreenResolution(ScreenX As Variant, ScreenY As Variant) 
Variant SetCursorPos(CursorX As Variant, CursorY As Variant) 
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 203,098评论 5 476
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 85,213评论 2 380
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 149,960评论 0 336
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 54,519评论 1 273
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 63,512评论 5 364
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,533评论 1 281
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,914评论 3 395
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,574评论 0 256
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,804评论 1 296
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,563评论 2 319
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,644评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,350评论 4 318
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,933评论 3 307
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,908评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 31,146评论 1 259
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,847评论 2 349
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,361评论 2 342

推荐阅读更多精彩内容