Home > Software engineering >  Please use sendinput this function how to success
Please use sendinput this function how to success

Time:10-06

I used the return value is always 0... Feeling nothing wrong... Code deleted
Would it be possible to master piece sendinput let me draw lessons from the successful use of the code in this thanked

CodePudding user response:

Who is best to clarify your program to analog input, if you can post your program, time for example is not easy to find for you

CodePudding user response:

 
Sub SendInputExample ()
'Get a reference to the Command window.
Dim win As Window=DTE. Windows. The Item (EnvDTE. Constants. VsWindowKindCommandWindow)
Dim the CW As CommandWindow=win. Object

'Input a command into the command window and execute it.
The CW. SendInput (nav "http://www.microsoft.com/china", False)

'Insert some information text into the Command window.
The CW. OutputString (" This URL takes you to the main Microsoft website. ")

'Clear the contents of the Command window.
MsgBox (the "Clearing the Command window...
")The CW. The Clear ()
End Sub

CodePudding user response:

reference 1st floor JiLuoXingRen response:
who is best to clarify your program to analog input, if you can post your program, at that time for example is not easy to find for you

http://www.m5home.com/bbs/thread-3666-1-1.html
Like this,,, my source for useless deleted,,,

CodePudding user response:

refer to the second floor xxxxing response:
 
Sub SendInputExample ()
'Get a reference to the Command window.
Dim win As Window=DTE. Windows. The Item (EnvDTE. Constants. VsWindowKindCommandWindow)
Dim the CW As CommandWindow=win. Object

'Input a command into the command window and execute it.
The CW. SendInput (nav "http://www.microsoft.com/china", False)

'Insert some information text into the Command window.
The CW. OutputString (" This URL takes you to the main Microsoft website. ")

'Clear the contents of the Command window.
MsgBox (the "Clearing the Command window...
")The CW. The Clear ()
End Sub

this feeling and it doesn't matter that sendinput I mean analog keyboard input

CodePudding user response:

I don't know what you want is which SendInput
http://msdn.microsoft.com/zh-cn/library/aa301128 (v=versus 71). Aspx

CodePudding user response:

http://www.autohotkey.com

CodePudding user response:

refer to 6th floor zhao4zhong1 response:
http://www.autohotkey.com
is this?
  • Related