想要將keybd_event在PDA上使用 |
尚未結案
|
bio
一般會員 發表:42 回覆:36 積分:20 註冊:2003-03-05 發送簡訊給我 |
是這樣的,我在PC上使用VB.NET讓keybd_event可以在任一個有游標顯示的地方
設定每10秒自動填入一個a字元,在PC上是可以work的
VB.Net內容如下:
Public Class Form1 Inherits System.Windows.Forms.Form Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long) ' Const KEYEVENTF_KEYUP = &H2 Const VK_LWIN = &H5B #Region " Windows Form 設計工具產生的程式碼 " Public Sub New() MyBase.New() '此為 Windows Form 設計工具所需的呼叫。 InitializeComponent() '在 InitializeComponent() 呼叫之後加入所有的初始設定 End Sub 'Form 覆寫 Dispose 以清除元件清單。 Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean) If disposing Then If Not (components Is Nothing) Then components.Dispose() End If End If MyBase.Dispose(disposing) End Sub '為 Windows Form 設計工具的必要項 Private components As System.ComponentModel.IContainer '注意: 以下為 Windows Form 設計工具所需的程序 '您可以使用 Windows Form 設計工具進行修改。 '請勿使用程式碼編輯器來修改這些程序。 Friend WithEvents Button1 As System.Windows.Forms.Button Friend WithEvents Timer1 As System.Windows.Forms.Timer |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |