-
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 22, 2023
1 parent
c076fda
commit d9ef827
Showing
10 changed files
with
253 additions
and
40 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 |
---|---|---|
@@ -1,21 +1,7 @@ | ||
import win32gui | ||
import win32api | ||
import win32con | ||
import time | ||
import virtualKeys | ||
import globalVariables | ||
import windowsAPI | ||
|
||
|
||
def alt_control_send_keys(key): | ||
if globalVariables.alt_control_on: | ||
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) | ||
|
||
|
||
def mini_ftool_send_keys(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) | ||
windowsAPI.windows_api(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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
import time | ||
import windowsAPI | ||
import globalVariables | ||
import toolControl | ||
from tkinter import messagebox | ||
|
||
mini_ftool_check = False | ||
|
||
|
||
def buffer_loop(button): | ||
global mini_ftool_check | ||
|
||
while True: | ||
try: | ||
if globalVariables.buffer_enable_disabled and globalVariables.buffer_timer: | ||
for key in globalVariables.buffer_keys: | ||
|
||
if globalVariables.buffer_enable_disabled and globalVariables.buffer_timer: | ||
|
||
if globalVariables.mini_ftool_enable_disabled: | ||
mini_ftool_check = True | ||
toolControl.enable_disable_mini_ftool(button) | ||
|
||
windowsAPI.windows_api(globalVariables.buffs_hotbar) | ||
time.sleep(0.1) | ||
windowsAPI.windows_api(key) | ||
time.sleep(3) | ||
|
||
windowsAPI.windows_api(globalVariables.previous_hotbar) | ||
|
||
if mini_ftool_check: | ||
toolControl.enable_disable_mini_ftool(button) | ||
|
||
if globalVariables.buffer_timer and globalVariables.buffer_enable_disabled: | ||
windowsAPI.windows_api(globalVariables.previous_hotbar) | ||
|
||
time.sleep(float(globalVariables.buffer_timer)) | ||
|
||
except Exception as e: | ||
messagebox.showerror("Error", str(e)) | ||
time.sleep(5) | ||
continue | ||
|
||
time.sleep(0.1) | ||
|
||
|
||
def gt_buffer(): | ||
while True: | ||
windowsAPI.windows_api("1") | ||
|
||
time.sleep(10) |
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
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
Oops, something went wrong.