Notes
Notes - notes.io |
from multiprocessing import Process, freeze_support
import keyboard
import time
import win32api
import win32con
from PIL import ImageTk, Image
from tkinter import messagebox
def click(x, y):
win32api.SetCursorPos((x, y))
time.sleep(0.05)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN, x, y, 0, 0)
time.sleep(0.1)
win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP, x, y, 0, 0)
def rightclick(x, y):
win32api.SetCursorPos((x, y))
time.sleep(0.05)
win32api.mouse_event(win32con.MOUSEEVENTF_RIGHTDOWN, x, y, 0, 0)
time.sleep(0.1)
win32api.mouse_event(win32con.MOUSEEVENTF_RIGHTUP, x, y, 0, 0)
def press_alt_f4():
# Alt+F4 tuş kombinasyonunu simüle et
keyboard.press_and_release('alt+f4')
print("Alt+F4 tuşlarına basıldı, oyun kapatılıyor...")
def relog_action():
# Alt+F4 ile oyunu kapat
press_alt_f4()
time.sleep(1) # Oyunun kapanmasını beklemek için kısa bir süre
# Fareyi belirlenen koordinata tıkla
click(725, 372) # Koordinat (X: 725, Y: 372)
print("Fare tıklanmış! X: 725, Y: 372")
def uprage():
def slot1(x, y):
click(x, y)
time.sleep(0.10)
rightclick(x, y)
time.sleep(0.10)
rightclick(1316, 587) # Scroll sabit konumu (Eski: 1858, 580)
time.sleep(0.10)
click(1082, 322) # Confirm 1 (Eski: 1645, 325)
time.sleep(0.10)
click(1063, 454) # Confirm 2 (Eski: 1620, 450)
time.sleep(0.10)
# Manuel slot koordinatları
slot1x_list = [
1008, # Slot 1 X
1056, # Slot 2 X
1109, # Slot 3 X
1150, # Slot 4 X
1209, # Slot 5 X
1254, # Slot 6 X
1307 # Slot 7 X
]
slot1y_list = [
433, # Slot 1 Y
426, # Slot 2 Y
428, # Slot 3 Y
429, # Slot 4 Y
430, # Slot 5 Y
435, # Slot 6 Y
432 # Slot 7 Y
]
wait_time = 1 # Araya eklenen bekleme süresi (saniye)
upgrade_count = 0 # Upgrade işlemi sayacı
# Her bir slot için işlem yapma
while upgrade_count < 30:
for i in range(len(slot1x_list)):
slot1(slot1x_list[i], slot1y_list[i])
time.sleep(wait_time) # Her slot işlemi arasında bekleme süresi
upgrade_count += 1 # Upgrade sayısını artır
if upgrade_count >= 30:
print("30 upgrade işlemi tamamlandı.")
upgrade_count = 0 # Sayaç sıfırlanır
break # Slotları yeniden başlat
def start_upgrade():
global up
up = Process(target=uprage)
up.start()
print('Upgrade Başlatıldı.')
def stop_upgrade():
global up
if up:
up.terminate()
label.configure(text='Upgrade Durduruldu.')
else:
label.configure(text='Upgrade durdu.')
def show_about():
messagebox.showinfo("BENİ OKU!",
"Ekran çözünürlüğün 1366x768 olmalı. BUS en son sag slotta olmalı!")
if __name__ == '__main__':
freeze_support()
up = None
root = tk.Tk()
root.title("Exelans-Upgrade")
root.option_add("*Font", "TkDefaultFont 12 bold italic")
root.wm_attributes("-topmost", 1)
try:
bg_image = ImageTk.PhotoImage(Image.open("kngo.jpg").resize((300, 150)))
bg_label = tk.Label(root, image=bg_image)
bg_label.place(x=0, y=0, relwidth=1, relheight=1)
except Exception:
pass
root.geometry("300x150")
about_button = tk.Button(root, text="BENİ OKU!", command=show_about, bg="red", fg="white",
font=("Arial", 12, "bold italic"))
about_button.pack(side="right", anchor="ne", padx=10, pady=10)
start_button = tk.Button(root, text="Start-(B)", command=start_upgrade, bg="red", fg="white",
font=("Arial", 12, "bold italic"))
stop_button = tk.Button(root, text="Stop-(D)", command=stop_upgrade, bg="red", fg="white",
font=("Arial", 12, "bold italic"))
relog_button = tk.Button(root, text="Relog-(A)", command=relog_action, bg="red", fg="white",
font=("Arial", 12, "bold italic"))
start_button.pack(padx=5, pady=5, anchor="nw")
stop_button.pack(side="right", anchor="se", padx=5, pady=5)
relog_button.pack(side="bottom", padx=5, pady=5)
label = tk.Label(root, text="")
label.pack()
def on_key_press(event):
if event.name == "b":
start_upgrade()
label.configure(text='Upgrade Başlatıldı.')
elif event.name == "d":
stop_upgrade()
elif event.name == "a":
relog_action()
keyboard.on_press(on_key_press)
root.mainloop()
![]() |
Notes is a web-based application for online taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000+ notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 14 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team
