473,395 Members | 1,941 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,395 software developers and data experts.

ctrl+shift

hsn
237 100+
hello everyone.
i want to add to a string the windows ctrl button and the shift button.
what i mean is, i want to store a string which has, lets say "cmd", i want to add to this string ctrl and shift, so it could be "cmd+ctrl+shift". this will help me to run the admin cmd in the windows vista OS "HOPEFULLY".

best regards
hsn
Nov 9 '08 #1
4 1902
JosAH
11,448 Expert 8TB
The Ctrl and Shift keys aren't ordinary keys that result in a key code; they only
alter the key code of other keys that are pressed simultaneously with these keys.
You can't do what you want; can you elaborate on your problem? Maybe there's
another way to solve it.

kind regards,

Jos
Nov 9 '08 #2
hsn
237 100+
The Ctrl and Shift keys aren't ordinary keys that result in a key code; they only
alter the key code of other keys that are pressed simultaneously with these keys.
You can't do what you want; can you elaborate on your problem? Maybe there's
another way to solve it.

kind regards,

Jos
what i want to do is to run the admin cmd in my windows vista os. when i click on the start button, enter cmd, and press enter i will get the normal cmd for a normal user. but if i want to run the admin cmd there is too many ways which are not working with me, but one of these ways is to type in the run cmd +ctrl+shift+enter which will run the cmd as admin.
that is why i want to include the ctrl and the shift in the string.

if you have any ideas i would be greatful.

best regards
hsn
Nov 9 '08 #3
JosAH
11,448 Expert 8TB
what i want to do is to run the admin cmd in my windows vista os. when i click on the start button, enter cmd, and press enter i will get the normal cmd for a normal user. but if i want to run the admin cmd there is too many ways which are not working with me, but one of these ways is to type in the run cmd +ctrl+shift+enter which will run the cmd as admin.
that is why i want to include the ctrl and the shift in the string.

if you have any ideas i would be greatful.

best regards
hsn
Pressing Ctrl and Shift are user gestures; you can't capture a user gesture in
a String. What you want can not be done.

kind regards,

Jos
Nov 9 '08 #4
hsn
237 100+
Pressing Ctrl and Shift are user gestures; you can't capture a user gesture in
a String. What you want can not be done.

kind regards,

Jos
thanks for your help
Nov 9 '08 #5

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

Similar topics

8
by: Mike Maxwell | last post by:
<vent> I see there has been traffic over the years on this gripe, so just let me vent my frustration, and add another reason why 'exit' (or possibly exit() or quit() or halt() or some such) should...
2
by: Chris Mullins | last post by:
I've seen a bunch of people post that they had troubles with this, but never saw anyone post a working solution. Shift F2 = F12 Ctrl Shift F2 = Ctrl - This seems to work well, as it jumps...
10
by: Tim Frawley | last post by:
I am attempting to detect a Shift+Tab in the KeyPress event for back navigation on a control that doesn't support this method. Does anyone have any ideas how to compare e.KeyChar to a ShiftTab? ...
1
by: Bill Johnson | last post by:
In vb6 I could quickly go to any given property while in the properties window by holding the CTRL + SHIFT keys down plus the first letter of the property I want to edit. For example, if I wanted...
6
by: Morten Dahl | last post by:
The shortcuts won't work in my application. CTRL+Z CTRL+C CTRL+Y CTRL+X etc... In stead I must use the SHIFT key: CTRL+SHIFT+Z
7
by: yonatnl | last post by:
why In every time I pressing Ctrl + Shift + B, Visual Studio Compiles The solution? I Did not changed a thing in the Code. It was Ok 2 days a Go... and After getting Latest Version from the...
4
by: t3projects | last post by:
I'm working on controlling a windows media player I'm trying to figure out how to control it with keys like CTRL+SHIFT+P to play it. The problem is that I don't know how to capture all three at the...
11
by: Bookham Measures | last post by:
Hello As above, my Ctrl + Spacebar for intellisense is not working in VI 6.0. I have checked keyboard assignments and Ctrl + Space is listed for Edit -> CompleteWord. I added Ctrl + Shift +...
0
by: Yusuf Incekara | last post by:
I 've assigned a shortcut key for CTRL+SHIFT+1 key in my application. I can handle these keys in Form's keydown event. private void Form1_Load(object sender, EventArgs e) { this.KeyPreview =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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:
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
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
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.