Hello,
I'm trying to create a program that alt tabs and then outputs some keystrokes.
I have tried using:
When i run it, it will Press alt and then Tab, but it won't release Alt, so it doesn't actually perform the Alt+Tab Correctly.Code:System.Windows.Forms.SendKeys.Send("%{TAB}")
I have also tried opening a Notepad document and then running this code.
This didn't output "Hello" into the notepad.Code:System.Windows.Forms.SendKeys.Send("Hello")
I have also tried using System.windows.forms.sendkeys.sendwait but that hasn't worked either.
Is there an easy way to pause the application? might be usable instead of sending alt+tab.
This code is located in the form load section.
|
\/
Thanks.Code:Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load End Sub
Appreciate any help given.




Reply With Quote