Home > Software engineering >  Novice, I have an idea how to do it, please
Novice, I have an idea how to do it, please

Time:10-27

I want to use VB to write a program to read automatically fixed position of CARDS, and then to have cut a good figure compared to draw card point of design and color, could you tell me what to do,

CodePudding user response:

CodePudding user response:

http://www.autohotkey.com

CodePudding user response:

JiPaiQi if you want to do some games, I suggest you adopt the way of reading memory.
USES the image recognition. Personally think that there are difficulties to deal with.
1. Different people with different resolution is not good.
2. If the program on the card face like processing (such as: after more like magnified image or not)

And read memory way is better. The data will be in memory, like modify the game, the first as long as read a few times more, to find the phase data. Behind as data is stored and read format. (unless the updated data structure changed. But the data structure is not to say that change is)

CodePudding user response:

Upstairs said good,

CodePudding user response:

On the top floor, say well

CodePudding user response:

3 f idea is good, but the difficulty of the implementation is not so-so,
How do you go to the memory data address???????

I think it's only from the screen image, easy to implement,
Poker game, no matter how the screen resolution, it draw card, should be the same size (number of pixels),
Although different resolution, card would not be the same position on the screen, but can be "boundary scan" :
Each card will have a "border lines" (color is basically fixed, or a limited number of, and with the window background color or color CARDS are different);
According to the window size determine the general location;
According to bearing (on next homes, family) scan vertical border location (home, horizontal scan) or cross border (on buyers, vertical line scan),
Determine cross borders and vertical border of the brand position, the relative position of its points and colors are fixed.
With the position of the first card, according to the distance, can determine the location of the next card, there are a few CARDS,

CodePudding user response:

Indeed, this involves the plugin development aspects of knowledge, from the technical point of view, do not care about the development tools, the operating memory feasible way, does not use some tools to find related memory address first, then a similar approach was used to simulate addressing process, but if the premise is to use VB to write, then the feasibility is not big, because some things may not be the special processing, no injection couldn't correct operation target memory, from the perspective of the VB as well, it's much easier to image recognition because some technology with VB is difficult to achieve, must change tools,
  •  Tags:  
  • API