加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

VB实现,调用及操作应用程序

发布时间:2020-12-16 22:32:58 所属栏目:大数据 来源:网络整理
导读:'使用shell调用的dll。 Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long) 'Text1.Text为用户名;Text2.Text为密码。 Private Sub test_Click() '设定test登陆过程:调用test,用sendkeys发送 Dim RetVal RetVal = Shell("D:test.ex

'使用shell调用的dll。

Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)

'Text1.Text为用户名;Text2.Text为密码。 Private Sub test_Click() '设定test登陆过程:调用test,用sendkeys发送 Dim RetVal RetVal = Shell("D:test.exe",1) ' 完成Calculator。 Sleep 5000 '表示延时5秒 DoEvents 'SendKeys "+{tab}" SendKeys Text1.Text SendKeys "{tab}" SendKeys Text2.Text SendKeys "{enter}" End Sub

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读