Skip to content

Commit e7cb7ed

Browse files
authored
Merge pull request #5 from BluDolphin/Linux-Workaround
Linux workaround for image recognition
2 parents e37a7a1 + d2618a2 commit e7cb7ed

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Main/autoClicker.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,11 @@
55
"""_summary_
66
Auto clicker script with boundary check
77
8-
ONLY WORKS ON WINDOWS
9-
108
Features:
119
- Clicks fast
1210
- Stops clicking when mouse is outside of a boundary
13-
- Automatically moves mouse to image location
14-
- Can auto find and click on many images
11+
- Automatically moves mouse to image location (Winodws only)
12+
- Can auto find and click on many images (Windows only)
1513
"""
1614

1715
# ================================================================================================
@@ -43,6 +41,12 @@
4341
f"Start/Stop button: {startStopKey}\n"
4442
f"Frenzy button: {frenzyKey}\n")
4543

44+
# check if os is not windows
45+
# Auto disable features if not supported on Linux (probs MacOS too
46+
if os.name != 'nt':
47+
print("Auto snap to image & Frenzy mode is disabled as it is not supported on this OS z\nSorry, i'm working on implementing it currently")
48+
autoSnapToggle = False
49+
frenzyToggle = False
4650

4751
mouse = Controller() # Create mouse object
4852
clicking = False # Set clicking to false

0 commit comments

Comments
 (0)