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 time | |
from autopilot.input import Mouse | |
# mouse.click_absolute(1, 1, 1) # <== dosent work | |
mouseObj = Mouse.create() | |
x1, y1 = mouseObj.position() | |
time.sleep(.2) | |
mouseObj.move(0, 0, 0) | |
mouseObj.move(-1, 0, 0) | |
# keyboard.wait_for_keypress("<space>" , 5) # 2 second timeout |
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
FLASK_APP=msFlaskApplication.py # FLASK_APP=app:create_app() # or app.py | |
FLASK_ENV=development | |
FLASK_DEBUG=0 | |
# FLASK_RUN_EXTRA_FILES= | |
# FLASK_RUN_HOST= | |
# FLASK_RUN_PORT=8080 | |
# FLASK_RUN_CERT= | |
# FLASK_RUN_KEY= |
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
FLASK_APP=app:create_app() # or app.py | |
FLASK_ENV=development | |
FLASK_DEBUG=0 | |
# FLASK_RUN_EXTRA_FILES= | |
# FLASK_RUN_HOST= | |
# FLASK_RUN_PORT=8080 | |
# FLASK_RUN_CERT= | |
# FLASK_RUN_KEY= |
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
{ | |
"TranslatedKeys": ["Name", "Tooltip"], | |
"Data": | |
[ | |
{ | |
"Name": "Tiny", | |
"Tooltip": "This map size has barely any room for even the most basic resources.", | |
"Tiles": 128, | |
"Default": true | |
}, |
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
{ | |
"TranslatedKeys": ["Title"], | |
"Data": | |
[ | |
{ | |
"Speed": 0.05, | |
"Title": "Normal Turtle (0.05×)", | |
"Default": true | |
}, | |
{ |
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
# autokey-gtk.Autokey-gtk.AutoKey | |
import os, time, subprocess | |
def popupNotify(text): | |
subprocess.Popen(['notify-send', text]) # will be showed right top | |
# path = home + "/.config/autokey/data/Sample Scripts/" | |
def beeps(duration=.1, freq=2000, loops=1): | |
# duration = .8 # second # freq = 1500 # Hz | |
for x in range(loops): | |
os.system('play --no-show-progress --null --channels 1 synth %s sine %f' % (duration, freq)) |
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
# Attention: !!! don`t edit thi file. this file will be result from other files merged. | |
# this file will be (hopefully merged to) ...-all.py | |
from pathlib import Path | |
home = str(Path.home()) | |
# BTW you can run a script using autokey-run --script {script-name}. | |
#/‾‾‾ CPU too high !!!!!!!!!!!!!!!! |
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
doPopupNotify_howItWorks = True # subprocess.Popen(['notify-send', "will be showed right top"]) # will be showed right top | |
def popupNotify(text): | |
subprocess.Popen(['notify-send', text]) # will be showed right top | |
def popupNotify_howItWorks(text): | |
global doPopupNotify_howItWorks | |
if doPopupNotify_howItWorks: | |
subprocess.Popen(['notify-send', text]) # will be showed right top | |
time.sleep(.2) | |
def beeps(duration=.1, freq=2000, loops=1): | |
# duration = .8 # second |
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
{ | |
"type": "script", | |
"description": "run-run-lintalistAHK-all", | |
"store": {}, | |
"modes": [ | |
3 | |
], | |
"usageCount": 12, | |
"prompt": false, | |
"omitTrigger": false, |
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
#!/bin/bash | |
# Start it for e.g. so: | |
#/‾‾‾ problems installing autohokey using this line | |
# clear ; cd /tmp ; wget https://raw.githubusercontent.com/sl5net/Lintalist4Linux/master/install.sh ./install.sh ; sudo chmod +wx ./install.sh ; ./install.sh ; rm ./install.sh ; | |
#/‾‾‾ no problems # chmod +rwx :)))) | |
# clear ; cd /tmp ; rm ./install.sh ; wget https://raw.githubusercontent.com/sl5net/Lintalist4Linux/master/install.sh ./install.sh ; sudo chmod 777 ./install.sh ; ./install.sh ; rm ./install.sh ; | |
#/‾‾‾ no problems bash: ./install.sh: Permission denied | |
# clear ; sudo wget https://raw.githubusercontent.com/sl5net/Lintalist4Linux/master/install.sh ~/Downloads/install.sh ; cd ~/Downloads ; sudo chmod 750 ./install.sh ; ./install.sh | |
#/‾‾‾ solution without sh-script |