| | |
How do I pass user ID and password?
![]() |
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!
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!
•
•
Join Date: Jul 2009
Posts: 2
Reputation:
Solved Threads: 0
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
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
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
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
(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
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
- Hunter S. Thompson
my photography
•
•
•
•
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
And, if you don't have a solution to my question, please don't clutter my thread by posting unnecessary replies!
•
•
Join Date: Jul 2009
Posts: 1
Reputation:
Solved Threads: 0
python Syntax (Toggle Plain Text)
import platform, shutil a = platform.release() # retrieves Windows release version def vistamove(): src = "your.file" # The name and directory of your file dst = "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\Startup" # Where you want it to go shutil.move(src, dst) # Perform the moving action def xpmove(): src = "your.file" dst = "C:\\Documents and Settings\\All Users\\Start Menu\\Programs\\Startup" shutil.move(src, dst) if a == "Vista": vistamove() elif a == "XP": 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.
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?
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.
![]() |
Similar Threads
- User name and password for DirectoryEntry (C#)
- OS10.3: User password not accepted at start-up (OS X)
- Function to grab User/Password combinations from a file (C)
- Lost Windows XP user password (Windows NT / 2000 / XP)
- insert user and password in window of Windows Autenticate Box HTML code (Windows NT / 2000 / XP)
- Noticed a but with Toshiba User password (Windows NT / 2000 / XP)
- need help with user and password (Visual Basic 4 / 5 / 6)
Other Threads in the Python Forum
- Previous Thread: subprocess.call problem
- Next Thread: How to find a file from a directory by Python?
| Thread Tools | Search this Thread |
abrupt alarm ansi anti approximation assignment avogadro backend beginner binary bluetooth calculator character cmd code customdialog cx-freeze data decimals dictionaries dictionary directory dynamic error examples exe file float format function gnu graphics gui halp heads homework http ideas import input java launcher leftmouse line linux list lists loop module mouse number numbers output parsing path pointer port prime programming progressbar projects push py2exe pygame pyglet pyqt python random recursion schedule screensaverloopinactive script scrolledtext sqlite statistics string strings sudokusolver sum table terminal text thread threading time tlapse tricks tuple tutorial twoup ubuntu unicode urllib urllib2 variable ventrilo wikipedia write wxpython xlib





