You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenClick is an open source autoclicker for Debian and Arch based systems using **XORG**!
13
-
Currently it does not work on windows, but a fix is on the way!
14
12
15
-
**TO USE OPENCLICK WITH WINDOWS SUPPORT YOU'LL HAVE TO USE THE LATEST ALPHA VERSION, IN THIS CASE IT'S 0.4**
13
+
OpenClick is an open source autoclicker for Debian and Arch based systems!
14
+
Currently the only way you can run this autoclicker on Windows is by running the Module Edition (I'm going to fix this).
15
+
16
+
# LOOK HERE WAYLAND USERS!
17
+
The only way to run OpenClick on Wayland is by using Sudo. I've implemented a "feature" that checks for Wayland, and notifies you if you need to use it.
18
+
19
+
There are also a limited amount of application that can use openclick on wayland. **The only applications that can use Openclick on Wayland is the applications running xwayland**
20
+
21
+
# The 2 different editions (READ ME!)
22
+
There are 2 different editions/versions of this software.
23
+
24
+
Either you use the "Module" Edition, which consists of the install.py, the main.py and the manager.py file, or you run the "Full Edition". The "Module" Edition is cross-platform, since it works on Linux and Windows!
25
+
26
+
The "Full" Edition is the 2 files (main.py and manager.py) made into one file that's also installed as a command on your system. The "Full" Edition isn't cross-platform, it does not work on windows.
27
+
28
+
A fix is coming!
29
+
30
+
There are guides for both editions.
31
+
16
32
17
33
# Intro
18
34
So, what is an autoclicker?
@@ -26,6 +42,7 @@ Have fun :D
26
42
# Before you start...
27
43
Make sure you have python installed! Most linux distros comes with python out of the box, but check so its installed just in case it isn't!
28
44
Also make sure you have "pip" installed! Most linux distros comes with pip out of the box, but once again, check so its installed just in case it isn't!
45
+
29
46
## !IMPORTANT!
30
47
And lastly, make sure you have tKinter installed. It comes prebundled with python, though sometimes the module named "pynput" needs a manual installation of tKinter to work!
31
48
Here is how to install it. If you can't find your distro's way to install it here, then search the internet.
@@ -39,8 +56,28 @@ Here is how to install it. If you can't find your distro's way to install it her
39
56
sudo pacman -S tk
40
57
```
41
58
42
-
43
59
# How to install
60
+
61
+
**For Fedora based distros**
62
+
```
63
+
sudo dnf install python3-tkinter
64
+
```
65
+
66
+
## Fedora
67
+
68
+
On some distros the python3-devel package is not installed by default, and this package is needed for many python modules, which causes the installation to fail if the python3-devel package isn't installed. This issue can be resolved though by installing the python3-devel package.
69
+
70
+
**devel package**
71
+
```
72
+
sudo dnf install python3-devel
73
+
```
74
+
75
+
# How to install Module Edition
76
+
**Make sure you are in the right directory!**
77
+
78
+
## How to install
79
+
**(Wayland users use sudo)**
80
+
44
81
Step 1:
45
82
Run the installation script!
46
83
```
@@ -55,22 +92,95 @@ Step 2:
55
92
python3 main.py
56
93
```
57
94
You are done!
58
-
# How to use
95
+
## How to use
96
+
**(Wayland users use sudo)**
97
+
59
98
Use the command
60
99
```
61
100
python3 main.py
62
101
```
63
-
to run the script!
102
+
while in the correct folder to run the script!
64
103
Use the command
65
104
```
66
105
python3 manager.py --c
67
106
```
68
-
to open up the customization menu! (Tip! Use -h instead of --c to get the help menu instead!)
107
+
while in the correct folder to open up the customization menu! (Tip! Use -h instead of --c to get the help menu instead!)
69
108
If you want to customize the constant click delay, then use the command
print("Checking for the modules on your system...")
6
50
## Checking if modules are installed and configuring settings.txt
7
51
try:
8
52
importcolorama
9
53
print("Module \"colorama\" was found!")
10
54
# cresult = True
11
55
exceptModuleNotFoundError:
12
-
print("The module named \"colorama\" wasn't found! Do you want to install it? (y/n)")
13
-
coloramainput=input().upper()
14
-
ifcoloramainput=="Y":
56
+
print("The module named \"colorama\" wasn't found! Do you want to install it? ([Y]es/[n]o)")
57
+
#Default option for no input = Yes
58
+
coloramainput=input().lower()
59
+
ifcoloramainputinarr:
15
60
os.system("pip install colorama")
16
61
# cresult = True
17
-
elifcoloramainput=="N":
62
+
else:
18
63
installedPackeges=False
19
64
print("Then you need to install it. Read the instructions on the github page or read the README.md!")
20
-
else:
21
-
print("That wasn't a N or an Y.")
22
-
quit()
65
+
23
66
24
67
try:
25
68
importpynput
26
69
print("Module \"pynput\" was found!")
27
70
presult=True
28
71
exceptModuleNotFoundError:
29
-
print("The module named \"pynput\" wasn't found! Do you want to install it? (y/n)")
30
-
pynputinput=input().upper()
31
-
ifpynputinput=="Y":
72
+
print("The module named \"pynput\" wasn't found! Do you want to install it? ([Y]es/[N]o)")
73
+
pynputinput=input().lower()
74
+
ifpynputinputinarr:
32
75
os.system("pip install pynput")
33
76
# presult = True
34
-
elifpynputinput=="N":
35
-
installedPackeges=False
36
-
print("Then you need to install it. Read the instructions on the github page or read the README.md!")
37
77
else:
38
-
print("That wasn't a N or an Y.")
39
-
quit()
40
-
#checking for flagser
41
-
try:
42
-
importflagser
43
-
print("Module \"flagser\" was found!")
44
-
presult=True
45
-
exceptModuleNotFoundError:
46
-
print("The module named \"flagser\" wasn't found! Do you want to install it? (y/n)")
47
-
pynputinput=input().upper()
48
-
ifpynputinput=="Y":
49
-
os.system("pip install flagser")
50
-
# presult = True
51
-
elifpynputinput=="N":
52
78
installedPackeges=False
53
79
print("Then you need to install it. Read the instructions on the github page or read the README.md!")
54
-
else:
55
-
print("That wasn't a N or an Y.")
56
-
quit()
80
+
57
81
58
82
ifinstalledPackeges:
59
83
#f = open('./settings.txt','r')
@@ -70,15 +94,17 @@
70
94
# f.write(line)
71
95
#f.write("firststartup=true")
72
96
#f.close()
73
-
withopen('settings.json') asf:
74
-
data=json.load(f)
75
97
76
98
data['firststartup']=True
77
99
withopen('settings.json', 'w') asoutfile:
78
100
json.dump(data, outfile,indent=4)
79
-
print("You are ready to go! \nPlease make sure you have tKinter installed manually. If it isn't installed then your can read the readme for examples on how to install it!\nRead the docs over at https://github.com/SpamixOfficial/OpenClick/blob/main/README.md for more information!")
101
+
print("You are ready to go!\n\nPlease make sure you have tKinter installed manually. If it isn't installed then you can read the readme for examples on how to install it!\nRead the docs over at https://github.com/SpamixOfficial/OpenClick/blob/main/README.md for more information!")
80
102
81
103
82
104
else:
83
-
print(Back.RED+"Sorry, but either one or both of the modules wasn't found. \n Read the instructions for help on how to install them!")
105
+
try:
106
+
print(Back.RED+"Sorry, but either one or both of the modules wasn't found. \n Read the instructions for help on how to install them!")
107
+
except:
108
+
print("Sorry, but either one or both of the modules wasn't found. \n Read the instructions for help on how to install them!")
0 commit comments