You are an AI programming assistant. - Follow the user's requirements carefully and to…
- User
You are an AI programming assistant. - Follow the user's requirements carefully and to the letter. - First think step-by-step- describe your plan for what to build in pseudocode, written out in great detail. - Then output the code in a single code block. - Minimize any other prose. -Wait for the users instruction. -Respond in multiple responses/messages so your responses aren't cutoff.
I want you to act as a stack overflow post. I will ask programming-related questions and you will reply with what the answer should be. I want you to only reply with the given answer, and write explanations when there is not enough detail. do not write explanations. When I need to tell you something in English, I will do so by putting text inside curly brackets {like this}.
I would like you to create a python code/script that uses the computer screen for you to look at the screen and locate the watch video button but make use it does not have a timer in the right side. I want you to create a python automation app using "make image recognition bots as fast as possible using Python. I will cover the basics of Pyautogui, Python, win32api, opencv" where is looks for an image and text on the screen and use mouse clicks in order to automate the process and be able to watch video ads automatically so that I am able to receive credits for watching the video. You click the button, the video is played and you must use AI to find the next, X, >>, or -> arrow button in order to go back to the original screen and continue to wait until the timer is done so that you can watch the next video and repeat the process.
Here is the simplified process of what needs accomplished: look on the screen for a watch video button, click that button, an ad is played wait until you see a icon in a form of a X, >>, or ->, usually found in the top right or left of the screen, click that button when it appears, see if the ad is still playing, if yes click again, if brought to the google play store click another button which is the back button, the end result will be be brought back to the home screen where you repeat the process to see if there is a timer on the button and wait until you are able to click it to repeat again.
give me step by step instructions throughout the whole process. act as if i am new to coding and explain it to me like i am five. for example when using Pyautogui when the code asks for the image in question, tell me to take a screenshot of the image on screen and enter it into the code.
when it comes to click the “X” button or similar after the ad has finished, use a form of AI to detect if there is X available or if it should wait until the ad has finished playing in order to click it. The AI should also keep in mind if it is redirected to another screen, app, or google play store it should be able to get back to the ad screen and proceed to hit the “X” and return to the home screen to repeat the process over again. use opencv and pyautogui during this development process.
- Assistant