-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
None
authored and
None
committed
May 20, 2023
1 parent
16a2420
commit 72a23c9
Showing
6 changed files
with
70 additions
and
73 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import win32gui | ||
import win32api | ||
import win32con | ||
import time | ||
import virtualKeys | ||
|
||
|
||
def firefox_window(key): | ||
window = win32gui.FindWindow("MozillaWindowClass", None) | ||
win32api.SendMessage(window, win32con.WM_KEYDOWN, virtualKeys.vk_code.get(key), 0) | ||
time.sleep(0.1) | ||
win32api.SendMessage(window, win32con.WM_KEYUP, virtualKeys.vk_code.get(key), 0) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
on = False | ||
|
||
alt_control_key_list = [] | ||
|
||
mini_ftool_keys = [] | ||
|
||
mini_ftool_key_timers = [] |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import keyboard | ||
import globalVariables | ||
import browserControl | ||
|
||
|
||
def listener(): | ||
keyboard.on_press(send_key) | ||
keyboard.wait() | ||
|
||
|
||
def send_key(event): | ||
print(event.name) | ||
if event.name in globalVariables.alt_control_key_list: | ||
browserControl.firefox_window(event.name) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import time | ||
import random | ||
import browserControl | ||
import globalVariables | ||
|
||
|
||
def mini_ftool(check): | ||
while True: | ||
if globalVariables.on: | ||
for key, timer in zip(globalVariables.mini_ftool_keys, globalVariables.mini_ftool_key_timers): | ||
browserControl.firefox_window(key) | ||
|
||
if check == 1: | ||
time.sleep(random.uniform(0, float(timer))) | ||
else: | ||
time.sleep(int(timer)) | ||
|
||
time.sleep(1) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import threading | ||
|
||
|
||
def multithreading(function): | ||
t = threading.Thread(target=function) | ||
t.setDaemon(True) | ||
t.start() |