Skip to content

Instantly share code, notes, and snippets.

View cobrce's full-sized avatar
🎯
Focusing

cob_258 cobrce

🎯
Focusing
View GitHub Profile
@cobrce
cobrce / sonarrp.py
Created March 14, 2021 21:28
Script for qbittorrent, monitors a category of torrents (in this case tv-sonarr) and put them at the top of the queue, it uses python-qbittorrent module
from time import sleep
from qbittorrent import Client #pip3 install python-qbittorrent
link = "http://127.0.0.1:8080"
username = "admin"
password = "admin"
category = "tv-sonarr"
def main():
while True:
@cobrce
cobrce / right_button.py
Created April 3, 2021 23:26
use interception_py to presse right button in the center of the screen
from interception import *
from win32api import GetSystemMetrics
# get screen size
screen_width = GetSystemMetrics(0)
screen_height = GetSystemMetrics(1)
# create a context for interception to use to send strokes, in this case
# we won't use filters, we will manually search for the first found mouse
context = interception()
import win32api
from interception import interception,MAX_DEVICES
from stroke import mouse_stroke
from consts import interception_mouse_flag
import time
context = interception()
mouse = 0
for i in range(MAX_DEVICES):
if interception.is_mouse(i):