代码之家  ›  专栏  ›  技术社区  ›  V0lvox337

VB 2010 sendkeys错误

  •  0
  • V0lvox337  · 技术社区  · 8 年前

    Imports System.Runtime.InteropServices
    
    Public Class Form1
    
        Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Application.Exit()
        End Sub
    
        Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
            Dim ProcID As Integer
            ProcID = 2940
            AppActivate(ProcID)
            SendKeys.SendWait("Username")
            SendKeys.SendWait("{ENTER}")
            SendKeys.SendWait("Password")
            SendKeys.SendWait("{ENTER}")
        End Sub
    End Class
    

    错误: enter image description here

    1 回复  |  直到 8 年前
        1
  •  0
  •   V0lvox337    8 年前

    “Just”do Bypass及其done=)