我用了回傳值一直是0...感覺也沒什么地方出錯...代碼刪了
請問高手能否給段sendinput成功使用的代碼 讓我借鑒一下 在此謝過
uj5u.com熱心網友回復:
最好說清楚你的程式是對誰模擬輸入,可以的話貼出你的程式。一時間要找例子也不容易找給你uj5u.com熱心網友回復:
Sub SendInputExample()
' Get a reference to the Command window.
Dim win As Window = DTE.Windows.Item(EnvDTE.Constants.vsWindowKindCommandWindow)
Dim CW As CommandWindow = win.Object
' Input a command into the Command window and execute it.
CW.SendInput("nav http://www.microsoft.com/china", False)
' Insert some information text into the Command window.
CW.OutputString("This URL takes you to the main Microsoft website.")
' Clear the contents of the Command window.
MsgBox("Clearing the Command window...")
CW.Clear()
End Sub
uj5u.com熱心網友回復:
http://www.m5home.com/bbs/thread-3666-1-1.html
類似于這樣的。。。我的原始碼因為沒用 刪了。。。
uj5u.com熱心網友回復:
這個感覺和sendinput沒什么關系 我的意思是模擬鍵盤輸入
uj5u.com熱心網友回復:
不知道你想要的是哪個SendInput
http://msdn.microsoft.com/zh-cn/library/aa301128(v=vs.71).aspx
uj5u.com熱心網友回復:
http://www.autohotkey.comuj5u.com熱心網友回復:
這是?轉載請註明出處,本文鏈接:https://www.uj5u.com/gongcheng/113879.html
標籤:VB基礎類
