レジストリのパスを修正
This commit is contained in:
parent
0b03527e33
commit
a52533f34b
1 changed files with 2 additions and 2 deletions
|
@ -33,10 +33,10 @@ class App(customtkinter.CTk):
|
||||||
keyboard.block_key(i)
|
keyboard.block_key(i)
|
||||||
|
|
||||||
def block_taskmgr(self):
|
def block_taskmgr(self):
|
||||||
subprocess.run(['reg', 'add', 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System', '/v', 'DisableTaskMgr', '/t', 'REG_DWORD', '/d', '1'])
|
subprocess.run(['reg', 'add', 'HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System', '/v', 'DisableTaskMgr', '/t', 'REG_DWORD', '/d', '1'])
|
||||||
|
|
||||||
def unlock_taskmgr(self):
|
def unlock_taskmgr(self):
|
||||||
subprocess.run(['reg', 'delete', 'HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System', '/v', 'DisableTaskMgr', '/f'])
|
subprocess.run(['reg', 'delete', 'HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\CurrentVersion\\Policies\\System', '/v', 'DisableTaskMgr', '/f'])
|
||||||
|
|
||||||
def toast(self):
|
def toast(self):
|
||||||
resource_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "resource")
|
resource_path = os.path.join(os.path.dirname(os.path.realpath(__file__)), "resource")
|
||||||
|
|
Loading…
Reference in a new issue