473,396 Members | 1,918 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VB.Net SendKeys

I am trying to send:

Ctrl, Shift, TAB and the number 1 contemporaneously.

I am using:

System.Windows.Forms.SendKeys.Send("^+{TAB}1")

or

System.Windows.Forms.SendKeys.Send("^+({TAB}1)")

Neither work. Any clues?

Thanks in advance.

Robert
May 4 '07 #1
4 49176
Killer42
8,435 Expert 8TB
What does "contemporaneously" mean in this context?

According to the doco, your first version should successfully send the Ctrl-Shift-Tab first, followed by "1". Perhaps you need to use SendWait?
May 5 '07 #2
Sorry...

I am trying to send:

Ctrl, Shift, TAB and the number 1 all at the same time.

i.e., Hold down all 4 keys simultaneously.

I have tried:

System.Windows.Forms.SendKeys.Send("(^+{TAB}1)")
System.Windows.Forms.SendKeys.Send("^+({TAB}1)")
System.Windows.Forms.SendKeys.Send("(^+)({TAB}1)")

Nothing seems to work.

Thanks for the reply.

Robert
May 5 '07 #3
SammyB
807 Expert 512MB
Sorry...

I am trying to send:

Ctrl, Shift, TAB and the number 1 all at the same time.

i.e., Hold down all 4 keys simultaneously.
You cannot do that: it is two key strokes. ^+{TAB} ctrl shift tab is one key stroke and 1 is the second key stroke, so "^+{TAB}" & "1" would be the way I would try.

Are you trying to do this: http://www.thescripts.com/forum/thread206970.html?
May 5 '07 #4
SammyB
807 Expert 512MB
You cannot do that
Look at http://msdn2.microsoft.com/en-us/lib...orms.keys.aspx
Notice that some of the enums are listed as "modifier" keys: you can bitwise combine these, so Keys.Control + Keys.Shift + Keys.Tab is a single key, but there is no Tab modifier key.
May 5 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Mr. Bungle | last post by:
I would like to send email automatically via a command button. I have accomplished this just fine through the following code: (Outlook should already be open for reliable results) Private Sub...
2
by: RBohannon | last post by:
I need to create a report in MS Word populated with data from A2K. I have been asked to create the report in Word so that parts of it can be edited as necessary later. The data in the report are...
1
by: George | last post by:
Every time I used the Sendkeys command in my application the "Numlock" turned off and I couldn't use the keypad to hit numbers...... The old code was: Private Sub Command1_Click() SendKeys...
5
by: Wayne Gibson | last post by:
Hi, Was wondering if somebody could help.. I'm trying to use Sendkeys on a Windows forms. I have entered the following command to simulate a CTRL+ALT+1.. ...
1
by: Bryan | last post by:
I am writing a C# Windows App that updates out Excel reports' modules. The app is complete, but has a problem. The only way MS allows you to unprotect the VBA code in Excel is to do it by hand or...
1
by: GrantS | last post by:
I need to use a sendkeys key combination to automate the "accept files" that a remote user wants to send to me via Windows messenger. I am using automation to work with Windows Messenger client in...
6
by: Gary | last post by:
Hi, I am trying to use the "System.Windows.Forms.SendKeys" class for triggering the Ctrl+P key. Syntax: System.Windows.Forms.SendKeys.Send("^(P)") This is not working ..what could be the...
6
by: Michael Maes | last post by:
Hello, I'm invoking successive SendKeys.SendWait("{BACKSPACE}") SendKeys.SendWait("{DELETE}") in a loop. The issue is that it causes a Beep on every Pass. Setting the 'Handled = True' on...
2
by: MLH | last post by:
I have the following code with a SendKeys statement in it. 100 If Me.Dirty Then MsgBox "Form is Dirty!" 120 Dim MyQ As String, MyTitle As String, Response As Boolean 140 MyQ =...
0
by: dtshedd | last post by:
I have a database with hundreds of embedded photos (Microsoft Photo 3.0) Many are larger than 1 MB. I tried Stephen Lebans macro but it did not work probably for the aforementioned reasons Now...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.