473,503 Members | 2,174 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VB.Net SendKeys

2 New Member
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 49186
Killer42
8,435 Recognized Expert Expert
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
Robert Cezar
2 New Member
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 Recognized Expert Contributor
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 Recognized Expert Contributor
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
460
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
5678
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
9518
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
8738
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
7704
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
27164
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
30986
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
3305
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
3497
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
2738
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
7205
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
7093
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
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5022
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3168
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
746
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
399
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.