T
tellme
I test a software on XP, and I have to type in the username, password
about 100 times a day. So I made a search on the net on how to program
my function keys, it works, but when I put my vb script on my startup
folder, along with my shortcut to start Outlook, things get really
screed up. What is weird is that it worked for several weeks, I didn't
change anything, now when Outlook starts, I display my first, message
over and over again, even after I closed it 50 times (need to kill
outlook), and yesterday, Outlook started a new message, and I saw my
username/password being typed in my message automatically, over and
over again. What is going on?
Here is my script. (not real passwords). I have a shortcut mapping
this script to CTRL + ALT + 1 (F2). I copy the shortcut in my start
folder.
Set WshShell = WScript.CreateObject("WScript.Shell")
if 1 then
WshShell.SendKeys "USER1{ENTER}"
WshShell.SendKeys "PASS1{ENTER}"
end if
if 0 then
WshShell.SendKeys "USER2{ENTER}"
WshShell.SendKeys "PASS2{ENTER}"
end if
about 100 times a day. So I made a search on the net on how to program
my function keys, it works, but when I put my vb script on my startup
folder, along with my shortcut to start Outlook, things get really
screed up. What is weird is that it worked for several weeks, I didn't
change anything, now when Outlook starts, I display my first, message
over and over again, even after I closed it 50 times (need to kill
outlook), and yesterday, Outlook started a new message, and I saw my
username/password being typed in my message automatically, over and
over again. What is going on?
Here is my script. (not real passwords). I have a shortcut mapping
this script to CTRL + ALT + 1 (F2). I copy the shortcut in my start
folder.
Set WshShell = WScript.CreateObject("WScript.Shell")
if 1 then
WshShell.SendKeys "USER1{ENTER}"
WshShell.SendKeys "PASS1{ENTER}"
end if
if 0 then
WshShell.SendKeys "USER2{ENTER}"
WshShell.SendKeys "PASS2{ENTER}"
end if