2019년 12월 17일 화요일

admob auto accept and ad block management python script


admob auto accept and ad block management python script


 import pyautogui
import time
# pyautogui.click(pyautogui.locateCenterOnScreen('def.png'))
# pyautogui.click(pyautogui.locateCenterOnScreen('au.png'))
# pyautogui.click(pyautogui.locateCenterOnScreen('10.png'))

# pyautogui.press('end')
# pyautogui.click(pyautogui.locateCenterOnScreen('accept.png'))
def Mouse_center():
    time.sleep(1)
    width, height = pyautogui.size()
    pyautogui.moveTo(width/2, height/2)
    pyautogui.scroll(-100)
    pyautogui.scroll(-100)
    pyautogui.press('end')
    pyautogui.scroll(-100)
    pyautogui.scroll(-100)
pass

accept = 0
def1 = 0
au1 = 0
auten = 0
xxx = 0
noac = 0

while True:
    # set accept to be 0
    # locate the accept button
    accept = pyautogui.locateCenterOnScreen('accept.png')
    def1 = pyautogui.locateCenterOnScreen('def.png')
    au1 = pyautogui.locateCenterOnScreen('au.png')
    auten = pyautogui.locateCenterOnScreen('ten.png')
    xxx = pyautogui.locateCenterOnScreen('xxx.png')
    noac = pyautogui.locateCenterOnScreen('noac2.png')

    if not (xxx is None):
        pyautogui.click(xxx[0],xxx[1])
        Mouse_center()
        print("Accept btn pressed_xxxx")

    if not (accept is None):
        Mouse_center()
        pyautogui.click(accept[0],accept[1])
        print("Accept btn pressed1")

    if not (def1 is None):
        pyautogui.moveRel(10,-10, 2)
        pyautogui.click(def1[0],def1[1])
        print("Accept btn pressed2")

    if not (au1 is None):
        pyautogui.click(au1[0],au1[1])
        # pyautogui.click(pyautogui.moveRel(13,-13,2))
        print("Accept btn pressed3")

    if not (auten is None):
        pyautogui.click(auten[0],auten[1])
        print("Accept btn pressed_10")

    if not (noac is None):
        Mouse_center()
        print("Down Scroll Down!!!")




아래 이미지를 캡쳐 아래 이미지와 매칭시 스크립트 작동 되는 방식





python 3.7
time
pyautogui








댓글 없음: