hidden hit counter
Welcome to WindowsForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Password shortcut key

 
   Windows XP (Home) -> Customize RSS
Next:  How to setup default folder settiings?  
Author Message
cgruenspan

External


Since: Jan 23, 2005
Posts: 1



(Msg. 1) Posted: Sun Jan 23, 2005 4:16 pm
Post subject: Password shortcut key
Archived from groups: microsoft>public>windowsxp>customize (more info?)

Can a key be customized to input a password in one stroke?

 >> Stay informed about: Password shortcut key 
Back to top
Login to vote
Anando MS-MVP

External


Since: Feb 27, 2004
Posts: 616



(Msg. 2) Posted: Sun Jan 23, 2005 6:35 pm
Post subject: Re: Password shortcut key [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hi Charles,

This is not possible natively under Windows XP, but you might want to search
for some third-party software that can accomplish this. A good place would
be :

Download. com
<a rel="nofollow" style='text-decoration: none;' href="http://www.download.com" target="_blank">http://www.download.com</a>

--

Anando
Microsoft MVP- Windows Shell/User
<a rel="nofollow" style='text-decoration: none;' href="http://www.microsoft.com/mvp" target="_blank">http://www.microsoft.com/mvp</a>
<a rel="nofollow" style='text-decoration: none;' href="http://www.mvps.org" target="_blank">http://www.mvps.org</a>

Folder customizations
<a rel="nofollow" style='text-decoration: none;' href="http://newdelhi.sancharnet.in/minku" target="_blank">http://newdelhi.sancharnet.in/minku</a>

Protect your PC!
<a rel="nofollow" style='text-decoration: none;' href="http://www.microsoft.com/protect" target="_blank">http://www.microsoft.com/protect</a>


"Charles Gruenspan" wrote in message

 > Can a key be customized to input a password in one stroke?
 >

 >> Stay informed about: Password shortcut key 
Back to top
Login to vote
user4352

External


Since: Jan 08, 2005
Posts: 1889



(Msg. 3) Posted: Sun Jan 23, 2005 6:35 pm
Post subject: Re: Password shortcut key [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Paste the two lines into a text file and name it something.vbs. Then set a shortcut to the script and set a hotkey (F4) for the shortcut (see help) .

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^e"

If you need to enter " use (say in - I said "that's alright")

WshShell.SendKeys "I said " & chr(34) & "that's alright" & chr(34)

& joins strings together and chr(34) is the " character. Strings using letters MUST be enclosed in quotes so we use chr(34) to replace " in the string we wish to send.

WshShell.SendKeys "%{TAB}^c%{TAB}^v"
[above sends Alt + Tab, Ctrl + C, Alt + Tab, then Ctrl + V]

Then set a shortcut to the scripts and set a hotkey for the shortcut (see help)


Windows Script Host

SendKeys Method
See Also
WshShell Object | Run Method

Sends one or more keystrokes to the active window (as if typed on the keyboard).

object.SendKeys(string)
Arguments
object
WshShell object.
string
String value indicating the keystroke(s) you want to send.
Remarks
Use the SendKeys method to send keystrokes to applications that have no automation interface. Most keyboard characters are represented by a single keystroke. Some keyboard characters are made up of combinations of keystrokes (CTRL+SHIFT+HOME, for example). To send a single keyboard character, send the character itself as the string argument. For example, to send the letter x, send the string argument "x".

Note To send a space, send the string " ".
You can use SendKeys to send more than one keystroke at a time. To do this, create a compound string argument that represents a sequence of keystrokes by appending each keystroke in the sequence to the one before it. For example, to send the keystrokes a, b, and c, you would send the string argument "abc". The SendKeys method uses some characters as modifiers of characters (instead of using their face-values). This set of special characters consists of parentheses, brackets, braces, and the:

a.. plus sign "+",
b.. caret "^",
c.. percent sign "%",
d.. and tilde "~"
Send these characters by enclosing them within braces "{}". For example, to send the plus sign, send the string argument "{+}". Brackets "[ ]" have no special meaning when used with SendKeys, but you must enclose them within braces to accommodate applications that do give them a special meaning (for dynamic data exchange (DDE) for example).

a.. To send bracket characters, send the string argument "{[}" for the left bracket and "{]}" for the right one.
b.. To send brace characters, send the string argument "{{}" for the left brace and "{}}" for the right one.
Some keystrokes do not generate characters (such as ENTER and TAB). Some keystrokes represent actions (such as BACKSPACE and BREAK). To send these kinds of keystrokes, send the arguments shown in the following table:

Key Argument
BACKSPACE {BACKSPACE}, {BS}, or {BKSP}
BREAK {BREAK}
CAPS LOCK {CAPSLOCK}
DEL or DELETE {DELETE} or {DEL}
DOWN ARROW {DOWN}
END {END}
ENTER {ENTER} or ~
ESC {ESC}
HELP {HELP}
HOME {HOME}
INS or INSERT {INSERT} or {INS}
LEFT ARROW {LEFT}
NUM LOCK {NUMLOCK}
PAGE DOWN {PGDN}
PAGE UP {PGUP}
PRINT SCREEN {PRTSC}
RIGHT ARROW {RIGHT}
SCROLL LOCK {SCROLLLOCK}
TAB {TAB}
UP ARROW {UP}
F1 {F1}
F2 {F2}
F3 {F3}
F4 {F4}
F5 {F5}
F6 {F6}
F7 {F7}
F8 {F8}
F9 {F9}
F10 {F10}
F11 {F11}
F12 {F12}
F13 {F13}
F14 {F14}
F15 {F15}
F16 {F16}

To send keyboard characters that are comprised of a regular keystroke in combination with a SHIFT, CTRL, or ALT, create a compound string argument that represents the keystroke combination. You do this by preceding the regular keystroke with one or more of the following special characters:

Key Special Character
SHIFT +
CTRL ^
ALT %

Note When used this way, these special characters are not enclosed within a set of braces.
To specify that a combination of SHIFT, CTRL, and ALT should be held down while several other keys are pressed, create a compound string argument with the modified keystrokes enclosed in parentheses. For example, to send the keystroke combination that specifies that the SHIFT key is held down while:

a.. e and c are pressed, send the string argument "+(ec)".
b.. e is pressed, followed by a lone c (with no SHIFT), send the string argument "+ec".
You can use the SendKeys method to send a pattern of keystrokes that consists of a single keystroke pressed several times in a row. To do this, create a compound string argument that specifies the keystroke you want to repeat, followed by the number of times you want it repeated. You do this using a compound string argument of the form {keystroke number}. For example, to send the letter "x" ten times, you would send the string argument "{x 10}". Be sure to include a space between keystroke and number.

Note The only keystroke pattern you can send is the kind that is comprised of a single keystroke pressed several times. For example, you can send "x" ten times, but you cannot do the same for "Ctrl+x".
Note You cannot send the PRINT SCREEN key {PRTSC} to an application.
Example
The following example demonstrates the use of a single .wsf file for two jobs in different script languages (VBScript and JScript). Each job runs the Windows calculator and sends it keystrokes to execute a simple calculation.

<package>
<job id="vbs">
<script language="VBScript">
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "calc"
WScript.Sleep 100
WshShell.AppActivate "Calculator"
WScript.Sleep 100
WshShell.SendKeys "1{+}"
WScript.Sleep 500
WshShell.SendKeys "2"
WScript.Sleep 500
WshShell.SendKeys "~"
WScript.Sleep 500
WshShell.SendKeys "*3"
WScript.Sleep 500
WshShell.SendKeys "~"
WScript.Sleep 2500
</script>
</job>

<job id="js">
<script language="JScript">
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.Run("calc");
WScript.Sleep(100);
WshShell.AppActivate("Calculator");
WScript.Sleep(100);
WshShell.SendKeys ("1{+}");
WScript.Sleep(500);
WshShell.SendKeys("2");
WScript.Sleep(500);
WshShell.SendKeys("~");
WScript.Sleep(500);
WshShell.SendKeys("*3");
WScript.Sleep(500);
WshShell.SendKeys("~");
WScript.Sleep(2500);
</script>
</job>
</package>
See Also
WshShell Object | Run Method



--
----------------------------------------------------------
<a rel="nofollow" style='text-decoration: none;' href="http://www.uscricket.com" target="_blank">http://www.uscricket.com</a>
"Charles Gruenspan" wrote in message
 > Can a key be customized to input a password in one stroke?
 >
 >
 >> Stay informed about: Password shortcut key 
Back to top
Login to vote
user4229

External


Since: Jan 05, 2005
Posts: 169



(Msg. 4) Posted: Sun Jan 23, 2005 10:26 pm
Post subject: Re: Password shortcut key [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

May work well once a "user" has logged on, but until a "user" has logged on,
no profile is available to load "function key" shortcuts to. The OP may be
able to modify "default" profile if they are trying to do this to log into
windows, but not all of the "default" profile is loaded when prompting for
userid/password at windows logon.

--
Star Fleet Admiral Q @ your service!


"David Candy" <.> wrote in message
news:#0#wt1ZAFHA.2552@TK2MSFTNGP09.phx.gbl...
Paste the two lines into a text file and name it something.vbs. Then set a
shortcut to the script and set a hotkey (F4) for the shortcut (see help) .

set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^e"

If you need to enter " use (say in - I said "that's alright")

WshShell.SendKeys "I said " & chr(34) & "that's alright" & chr(34)

& joins strings together and chr(34) is the " character. Strings using
letters MUST be enclosed in quotes so we use chr(34) to replace " in the
string we wish to send.

WshShell.SendKeys "%{TAB}^c%{TAB}^v"
[above sends Alt + Tab, Ctrl + C, Alt + Tab, then Ctrl + V]

Then set a shortcut to the scripts and set a hotkey for the shortcut (see
help)


Windows Script Host

SendKeys Method
See Also
WshShell Object | Run Method

Sends one or more keystrokes to the active window (as if typed on the
keyboard).

object.SendKeys(string)
Arguments
object
WshShell object.
string
String value indicating the keystroke(s) you want to send.
Remarks
Use the SendKeys method to send keystrokes to applications that have no
automation interface. Most keyboard characters are represented by a single
keystroke. Some keyboard characters are made up of combinations of
keystrokes (CTRL+SHIFT+HOME, for example). To send a single keyboard
character, send the character itself as the string argument. For example, to
send the letter x, send the string argument "x".

Note To send a space, send the string " ".
You can use SendKeys to send more than one keystroke at a time. To do this,
create a compound string argument that represents a sequence of keystrokes
by appending each keystroke in the sequence to the one before it. For
example, to send the keystrokes a, b, and c, you would send the string
argument "abc". The SendKeys method uses some characters as modifiers of
characters (instead of using their face-values). This set of special
characters consists of parentheses, brackets, braces, and the:

a.. plus sign "+",
b.. caret "^",
c.. percent sign "%",
d.. and tilde "~"
Send these characters by enclosing them within braces "{}". For example, to
send the plus sign, send the string argument "{+}". Brackets "[ ]" have no
special meaning when used with SendKeys, but you must enclose them within
braces to accommodate applications that do give them a special meaning (for
dynamic data exchange (DDE) for example).

a.. To send bracket characters, send the string argument "{[}" for the
left bracket and "{]}" for the right one.
b.. To send brace characters, send the string argument "{{}" for the left
brace and "{}}" for the right one.
Some keystrokes do not generate characters (such as ENTER and TAB). Some
keystrokes represent actions (such as BACKSPACE and BREAK). To send these
kinds of keystrokes, send the arguments shown in the following table:

Key Argument
BACKSPACE {BACKSPACE}, {BS}, or {BKSP}
BREAK {BREAK}
CAPS LOCK {CAPSLOCK}
DEL or DELETE {DELETE} or {DEL}
DOWN ARROW {DOWN}
END {END}
ENTER {ENTER} or ~
ESC {ESC}
HELP {HELP}
HOME {HOME}
INS or INSERT {INSERT} or {INS}
LEFT ARROW {LEFT}
NUM LOCK {NUMLOCK}
PAGE DOWN {PGDN}
PAGE UP {PGUP}
PRINT SCREEN {PRTSC}
RIGHT ARROW {RIGHT}
SCROLL LOCK {SCROLLLOCK}
TAB {TAB}
UP ARROW {UP}
F1 {F1}
F2 {F2}
F3 {F3}
F4 {F4}
F5 {F5}
F6 {F6}
F7 {F7}
F8 {F8}
F9 {F9}
F10 {F10}
F11 {F11}
F12 {F12}
F13 {F13}
F14 {F14}
F15 {F15}
F16 {F16}

To send keyboard characters that are comprised of a regular keystroke in
combination with a SHIFT, CTRL, or ALT, create a compound string argument
that represents the keystroke combination. You do this by preceding the
regular keystroke with one or more of the following special characters:

Key Special Character
SHIFT +
CTRL ^
ALT %

Note When used this way, these special characters are not enclosed
within a set of braces.
To specify that a combination of SHIFT, CTRL, and ALT should be held down
while several other keys are pressed, create a compound string argument with
the modified keystrokes enclosed in parentheses. For example, to send the
keystroke combination that specifies that the SHIFT key is held down while:

a.. e and c are pressed, send the string argument "+(ec)".
b.. e is pressed, followed by a lone c (with no SHIFT), send the string
argument "+ec".
You can use the SendKeys method to send a pattern of keystrokes that
consists of a single keystroke pressed several times in a row. To do this,
create a compound string argument that specifies the keystroke you want to
repeat, followed by the number of times you want it repeated. You do this
using a compound string argument of the form {keystroke number}. For
example, to send the letter "x" ten times, you would send the string
argument "{x 10}". Be sure to include a space between keystroke and number.

Note The only keystroke pattern you can send is the kind that is
comprised of a single keystroke pressed several times. For example, you can
send "x" ten times, but you cannot do the same for "Ctrl+x".
Note You cannot send the PRINT SCREEN key {PRTSC} to an application.
Example
The following example demonstrates the use of a single .wsf file for two
jobs in different script languages (VBScript and JScript). Each job runs the
Windows calculator and sends it keystrokes to execute a simple calculation.

<package>
<job id="vbs">
<script language="VBScript">
set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "calc"
WScript.Sleep 100
WshShell.AppActivate "Calculator"
WScript.Sleep 100
WshShell.SendKeys "1{+}"
WScript.Sleep 500
WshShell.SendKeys "2"
WScript.Sleep 500
WshShell.SendKeys "~"
WScript.Sleep 500
WshShell.SendKeys "*3"
WScript.Sleep 500
WshShell.SendKeys "~"
WScript.Sleep 2500
</script>
</job>

<job id="js">
<script language="JScript">
var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.Run("calc");
WScript.Sleep(100);
WshShell.AppActivate("Calculator");
WScript.Sleep(100);
WshShell.SendKeys ("1{+}");
WScript.Sleep(500);
WshShell.SendKeys("2");
WScript.Sleep(500);
WshShell.SendKeys("~");
WScript.Sleep(500);
WshShell.SendKeys("*3");
WScript.Sleep(500);
WshShell.SendKeys("~");
WScript.Sleep(2500);
</script>
</job>
</package>
See Also
WshShell Object | Run Method



--
----------------------------------------------------------
<a rel="nofollow" style='text-decoration: none;' href="http://www.uscricket.com" target="_blank">http://www.uscricket.com</a>
"Charles Gruenspan" wrote in message

 > Can a key be customized to input a password in one stroke?
 >
 >
 >> Stay informed about: Password shortcut key 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Removing A Shortcut Key - I created a "Shortcut Key" to an icon (Ctrl + Alt + Q) to launch an application. I now upgraded the application to the 2005 version. I should of deleted the shortcut key first but I did not. Now I can't create the same Shortcut Key to the ne...

Need a floating shortcut bar in XP - How do i make a floating shortcut bar in XP? I made a new tool bar but was not able to drag it off the task bar to another position on the screen.

Shortcut Key for Escape - Is is possible to have Ctl-] as a shortcut key for the Escape key? I was used to that in Unix systems. Customizing Word with Ctl-] for Cancel failed when it came to dialog boxes. I recently noted while in Word that Ctl-Alt-S brings up an HP machine...

Lost Shortcut keys - I'll spell out the scenario. I had a set of shortcuts on my desktop, each with a letter assigned as shortcut key i.e, Ctl-Alt-x, where x is a letter. These all worked fine, but then I decided, in order to save desktop space, to move them all into a..

URL's from Desktop Shortcut - My Shortcuts to URL's have been working fine for many months but starting today when I click on a Shortcut I get the following message: "Windows cannot find (the URL) make sure you typed the name correctly and then try again. etc" Immediately a...
   Windows XP (Home) -> Customize All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows XP
 Win 2000/NT/98/ME
 Windows Vista!


[ Contact us | Terms of Service/Privacy Policy ]