sorun çözme
#479
Replies: 1 comment
-
|
do you have a question? I don't understand, sorry. bir sorunuz mu var? Anlamadım, üzgünüm. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
import pyautogui
import time
import sys
ANSI escape kodları ile renk ve arka plan ayarları
WHITE_BACKGROUND = '\033[47m' # Beyaz arka plan
GREEN_TEXT = '\033[32m' # Yeşil yazı
RESET = '\033[0m' # Renk sıfırlama
def sağ_tıklama_yap(coordinate, label):
try:
pyautogui.rightClick(coordinate)
print(f"{GREEN_TEXT}{label} sağ tıklama yapıldı: {coordinate}{RESET}")
except Exception as e:
print(f"{GREEN_TEXT}Bir hata oluştu: {e}{RESET}")
def main():
# Başlangıçta sol tıklama yapılacak koordinat
print(f"{WHITE_BACKGROUND}{GREEN_TEXT}Başlangıç sol tıklama yapılıyor...{RESET}")
pyautogui.leftClick(578, 225)
print(f"{GREEN_TEXT}Başlangıç sol tıklama yapıldı: (578, 225){RESET}")
Eğer dosya bu modülde çalıştırılmışsa, main() fonksiyonunu başlatıyoruz.
if name == "main":
try:
main()
except KeyboardInterrupt:
print(f"\n{GREEN_TEXT}Program durduruldu. Çıkılıyor...{RESET}")
sys.exit(0)
Beta Was this translation helpful? Give feedback.
All reactions