How do I pass user ID and password?

Reply

Join Date: May 2009
Posts: 229
Reputation: sravan953 has a little shameless behaviour in the past 
Solved Threads: 27
sravan953's Avatar
sravan953 sravan953 is offline Offline
Posting Whiz in Training

How do I pass user ID and password?

 
0
  #1
Jul 5th, 2009
Hey guys,

I want to make a Python program which I will use to automate certain tasks like opening TweetDeck and Skype everytime I boot up my laptop.

The problem is, I know how to open the programs(using subprocess.call), but I don't know how to pass the user ID and password. Can anybody help me?

Thanks a lot!
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 2
Reputation: asim.mittal is an unknown quantity at this point 
Solved Threads: 0
asim.mittal asim.mittal is offline Offline
Newbie Poster

Re: How do I pass user ID and password?

 
0
  #2
Jul 5th, 2009
A simple thing to do would be to have skype remember your login information and connect every time it starts up. You could then launch it from whereever you chose - startup (msconfig) or using ur own script.

If you dont want to do that but want to know how to actually pass the username and password i suggest you try exploring the command line options for skype. As far as i recall, there aren't any options to pass login info. Try looking up a book (try flazx.com) called "skype hacks"

Another approach could be the use of win32com libraries in python. These libraries provide a way for programs to interact with GUI widgets in other programs that are running (eg. you could actually write a program to click the ok button of some dialog box on the screen). I don't know how these libraries will work with the widgets skype uses.

I have just one question.. why would u wanna go through all that trouble for a simple task like this
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 229
Reputation: sravan953 has a little shameless behaviour in the past 
Solved Threads: 27
sravan953's Avatar
sravan953 sravan953 is offline Offline
Posting Whiz in Training

Re: How do I pass user ID and password?

 
0
  #3
Jul 5th, 2009
I just thought I would start off with the basics, and then implement some where else, like in make programs for my friends which starts Thunderbird on boot up, or TweetDeck on boot up, or heck, both!

And thanks for the link and mentioning Win32 module, I will surely look into it.
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 229
Reputation: sravan953 has a little shameless behaviour in the past 
Solved Threads: 27
sravan953's Avatar
sravan953 sravan953 is offline Offline
Posting Whiz in Training

Re: How do I pass user ID and password?

 
0
  #4
Jul 6th, 2009
Also, how can I make a program to open on startup(any other way than dragging and dropping the program in the Startup group in the Start menu?)
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 229
Reputation: sravan953 has a little shameless behaviour in the past 
Solved Threads: 27
sravan953's Avatar
sravan953 sravan953 is offline Offline
Posting Whiz in Training

Re: How do I pass user ID and password?

 
0
  #5
Jul 9th, 2009
Anybody? Please reply! Please please!
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 791
Reputation: siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of siddhant3s has much to be proud of 
Solved Threads: 134
siddhant3s's Avatar
siddhant3s siddhant3s is offline Offline
Master Poster

Re: How do I pass user ID and password?

 
0
  #6
Jul 10th, 2009
Don't keep bumping on your thread.
No one is free enough to help you if you don't show effort.
I have see many thread started by you stating "How do I do this" without any efforts.

Learn to ask question the smart way : Read this page http://www.catb.org/~esr/faqs/smart-questions.html

Also, read the guidelines mentioned on this thread http://www.daniweb.com/forums/thread202628.html
Siddhant Sanyam
(Not posting much)
Migrate to Standard C++ :When to tell your C++ Code is Non-Standard.
Please Read before posting: How To Ask Questions The Smart Way
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 489
Reputation: shadwickman will become famous soon enough shadwickman will become famous soon enough 
Solved Threads: 76
shadwickman's Avatar
shadwickman shadwickman is offline Offline
Posting Pro in Training

Re: How do I pass user ID and password?

 
0
  #7
Jul 10th, 2009
Try looking into MS Windows' services. You could set your program as a service and then have it run automatically on start-up. You may need to look into running Python scripts as services; here's an example.
"Two good old boys in a fire-apple red convertible. Stoned. Ripped. Twisted. Good people."
- Hunter S. Thompson

my photography
Reply With Quote Quick reply to this message  
Join Date: May 2009
Posts: 229
Reputation: sravan953 has a little shameless behaviour in the past 
Solved Threads: 27
sravan953's Avatar
sravan953 sravan953 is offline Offline
Posting Whiz in Training

Re: How do I pass user ID and password?

 
0
  #8
Jul 11th, 2009
Originally Posted by siddhant3s View Post
Don't keep bumping on your thread.
No one is free enough to help you if you don't show effort.
I have see many thread started by you stating "How do I do this" without any efforts.

Learn to ask question the smart way : Read this page http://www.catb.org/~esr/faqs/smart-questions.html

Also, read the guidelines mentioned on this thread http://www.daniweb.com/forums/thread202628.html
Since you are a very experienced poster, I am showing some respect.

And, if you don't have a solution to my question, please don't clutter my thread by posting unnecessary replies!
Reply With Quote Quick reply to this message  
Join Date: Jul 2009
Posts: 1
Reputation: BatteredT is an unknown quantity at this point 
Solved Threads: 0
BatteredT BatteredT is offline Offline
Newbie Poster

Re: How do I pass user ID and password?

 
0
  #9
Jul 13th, 2009
  1. import platform, shutil
  2.  
  3. a = platform.release() # retrieves Windows release version
  4.  
  5. def vistamove():
  6. src = "your.file" # The name and directory of your file
  7. dst = "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup" # Where you want it to go
  8. shutil.move(src, dst) # Perform the moving action
  9.  
  10. def xpmove():
  11. src = "your.file"
  12. dst = "C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup"
  13. shutil.move(src, dst)
  14.  
  15. if a == "Vista":
  16. vistamove()
  17. elif a == "XP":
  18. xpmove()

This code checks the Windows release (XP or Vista only), and then copies the file to the All Users startup. If you want it for only specific users, just change it as necessary. Hope this helped.

This is done because the startup folder is placed in different areas on each OS.
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 106
Reputation: zachabesh is an unknown quantity at this point 
Solved Threads: 16
zachabesh's Avatar
zachabesh zachabesh is offline Offline
Junior Poster

Re: How do I pass user ID and password?

 
0
  #10
Jul 14th, 2009
Dude, you're asking a complicated question. (Also saw that you mentioned threading in another thread)

Not to discourage you, but taking on large projects that you don't fully understand usually end badly, because the code you spend so much time on turns out to be badly written and impossible to maintain or make changes. My advice: Plot out the bigger project, figure out the concepts you have to learn and write separate projects around those concepts. Then you can apply what you've learned towards the larger project.

Also: Begging for replies and asking people not to post is a bit contradictory, no?
Last edited by zachabesh; Jul 14th, 2009 at 9:32 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC