예제 #1
0
def quit_apps():
    pc.unlock()
    pc.homeButton()  # includes tap command
    pc.tap()
    for x in range(0, 4):
        pc.scrollWayUp()
    pc.homeButton()
    sleep(2)
    pc.zero()
    pc.onOff()
예제 #2
0
def buienradar():
    pc.unlock()
    pc.move(xy.app(2, 5))
    pc.tap()
    pc.getOutTheWay()
    sleep(6)
    pc.homeButton()
    pc.zero()
    sleep(1)
    pc.onOff()
예제 #3
0
def twit_likes():
    pc.unlock()
    pc.move(xy.app(3, 2))
    pc.tap()
    a = 0
    while a < 20:
        theart.lookForTwitHearts()
        pc.scrollUp()
        pc.getOutTheWay()
        a += 1
    theart.lookForTwitHearts()  # one last lookfor hearts
    pc.homeButton()
    pc.zero()
    sleep(1)
    pc.onOff()
예제 #4
0
def reddit_upvote():
    pc.unlock()
    pc.move(xy.app(3, 4))
    pc.tap()
    pc.getOutTheWay()
    pc.sleep(2)
    a = 0
    while a < 15:
        pc.scrollUp()
        pc.getOutTheWay()
        lfrl.lookForLikes()
        a += 1
    pc.homeButton()
    pc.zero()
    sleep(1)
    pc.onOff()
예제 #5
0
def tweet(a):
    pc.unlock()
    pc.move(xy.app(3, 2))
    pc.tap()  # open twitter
    pc.movexy(2850, 3000)
    pc.lightTap()  # hit tweet button
    sleep(4)  # wait for keyboard to come up
    pc.type(a)
    pc.movexy(2800, 6350)  # hit tweet button
    pc.tap()
    pc.getOutTheWay()
    sleep(5)
    pc.homeButton()
    pc.zero()
    sleep(1)
    pc.onOff()
예제 #6
0
def fb_likes():
    pc.unlock()
    pc.move(xy.app(2, 3))
    pc.tap()
    pc.getOutTheWay()
    pc.sleep(2)
    a = 0
    while a < 15:
        pc.scrollUp()
        pc.getOutTheWay()
        lffb.lookForLikes()
        a += 1
    pc.homeButton()
    pc.zero()
    sleep(1)
    pc.onOff()
예제 #7
0
def insta_likes(
):  # Yo! lfh.lookForHearts has the commenting functionality built into it.
    pc.unlock()
    pc.move(xy.app(2, 1))  # instagram app
    pc.tap()
    #  look for unliked insta posts
    a = 0
    while a < 20:
        pc.scrollUp()
        pc.getOutTheWay()
        lfh.lookForHearts()
        a += 1

    pc.homeButton()
    pc.zero()
    sleep(1)
    pc.onOff()
예제 #8
0
        print "no hearts found"
            
            


        # # cv2.rectangle(image,(640,0), (750,camH),(0,255,0),3)  # this was used to outline roi

        # #Save the result image
        # cv2.imwrite('result.jpg',image) # previously image
        # Show the saved image
        # cv2.imshow('result', image) # previously image
        # cv2.waitKey(0)
        # cv2.destroyAllWindows()





'''  
heartY 291 = y 5500
heartY 315 = y 5350
heartY 318 = y 5300
hearty 731 = y 3700
heartY 824 = y 3500
'''

if __name__ == "__main__":
    pc.zero()               #put the zeros in here so it doesn't zero while scrolling
    lookForLikes()
    pc.zero()
예제 #9
0
                print "heartX, heartY = (%d, %d)" % (heartX, heartY)
                print "heartW, heartH = (%d, %d)" % (w, h)
                toY = mapValues.myMap(heartY)
                print "toY = %d" % toY
                pc.movexy(2650, toY)
                sleep(1)
                pc.lightTap()
                pc.checkStatus()
                # return(toY)


# # cv2.rectangle(image,(640,0), (750,camH),(0,255,0),3)  # this was used to outline roi

# # #Save the result image
# cv2.imwrite('result.jpg',image) # previously image
# # Show the saved image
# cv2.imshow('result', roi) # previously image
# cv2.waitKey(0)
# cv2.destroyAllWindows()
''' 
heartY 291 = y 5500
heartY 315 = y 5350
heartY 318 = y 5300
hearty 731 = y 3700
heartY 824 = y 3500
'''

if __name__ == "__main__":
    followBack()
    pc.zero()