Skip to content

Instantly share code, notes, and snippets.

View sl5net's full-sized avatar
🏠
Working from home

sl5net

🏠
Working from home
View GitHub Profile
import time
import subprocess
# first_title = window.get_active_title()
first_class = window.get_active_class()
# keyboard.send_keys("\n#1 first_class='%s'" % first_class)
#1 first_class='autokey-gtk.Autokey-gtkinitialContent'
# hi world
@sl5net
sl5net / open startmenu.py
Created October 11, 2020 05:29
AutoKey Demo add global Shortcut
import time
from autopilot.input import Mouse
# mouse = Mouse.create()
# x, y = mouse.position()
# mouse.move(x + 100, y + 100)
# quit()
# python3 -m pip install pyautogui
# import pyautogui
# import mouse
from autopilot.input import Mouse
winTitle = window.get_active_title()
winClass = window.get_active_class()
if winTitle != "0 A.D.": # or winClass != 'pyrogenesis.pyrogenesis':
keyboard.send_keys("ü") # ü
quit()
# üüü über ioüopü opü opü püpüpüpü püpüpü üüüüp ppppü püpüpüpüpüpüpüpüp ü
# üüüüüü
@sl5net
sl5net / 0 A.D. e exit.py
Created November 1, 2020 21:31
fast short loop through 0 A.D. - Scenarios
from autopilot.input import Mouse
#quit()
for i in range(50):
winTitle = window.get_active_title()
winClass = window.get_active_class()
if winTitle != "0 A.D." or winClass != 'pyrogenesis.pyrogenesis':
#!/bin/bash
sudo apt -y install autokey-qt
echo "########## \n Please Exit AutohotKey (right Click Taskbar on little Icon) then the installation will continue automatically. \n#########"
autokey-qt & sleep 3s
killall -9 autokey-qt
sudo apt -y install git
mkdir ~/ahk
mkdir ~/ahk/github
cd ~/ahk/github/
git clone https://github.com/lintalist/lintalist
#!/bin/bash
echo "########## \n Please Exit AutohotKey (right Click Taskbar on little Icon) then the installation will continue automatically. \n#########"
autokey-qt & sleep 3s ; killall -9 autokey-qt
sudo apt -y install git
mkdir ~/ahk
mkdir ~/ahk/github
cd ~/ahk/github/
git clone https://github.com/lintalist/lintalist
cd ~/Downloads/
git clone https://github.com/sl5net/Lintalist4Linux
#!/bin/bash
echo "########## Please Exit AutoHotKey (right Click Taskbar on little Icon) then the installation will continue automatically. #########"
autokey-qt & sleep 3s ; killall -9 autokey-qt
sudo apt -y install git || exit
mkdir ~/ahk
mkdir ~/ahk/github
cd ~/ahk/github || exit
git clone https://github.com/lintalist/lintalist
cd ~/Downloads || exit
git clone https://github.com/sl5net/Lintalist4Linux
# https://askubuntu.com/a/149264/1017209
# xrandr -q | grep " connected"
# bug report:
# there is sometimes a toggle. severel versions of this scripts run sometimes.
# for minutes i have tested this script with "1" and then with with "0.2".
# during this video it jumps back to "1" ?? whey? lets try kill autokey and start it again
# you could see. it dont toggle. if autokey is off. brightness stays. not toggle.
# ups. noooo. i doesent !!!!!!. my system automatically set brightness to 1???? whey??
@sl5net
sl5net / 0 A.D. fast - ue.py
Created November 7, 2020 01:27
AutoKey Script AutoKey Script
from autopilot.input import Mouse
doOnlyPreview = True
doOnlyPreview = False
# winTitle = window.get_active_title()
# winClass = window.get_active_class()
# if winTitle != "0 A.D." or winClass != 'pyrogenesis.pyrogenesis':
# keyboard.send_keys("ü") # ü
# quit()
@sl5net
sl5net / 0 A.D. pause - p1.py
Created November 7, 2020 01:29
0 A.D. pause - p
from autopilot.input import Mouse
doOnlyPreview = True
doOnlyPreview = False
# winTitle = window.get_active_title()
# winClass = window.get_active_class()
# if winTitle != "0 A.D." or winClass != 'pyrogenesis.pyrogenesis':
# keyboard.send_keys("p") # ü
# quit()