久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    1. <tfoot id='OmseA'></tfoot>

      <small id='OmseA'></small><noframes id='OmseA'>

        <bdo id='OmseA'></bdo><ul id='OmseA'></ul>
      <i id='OmseA'><tr id='OmseA'><dt id='OmseA'><q id='OmseA'><span id='OmseA'><b id='OmseA'><form id='OmseA'><ins id='OmseA'></ins><ul id='OmseA'></ul><sub id='OmseA'></sub></form><legend id='OmseA'></legend><bdo id='OmseA'><pre id='OmseA'><center id='OmseA'></center></pre></bdo></b><th id='OmseA'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='OmseA'><tfoot id='OmseA'></tfoot><dl id='OmseA'><fieldset id='OmseA'></fieldset></dl></div>

      <legend id='OmseA'><style id='OmseA'><dir id='OmseA'><q id='OmseA'></q></dir></style></legend>
    2. 如何在沒有按鍵的情況下更改大寫鎖定狀態

      How to change caps lock status without key press(如何在沒有按鍵的情況下更改大寫鎖定狀態)
        <bdo id='ER10S'></bdo><ul id='ER10S'></ul>
        <legend id='ER10S'><style id='ER10S'><dir id='ER10S'><q id='ER10S'></q></dir></style></legend>

        <small id='ER10S'></small><noframes id='ER10S'>

          <tfoot id='ER10S'></tfoot>
        1. <i id='ER10S'><tr id='ER10S'><dt id='ER10S'><q id='ER10S'><span id='ER10S'><b id='ER10S'><form id='ER10S'><ins id='ER10S'></ins><ul id='ER10S'></ul><sub id='ER10S'></sub></form><legend id='ER10S'></legend><bdo id='ER10S'><pre id='ER10S'><center id='ER10S'></center></pre></bdo></b><th id='ER10S'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='ER10S'><tfoot id='ER10S'></tfoot><dl id='ER10S'><fieldset id='ER10S'></fieldset></dl></div>

                  <tbody id='ER10S'></tbody>

              1. 本文介紹了如何在沒有按鍵的情況下更改大寫鎖定狀態的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                我正在使用一個在按下 Caps Lock 鍵時激活的 python 程序,我希望能夠在程序處于活動狀態時打開/關閉大寫鎖定狀態.

                I am using a python program that is activate when pressing Caps Lock key and I want to be able to turn on/off the caps lock status when the program is active.

                我嘗試使用 virtkey 發送密鑰,但它顯然不起作用,因為密鑰只是激活應用程序并且不會更改大寫鎖定狀態.那么使用 python 實現這一目標的最佳方法是什么?

                I tried to send keys with virtkey but it obviously don't work since the keys just activate the app and don't change the caps lock status. So what is the best way to achieve this with python?

                我正在使用 Ubuntu

                I'm using Ubuntu

                推薦答案

                在 Linux 上:

                import fcntl
                import os
                
                KDSETLED = 0x4B32
                
                console_fd = os.open('/dev/console', os.O_NOCTTY)
                
                # Turn on caps lock
                fcntl.ioctl(console_fd, KDSETLED, 0x04)
                
                # Turn off caps lock
                fcntl.ioctl(console_fd, KDSETLED, 0)
                

                來源:Benji York - 堆棧內存溢出:在 Python 中更改鍵盤鎖

                在 Windows 上:

                您應該能夠為此使用 SendKeys,如下例所示:

                You should be able to use SendKeys for this, as in the following example:

                import SendKeys
                
                SendKeys.SendKeys("""
                {CAPSLOCK}
                """)
                

                這篇關于如何在沒有按鍵的情況下更改大寫鎖定狀態的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                python: Two modules and classes with the same name under different packages(python:不同包下同名的兩個模塊和類)
                Configuring Python to use additional locations for site-packages(配置 Python 以使用站點包的其他位置)
                How to structure python packages without repeating top level name for import(如何在不重復導入頂級名稱的情況下構造python包)
                Install python packages on OpenShift(在 OpenShift 上安裝 python 包)
                How to refresh sys.path?(如何刷新 sys.path?)
                Distribute a Python package with a compiled dynamic shared library(分發帶有已編譯動態共享庫的 Python 包)
                <tfoot id='IRI9t'></tfoot>
                    <tbody id='IRI9t'></tbody>
                  <i id='IRI9t'><tr id='IRI9t'><dt id='IRI9t'><q id='IRI9t'><span id='IRI9t'><b id='IRI9t'><form id='IRI9t'><ins id='IRI9t'></ins><ul id='IRI9t'></ul><sub id='IRI9t'></sub></form><legend id='IRI9t'></legend><bdo id='IRI9t'><pre id='IRI9t'><center id='IRI9t'></center></pre></bdo></b><th id='IRI9t'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='IRI9t'><tfoot id='IRI9t'></tfoot><dl id='IRI9t'><fieldset id='IRI9t'></fieldset></dl></div>

                    <small id='IRI9t'></small><noframes id='IRI9t'>

                      <legend id='IRI9t'><style id='IRI9t'><dir id='IRI9t'><q id='IRI9t'></q></dir></style></legend>

                          <bdo id='IRI9t'></bdo><ul id='IRI9t'></ul>
                        • 主站蜘蛛池模板: 久久久久久久久久国产 | 成人在线国产 | 免费一级a毛片夜夜看 | 久久综合热 | 亚洲综合在线视频 | 久久久久久久久久国产精品 | 天天操夜夜 | 看一级黄色片 | 狠狠狠狠干 | 久久久久国产 | 一级片在线视频 | 国产激情视频在线 | 亚洲天堂男人天堂 | 一区二区网站 | 91亚洲国产成人精品性色 | 亚洲人成在线播放 | 日本一级淫片 | 欧美一二三 | 在线观看黄 | 在线色综合 | 国产一区二区免费在线观看 | 日韩精品极品 | 日韩理论在线 | 99久久视频 | 欧美一区二区视频在线观看 | 亚洲福利在线观看 | 超碰免费在线 | 午夜免费网站 | 成人在线视频免费 | 一区免费视频 | a级片在线播放 | 国产一区福利 | 日韩免费精品 | 天堂成人网 | 欧美日韩免费 | 91片黄在线观看动漫 | 国产中文字幕在线观看 | 亚洲欧美日韩综合 | 三级久久久 | 日本一区二区三区精品 | 欧美va亚洲va |