System Control Functions

Copy / Paste

Invoke the copy and paste functions of the system clipboard

>>> from pyhutool.system import Clipboard

>>> Clipboard.copy('hello world')
>>> Clipboard.paste() # hello world

Process Function

>>> from pyhutool.system import Process
>>> Process.getProcessDetail('idea.exe')

Window Function

>>> from pyhutool.system import Window
>>> Window.getWindowTitle()
>>> Window.getActiveWindowTitle()

System Function

Get system information

>>> System.info()

Get the current screen resolution

>>> System.metrics()

Open terminal

>>> System.openTerminal()

Get the number of monitors

>>> System.cmonitorsCount()

Check if the current input method is English

>>> System.keyboardLangIsEN()