gmail_generator.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:gmail-generator 作者: unix121 项目源码 文件源码
def open_firefox():

    # Printing basic message
    msg(1,'Opening Firefox...')

    # Location the start button
    _start_button_=pyautogui.locateOnScreen('images/start_button.png')
    _location_=pyautogui.center(_start_button_)

    # Clicking the start button
    if not  pyautogui.click(_location_):
        msg(1,'Opened start menu successfully!')
    else:
        msg(3,'Failed to open start menu!')
        ext()

    time.sleep(1)

    # Search for Firefox in the menu search
    pyautogui.typewrite('firefox')
    pyautogui.typewrite('\n')

    # Print message
    msg(1,'Firefox is now open and running.')


# Function used to locate GMail
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号