自动登录第三方应用程序

编程入门 行业动态 更新时间:2024-10-25 06:22:14
本文介绍了自动登录第三方应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

嗨专家,

我正在尝试开发一个自动化的.Net应用程序,它能够登录到第三方应用程序并执行一组当前的工作手动执行

I am trying to develop a .Net Application for automation which is able to login to a third party application and perform a set of jobs which is currently performed manually

我遇到了一些我编写的代码的问题,需要你的专家帮助。

I am facing some Issues with the code i have written and need your Expert help.

下面是OneDrive代码的链接

Below is the Link to the code in OneDrive

onedrive.live/?cid=1f0b0affb1fd6044&id=1F0B0AFFB1FD6044%213197&ithint=file,zip&authkey=!AN6nBhsF9UX6nqg

onedrive.live/?cid=1f0b0affb1fd6044&id=1F0B0AFFB1FD6044%213197&ithint=file,zip&authkey=!AN6nBhsF9UX6nqg

1。当我运行应用程序时,它在下面的代码行中打破了对象引用错误

1. When i run the Application, it breaks at the below line of code with Object reference Error

DicControl.Add("Password", sTextBoxControlList.Item(0).childHandle) DicControl.Add("UserName", sTextBoxControlList.Item(1).childHandle) DicControl.Add("Login", sLogin.Item(0).childHandle)

这是因为sTexBoxControlList为空。

this is because sTexBoxControlList is empty.

奇怪的部分是当我通过视觉工作室调试代码时,它通过代码没有任何问题

The Weird part is when i debug the Code thru visual studio it passes thru the code with out any issue

2。我正在尝试向Handle发送一些密钥以尝试登录但这不起作用。

2. I am trying to send some keys to the Handle to try to login but this is not working.

' Set Control to Password NativeWin32.SetFocus(DicControl("Password")) SendKeys.SendWait(Password) NativeWin32.SetFocus(DicControl("Login")) SendKeys.SendWait("{ENTER}")

你能不能帮帮我。

谢谢提前。

Joji

推荐答案

看看以下内容:

Take a look at the following:

msdn.microsoft/EN-US/library/dn631817.aspx

谢谢

Frank K [MSFT]

Frank K [MSFT]

在Twitter上关注我们, www.twitter的 / WindowsSDK 。

Follow us on Twitter, www.twitter/WindowsSDK.

更多推荐

自动登录第三方应用程序

本文发布于:2023-11-27 03:29:58,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636386.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:第三方   应用程序   自动登录

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!