|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Trouble with sendkey TABHi All,
Simple question yet I can't figure it out. I need to send the TAB key to an external application. It is able to send {ENTER} etc yet no luck with the {TAB}. I have tried the following: My.Computer.Keyboard.SendKeys(Keys.Tab) ' sends a 9 instead? My.Computer.Keyboard.SendKeys("{TAB}") ' does nothing SendKeys.SendWait("{TAB}") ' does nothing Any suggestions?
Show quote
Hide quote
"kru" <krus***@gmail.com> schrieb Yes: Enable Option Strict On. (Please MSFT, make this the default!!!)> Hi All, > > Simple question yet I can't figure it out. > > I need to send the TAB key to an external application. > > It is able to send {ENTER} etc yet no luck with the {TAB}. > > I have tried the following: > > My.Computer.Keyboard.SendKeys(Keys.Tab) ' sends a 9 instead? > My.Computer.Keyboard.SendKeys("{TAB}") ' does nothing > SendKeys.SendWait("{TAB}") ' does nothing > > Any suggestions? Though, doesn't solve the problem. I tried it with Notepad and it works well. Armin
Show quote
Hide quote
On Nov 23, 11:44 pm, "Armin Zingler" <az.nos***@freenet.de> wrote: Hi Armin,> "kru" <krus***@gmail.com> schrieb > > > Hi All, > > > Simple question yet I can't figure it out. > > > I need to send the TAB key to an external application. > > > It is able to send {ENTER} etc yet no luck with the {TAB}. > > > I have tried the following: > > > My.Computer.Keyboard.SendKeys(Keys.Tab) ' sends a 9 instead? > > My.Computer.Keyboard.SendKeys("{TAB}") ' does nothing > > SendKeys.SendWait("{TAB}") ' does nothing > > > Any suggestions? > > Yes: Enable Option Strict On. (Please MSFT, make this the default!!!) > > Though, doesn't solve the problem. I tried it with Notepad and it works > well. > > Armin I tried with Option Strict On and I still have the same problem with not being able to send {TAB} to this particular program. What's interesting to note is that it does work fine for other applications like Notepad. I know another developer has incorporated sending TAB with SendMessage and it works fine. I haven't looked into it too much as I originally hoped not to spend this much time trying to get a TAB to send. If anyone else has any ideas why it may not be tabbing let me know please. The application I'm sending it to is a legacy application which is text only and must be at least 15 years old "kru" <krus***@gmail.com> schrieb: This is not intended to work. 'SendKeys' expects a string.> I need to send the TAB key to an external application. > > It is able to send {ENTER} etc yet no luck with the {TAB}. > > I have tried the following: > > My.Computer.Keyboard.SendKeys(Keys.Tab) ' sends a 9 instead? > My.Computer.Keyboard.SendKeys("{TAB}") ' does nothing According to the documentation, these calls should work.> SendKeys.SendWait("{TAB}") ' does nothing -- M S Herfried K. Wagner M V P <URL:http://dotnet.mvps.org/> V B <URL:http://dotnet.mvps.org/dotnet/faqs/> On Nov 24, 11:58 pm, "Herfried K. Wagner [MVP]" <hirf-spam-me-
h***@gmx.at> wrote: Show quoteHide quote > "kru" <krus***@gmail.com> schrieb: I had a read also and they should work, wonder what the issue could> > > I need to send the TAB key to an external application. > > > It is able to send {ENTER} etc yet no luck with the {TAB}. > > > I have tried the following: > > > My.Computer.Keyboard.SendKeys(Keys.Tab) ' sends a 9 instead? > > This is not intended to work. 'SendKeys' expects a string. > > > My.Computer.Keyboard.SendKeys("{TAB}") ' does nothing > > SendKeys.SendWait("{TAB}") ' does nothing > > According to the documentation, these calls should work. > > -- > M S Herfried K. Wagner > M V P <URL:http://dotnet.mvps.org/> > V B <URL:http://dotnet.mvps.org/dotnet/faqs/> be.. sending ENTER etc all work fine hmmm
Multithreading dilemma
Advice Required - Vb or Not VB (or even .NET) How do you use GetProperty.SetValue with the index parameter? Weird bug How to check a string to see that it is a valid file name vbNewLine or ControlChars.NewLine Parallel Post Acess Building GUIs with VB.Net (from a VB.Net beginner) Passing a ColorPalette as an argument Toolbar text |
|||||||||||||||||||||||