Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-cool08 authored Jul 30, 2022
1 parent e7ba2d8 commit 9524bf8
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
33 changes: 33 additions & 0 deletions check.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from tkinter import *
import subprocess
from time import sleep
import time

root = Tk()
root.geometry('400x250')

display = Label(root, text='Are you there?', font=('', 20))
display.pack(pady=40)


def locking():
cmd = 'rundll32.exe user32.dll, LockWorkStation'
subprocess.call(cmd)

but['state'] = 'disable'


def cancel():

root.after_cancel(L)
display['text'] = 'You can close this windows now'


# Take a reference of after
L = root.after(60000, locking)

but = Button(root, text='Im here', command=cancel)
but.pack(side='bottom', pady=30)


mainloop()
5 changes: 5 additions & 0 deletions run.vbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Set objShell = Wscript.CreateObject ("Wscript.shell")
do
WScript.Sleep(600000)
objShell.Run "python C:\users\%username%\usercheck\check.py"
loop

0 comments on commit 9524bf8

Please sign in to comment.