Exemple #1
0
    def __init__(self, countlimit):

        # for control battle count
        self.countLimit = countlimit
        # current battle count
        self._currentCount = 0

        # engine initial
        self.registerengine = registerengine.RegisterEngine()
        self.imageengine = imageengine.ImageEngine(self.registerengine)
        self.mouseengine = mouseengine.MouseEngine(self.registerengine)

        return
Exemple #2
0
    def __init__(self, countlimit):
        # engine initial
        self.registerengine = registerengine.RegisterEngine()
        self.imageengine = imageengine.ImageEngine(self.registerengine)
        self.mouseengine = mouseengine.MouseEngine(self.registerengine)

        # master or slave or self mode
        # 1-master
        # 2-slave
        # 3-self
        self.masterMode = self.registerengine.mastermode
        # for control battle count
        self.countLimit = countlimit
        # current battle count
        self._currentCount = 0
        return
Exemple #3
0
import os
import cv2
from PIL import ImageGrab
import numpy as np
from pymouse import PyMouse

from engine import mouseengine
from engine import registerengine

re = registerengine.RegisterEngine()

m = mouseengine.MouseEngine(re)
m.move(1700, 1060)

# methods = ['cv2.TM_CCOEFF', 'cv2.TM_CCOEFF_NORMED', 'cv2.TM_CCORR', 'cv2.TM_CCORR_NORMED', 'cv2.TM_SQDIFF', 'cv2.TM_SQDIFF_NORMED']
# for meth in methods:
#     method = eval(meth)
#     print(method)