Python script simple implementation open the default browser login for everyone and open QQ method

Source: Internet
Author: User
This article describes the simple implementation of Python script to open the default browser login for everyone and open QQ method. Share to everyone for your reference, as follows:

Open the computer every day the first thing should be to open everyone brush, and then boarded QQ. Each time this is very troublesome, so wrote a script, each double-click to complete the two tasks automatically.

Note: You need to select "Next automatic Login" when everyone is logged in, QQ should also choose automatic login. In fact, feel these settings are not necessary, can be completed with a script, but I compare water, stole the lazy, did not go to check the information.

The code is as follows:

TODO.PYW:

 

A total of only 4 lines, simple, save it as a *.pyw file, each time you double-click to automatically login to my QQ, and the default browser to open my everyone.

I also found, if it is *.py, then double-click the execution will pop up a black window flash, save to *.pyw will not appear this flash black window.

Sometimes laziness is also the driving force of learning.

More readers interested in Python related content can view this site topic: "Introduction to Python and Advanced Classic Tutorial" and "Python file and directory Operations Tips Summary"

I hope this article is helpful for Python program design.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.