Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I write extensions for a program. The program has a username/password dialogue box. There is no "remember my password" option. The task of entering this information is quite cumbersome and breaks my development workflow.

Is there a tool that will automate this process?

Ideally, I would like the tool to launch the program > type in my username and password > click Ok to login.

A subset of this functionality would be better than nothing. I have visual studio 2010.

The program is a custom medical application with very little documentation.

share|improve this question
up vote 2 down vote accepted

AutoHotKey will be perfect for this. I actually already use it for something similar.

Your script will look something like this:

;This macro will run when you press Windows + a
Run, [program executable]
;You may need to uncomment this pause and set it if your program doesn't start instantly.
;pause [number in milliseconds]
Send [username]{tab}[password]{enter}

Note that this may be different if your dialog box is strange, I've set this up for the standard username/password dialog.

share|improve this answer
Great tool. My script is similar. I chose WinWaitActive over pause to wait for window to become active. – P.Brian.Mackey Apr 17 '12 at 14:53
@P.Brian.Mackey Ah, didn't know about that one. The only thing I'd be worried about would be if the program didn't immediately open the password dialog after becoming active. – SaintWacko Apr 17 '12 at 22:37
I havent had any issues even with a slow UI load. – P.Brian.Mackey Apr 17 '12 at 23:14

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.