Skip to content

Instantly share code, notes, and snippets.

View bamboo-pan's full-sized avatar
😀
Focusing

bamboo.pan bamboo-pan

😀
Focusing
  • HP inc
  • china,shanghai
View GitHub Profile
@bamboo-pan
bamboo-pan / UNLICENSE
Created January 28, 2022 05:14 — forked from Tey/UNLICENSE
HTTP proxy digest authentication for requests lib which works with HTTPS websites
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
@bamboo-pan
bamboo-pan / mouse.py
Created December 4, 2020 01:56 — forked from hrwatahiki/mouse.py
Mouse management class for python 3(only). Pywin32 is required. See also http://stackoverflow.com/questions/4263608/ctypes-mouse-events .
import win32gui, win32api, win32con, ctypes
class Mouse:
"""It simulates the mouse"""
MOUSEEVENTF_MOVE = 0x0001 # mouse move
MOUSEEVENTF_LEFTDOWN = 0x0002 # left button down
MOUSEEVENTF_LEFTUP = 0x0004 # left button up
MOUSEEVENTF_RIGHTDOWN = 0x0008 # right button down
MOUSEEVENTF_RIGHTUP = 0x0010 # right button up
MOUSEEVENTF_MIDDLEDOWN = 0x0020 # middle button down
@bamboo-pan
bamboo-pan / Vitual keystroke example
Created December 4, 2020 01:52 — forked from chriskiehl/Vitual keystroke example
Python win32api simple Vitual keystroke example
#Giant dictonary to hold key name and VK value
VK_CODE = {'backspace':0x08,
'tab':0x09,
'clear':0x0C,
'enter':0x0D,
'shift':0x10,
'ctrl':0x11,
'alt':0x12,
'pause':0x13,
'caps_lock':0x14,