会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
龙少软件工作室
脚本录制源代码
Private
Sub
FrmRecord_KeyDown()
Sub
FrmRecord_KeyDown(
ByVal
sender
As
Object
,
ByVal
e
As
System.Windows.Forms.KeyEventArgs)
Handles
Me
.KeyDown
Dim
sKey
As
String
=
""
Dim
sPoint
As
String
=
GetPointInCursor()
Me
.TopMost
=
False
Select
Case
e.KeyCode
Case
Keys.F
ProcssF(sPoint)
Case
Keys.W
txtScript.AppendText(
"
FINDWINDOW=
"
&
GetWindowsNameInCursor()
&
vbCrLf)
Case
Keys.C
txtScript.AppendText(
"
CHECK=
"
&
sPoint
&
vbCrLf)
Case
Keys.U
txtScript.AppendText(
"
UNCHECK=
"
&
sPoint
&
vbCrLf)
Case
Keys.S
Dim
s
As
String
=
""
s
=
InputBox
(
"
请输入要发送的字符串
"
,
"
SendKeys
"
)
If
s
<>
""
Then
txtScript.AppendText(
"
SENDKEY=
"
&
s
&
vbCrLf)
End
If
Case
Keys.P
txtColor.Text
=
GetColorInCursor.ToString
End
Select
Me
.TopMost
=
True
End
Sub
Private
Sub
ProcssF()
Sub
ProcssF(
ByVal
sPoint
As
String
)
Dim
frm
As
New
frmRecodPointNameAndWait
Time
If
frm.ShowDialog
=
Windows.Forms.DialogResult.OK
Then
txtScript.AppendText(frm.txtPoinName.Text
&
"
=
"
&
sPoint
&
vbCrLf)
txtScript.AppendText(
"
WAIT=
"
&
frm.txtWaitTime.Text
&
vbCrLf)
End
If
End
Sub
posted on
2008-05-24 16:55
杨志农
阅读(
237
) 评论(
0
)
收藏
举报
刷新页面
返回顶部
导航
博客园
首页
新随笔
联系
订阅
管理
公告