If you pick up the abolition and sell the item, the Currency is piling up a lot, and today, in order to solve that problem and pick up the abolition quickly, i'll send all the Currency to the warehouse, stash joe ~ with one Keyboard input from the character inventory.
Hello life on the room.
I added an upgrade to my last post and this time I used OpenCV to create a Python code that automatically takes potions when your health or mana is half-baked!
First, let's learn about the files that were added or changed before entering.
drinkportion.py – Changed to press a specific key as a result of the change and image processing.
config.cfg – Added options for changes, video processing, and the keyboard value to press at critical point Trigger.
cvFunc.py – It is about additional and video processing.
Let’s start with getting stock data first.
There are three ways to receive stock price.
Using brokerage API
Using APIs provided by Google, Yahoo, Morningstar, etc.
First of all, in this post, we will try to import stock price data in third ways which is most simple.
Python is an intuitive and easy-to-develop language. There are lots of libraries and it’s easy to get help from Google.
It is also an interpreter language, so you do not have to compile like C, C ++, or JAVA, so you can see the results quickly.
There are various versions of Python, but I will use Python3.6 32bit version.
The reason I use this version is to link API of Kiwoom Securities. It seems to work only with 32bit Python.
And we will proceed with development in Windows environment.
Now, if you just apply this post, you'll be able to use the fishing macro. ! Let's review it before entering. In the first hour, we got the mouse coordinates and stored them in init.txt along with the name of the fishing site. In the second hour, we learned how to detect exclamation points. This time, let's take the code we developed in the previous post to the Keyboard and Mouse events so that it becomes automatic fishing.
In this post, we will use the PyAutoGui library to detect an exclamation point that informs the completion of the Chi fishing.
We've put OpenCV in the title, but we're not going to use OpenCV ourselves.
However, one of the functions that PyAutoGui provides is a function called locateOnScreen. There is an item called confidence during the optional argument that this function receives.
You must install OpenCV in order to specify this item.
(Note that PyAutoGui will process the main monitor only if you have a double monitor. )
The mechanism of fishing is repetitive.
Change the tree with life skills.
Move the mouse to the water.
Poke with the keyboard ('w').
Wait for the exclamation mark to appear.
When an exclamation point comes up, the keyboard (' W ') is collected.
Repeat 2 to 5 times.