How are these things done!? (Windows)

by Zack (no login)

-How do you make it seem like the keyboard is being pressed for things outside the program, like ctrl-c or alt-f4?
-How do you obtain a list of programs names that have windows open?
-How do you obtain a list of all the programs installed on the system?
-How do you get the variable of the name of the program of the window you are currently on?
-How do you switch between windows? Like switch to any of the windows, not just Alt-Tab. I guess changing the variable from the question above this one.
-How do you get the address ('C:\Documents and Settings\etc') of the thing or things you have highlighted in a Windows Explorer window?

I don't know how hard these questions are so sorry if I am asking too much.