Arkadaşlar merhaba
hep içimde kalmıştır,çocukluğumun oyununa bot yazabilmek.
Yardım ederseniz çok sevinirim
Ekranım şu şekilde;
kodlarımda şu şekilde;
import time
import keyboard
def skill1():
keyboard.press('1')
time.sleep(0.2)
keyboard.release('1')
time.sleep(0.2)
def skill2():
keyboard.press('2')
time.sleep(0.2)
keyboard.release('2')
time.sleep(0.2)
def skill3():
keyboard.press('3')
time.sleep(0.2)
keyboard.release('3')
time.sleep(0.2)
def skill4():
keyboard.press('4')
time.sleep(0.2)
keyboard.release('4')
time.sleep(0.2)
def skill5():
keyboard.press('5')
time.sleep(0.2)
keyboard.release('5')
time.sleep(0.2)
def skill6():
keyboard.press('6')
time.sleep(0.2)
keyboard.release('6')
time.sleep(0.2)
def yurume_W(sure):
keyboard.press('W')
time.sleep(sure)
keyboard.release('W')
time.sleep(0.2)
def yurume_D(sure):
keyboard.press('D')
time.sleep(sure)
keyboard.release('D')
time.sleep(0.2)
def yurume_A(sure):
keyboard.press('A')
time.sleep(sure)
keyboard.release('A')
time.sleep(0.2)
def yurume_S(sure):
keyboard.press('S')
time.sleep(sure)
keyboard.release('S')
time.sleep(0.2)
def canavar_sec():
keyboard.press('z')
time.sleep(0.4)
keyboard.release('z')
time.sleep(0.2)
def duz_vur():
keyboard.press('r')
time.sleep(2)
keyboard.release('r')
time.sleep(0.2)
def sutun2():
keyboard.press('F2')
time.sleep(0.2)
keyboard.release('F2')
time.sleep(0.2)
time.sleep(3)
while True:
canavar_sec()
time.sleep(0.2)
skill4()
time.sleep(0.2)
skill1()
time.sleep(2)
duz_vur()
duz_vur()
time.sleep(0.2)
şimdi ben bunu çalıştırıyorum sonra knıght oyununa geliyorum ama karakter hiç bir tepki vermiyor.
Acaba keyboard çalışıyormu diye bakıyorum normal yerlerde çalışıyor
ama knıghtta duruyor çalışmıyor. neden olabilir?