-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
source code of exe
- Loading branch information
Showing
1 changed file
with
90 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
|
||
import pyautogui | ||
import time | ||
from colorama import Fore, Style | ||
import sys | ||
|
||
# Made by <3 by Walkoud | ||
|
||
print(Fore.RED + Style.BRIGHT + """ | ||
___ __ ____________ ___ _________________ ______ | ||
/ _ |/ / / /_ __/ __ \ / _ |/ ___/ ___/ __/ _ \/_ __/ | ||
/ __ / /_/ / / / / /_/ / / __ / /__/ /__/ _// ___/ / / | ||
/_/ |_\____/ /_/ \____/ /_/ |_\___/\___/___/_/ /_/ | ||
"""+ Fore.BLUE + """ | ||
By Walkoud v1 """ + Fore.YELLOW + """ | ||
____________ | ||
/ ___/ __/_ | | ||
/ /___\ \/ __/ | ||
\___/___/____/ | ||
"""+ Fore.WHITE + """ | ||
https://github.com/walkoud | ||
""") | ||
|
||
|
||
print(Fore.GREEN + "Starting in 3 seconds !" + Style.RESET_ALL) | ||
|
||
|
||
import os | ||
import sys | ||
|
||
def resource_path(relative_path): | ||
""" Get absolute path to resource, works for dev and for PyInstaller """ | ||
try: | ||
# PyInstaller creates a temp folder and stores path in _MEIPASS | ||
base_path = sys._MEIPASS | ||
except Exception: | ||
base_path = os.path.abspath(".") | ||
|
||
return os.path.join(base_path, relative_path) | ||
|
||
# Utilisation de la fonction resource_path pour obtenir le chemin absolu de "image.png" | ||
image_path = resource_path("image.png") | ||
|
||
def detect_and_click(image_path): | ||
time.sleep(3) | ||
while True: | ||
try: | ||
x, y = pyautogui.locateCenterOnScreen(image_path) | ||
pyautogui.click(x, y) | ||
print(Fore.GREEN + "CLICKED IN AUTOACCEPT Successfully" + Style.RESET_ALL) | ||
input("Click in the window and press a key to restart") | ||
except TypeError: | ||
print("Searching accept button... Retrying in 1 seconds...") | ||
time.sleep(1) | ||
|
||
|
||
|
||
|
||
detect_and_click(image_path) | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
# Made by <3 by Walkoud |