This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#-*- coding:utf-8 -*- | |
################### EDIT ############################################ | |
block_cipher = None | |
name = 'Lock' # <o> Name exe | |
path = 'D:\\Desktop\\PyProject\\Linh tinh\\Lock Folder project\\one file lock\\Lock.py' # <o> Path .py | |
shell = True # <o> console appear | |
iconname = 'icon.ico' # name icon make sure type .ico | |
data = [(iconname,'D:\\Downloads\\icon\\'+iconname,'DATA')] # change path icon if need |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
aa = pyautogui.position() | |
print(aa) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os,glob | |
def br(data): | |
print(data*80) | |
#==============================================# | |
folder_path = r'D:\Downloads' | |
#==============================================# | |
set_compare = set() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
if sys.platform.startswith('linux'): | |
import os | |
os.system("xset dpms force off") | |
elif sys.platform.startswith('win'): | |
import win32gui | |
import win32con |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import win32gui | |
import win32con | |
import sys | |
def get_windows(): | |
def sort_windows(windows): | |
sorted_windows = [] | |
# Find the first entry | |
for window in windows: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pythoncom, pyHook | |
import time | |
import win32api | |
import win32gui | |
import win32con | |
import threading | |
import sys | |
isStop = False | |
list_wd = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import psutil | |
from plyer import notification | |
import pynput.keyboard as keyboard | |
from pynput.keyboard import Key, Listener , Controller | |
from time import sleep as sleep | |
import subprocess | |
import os | |
import threading, pynput, time | |
def shownoti(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hashlib | |
import sys | |
import os | |
if __name__ == '__main__': | |
try: | |
arg0 = sys.argv[1] | |
hash_object = hashlib.sha1(arg0.encode()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#-*- coding: utf-8 -*- | |
import os | |
import sys | |
from time import sleep | |
import random | |
def input_more(text): | |
sys.stdout.write('Meaning: ') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ctypes | |
CF_TEXT = 1 | |
kernel32 = ctypes.windll.kernel32 | |
kernel32.GlobalLock.argtypes = [ctypes.c_void_p] | |
kernel32.GlobalLock.restype = ctypes.c_void_p | |
kernel32.GlobalUnlock.argtypes = [ctypes.c_void_p] | |
user32 = ctypes.windll.user32 | |
user32.GetClipboardData.restype = ctypes.c_void_p |