現在のウィンドウddkに含まれているdsf(デバイスシミュレーションフレームワーク)を使用して、複数のエミュレートされたマウスに入力を送信したいと考えています。私のコードは、問題の下にあるデバイスマネージャは、デバイスが追加しまったが、私のプログラム(マウスのいたずら - また、Microsoftが)recogizesされるそのはずのようなaddtionalのポインタを作成doesntの:下のdsfコードはどのように動作するのですか?
WriteLine "Create first input report to send to the consumer control"
Dim strMessage
strMessage = "Press Enter key to stop looping"
WriteLine strMessage
Do While NOT WScript.StdIn.AtEndOfLine
Dim InputReport1(4)
InputReport1(0) = CByte(0)
InputReport1(1) = CByte(100)
InputReport1(2) = CByte(100)
InputReport1(3) = CByte(0)
InputReport1(4) = CByte(0)
'PromptAndWaitForEnterKey "Queue input reports for processing"
GenericHIDDev.QueueInputReport(InputReport1), 10
'PromptAndWaitForEnterKey "Wait for the device to finish enumerating. Press enter to start processing input reports."
GenericHIDDev.StartProcessing
'WriteLine "You may send additional input reports at this time..."
'PromptAndWaitForEnterKey "Press enter at any time to stop processing input reports and start cleanup."
GenericHIDDev.StopProcessing
Input = WScript.StdIn.Read(1)
Loop
注:これは私が変更部分だけですWindows ddk(デバイスドライバキット)のdsfに含まれているTestGenericHidサンプルのサンプルです。 Windowsのインストール後ddkはc:\ Program Files \ dsf \ GenericHidまたはvbscriptファイルにアクセスするのと同様のものに行きます。
何が起こっているのかを完全に理解し、これに正しく答えるには、mousmischiefとwindows ddkが必要です。すべてのサンプルがvbscriptにあり、vb.netでやり直すことはできないと心配しないでください。しかし、vbscriptが動作するまで、時間の変換を無駄にしたくありません。