Skip to content

Commit

Permalink
ifWineWin-sendEnter
Browse files Browse the repository at this point in the history
  • Loading branch information
sl5net committed Nov 11, 2020
1 parent 6b50a32 commit 488814a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ This helps me:

1. for systems using a **Qt**-based desktop environment such as **KDE Plasma**, **Lumina**, etc.
```
sudo apt -y install autokey-qt ; echo "#/‾‾‾ Please Exit AutoKey (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 ; cd ~/.config/autokey/data/Sample\ Scripts/ ; cp ~/Downloads/Lintalist4Linux/run-run-lintalistAHK-all.py ./ ; cp ~/Downloads/Lintalist4Linux/.run-run-lintalistAHK-all.json ./ ; cp ~/Downloads/Lintalist4Linux/run-lintalistAHK.ahk ./ ; cp ~/Downloads/Lintalist4Linux/configParser-set-ini-defaults.ahk ./ ; cp ~/Downloads/Lintalist4Linux/configParser-set-defaults.py ./ ; cp ~/Downloads/Lintalist4Linux/ifWineWin-sendEnter.py ./ ; sudo dpkg --add-architecture i386 ; wget -nc https://dl.winehq.org/wine-builds/winehq.key; sudo apt-key add winehq.key ; sudo apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main' ; sudo add-apt-repository -y ppa:cybermax-dexter/sdl2-backport ; sudo apt update && sudo apt -y install --install-recommends winehq-stable ; wget https://www.autohotkey.com/download/ahk-install.exe ~/Downloads/ ; wine ~/Downloads/AutoHotkey_1.1.33.02_setup.exe ; echo "Please Configure AutohotKey and AutoKey" ; python3 ~/.config/autokey/data/Sample\ Scripts/configParser-set-defaults.py &
sudo apt -y install autokey-qt ; echo "#/‾‾‾ Please Exit AutoKey (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 ; cd ~/.config/autokey/data/Sample\ Scripts/ ; cp ~/Downloads/Lintalist4Linux/run-run-lintalistAHK-all.py ./ ; cp ~/Downloads/Lintalist4Linux/.run-run-lintalistAHK-all.json ./ ; cp ~/Downloads/Lintalist4Linux/run-lintalistAHK.ahk ./ ; cp ~/Downloads/Lintalist4Linux/configParser-set-ini-defaults.ahk ./ ; cp ~/Downloads/Lintalist4Linux/configParser-set-defaults.py ./ ; cp ~/Downloads/Lintalist4Linux/ifWineWin-sendEnter.py ./ ; python3 ~/.config/autokey/data/Sample\ Scripts/configParser-set-defaults.py ; sudo dpkg --add-architecture i386 ; wget -nc https://dl.winehq.org/wine-builds/winehq.key; sudo apt-key add winehq.key ; sudo apt-add-repository -y 'deb https://dl.winehq.org/wine-builds/ubuntu/ eoan main' ; sudo add-apt-repository -y ppa:cybermax-dexter/sdl2-backport ; sudo apt update && sudo apt -y install --install-recommends winehq-stable ; wget https://www.autohotkey.com/download/ahk-install.exe ~/Downloads/ ; wine ~/Downloads/AutoHotkey_1.1.33.02_setup.exe ; echo "Please Configure AutohotKey and AutoKey" &
```

hints for uninstalling autokey-gtk:<br>
Expand Down
2 changes: 1 addition & 1 deletion ifWineWin-sendEnter.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def beeps(duration=.1, freq=2000, loops=1):
active_class = window.get_active_class()
active_title= window.get_active_title()
aWaC = active_title + "." + active_class
if active_class == "Installer.control.exe.Wine": # "WINE" in active_title or "Wine" in active_title: # Installer.control.exe.Wine
if "Installer.control.exe.Wine" in active_class: # "WINE" in active_title or "Wine" in active_title: # Installer.control.exe.Wine
keyboard.send_keys('<enter>')
popupNotify(str(x) + "/" + str(max) + "sec Enter in " + aWaC)
else:
Expand Down

0 comments on commit 488814a

Please sign in to comment.