ctrl+shift

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hsn
    New Member
    • Sep 2007
    • 237

    ctrl+shift

    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
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    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

    Comment

    • hsn
      New Member
      • Sep 2007
      • 237

      #3
      Originally posted by JosAH
      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

      Comment

      • JosAH
        Recognized Expert MVP
        • Mar 2007
        • 11453

        #4
        Originally posted by hsn
        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

        Comment

        • hsn
          New Member
          • Sep 2007
          • 237

          #5
          Originally posted by JosAH
          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

          Comment

          Working...