hsn 237
New Member
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
4 1913 JosAH 11,448
Recognized Expert MVP
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
hsn 237
New Member
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+ent er 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
JosAH 11,448
Recognized Expert MVP
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+ent er 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
hsn 237
New Member
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
Sign in to post your reply or Sign up for a free account.
Similar topics |
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 exit Python, rather than
giving the ridiculous msg
Use Ctrl-D (i.e. EOF) to exit.
The additional reason is that God intended Ctrl-D to be...
|
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 between routines, and lets me get back
to where I was.
--
|
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?
Tim
|
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 to change the
caption property of a form, I would press CTRL + SHIFT + P and i would
immediately go to the caption property.
Is there such a short...
|
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
| |
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 source safe The .. it compile
everything each Time
I press Ctrl Shift B
|
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 same time.
I'm ONLY supporting IE because that's what the client only want's
supported. I have been reading through the forums but nothing about...
|
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 + Space and that does work, but Ctrl + Space does not.
I removed Ctrl + Space thinking re-adding it might help, but now the
|
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 = true;
}
private void Form1_KeyDown(object sender, KeyEventArgs e)
{
label1.Text = e.Control.ToString() + "|" + e.Shift.ToString() +
"|" +...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |