Solved Screenshot

Lampje

Member
Local time
Today, 08:02
Joined
Jul 20, 2021
Messages
37
Dear Forum,

as you can see in the image, this is the well-known game Monopoly. A Dutch version about in the 1970s.

What is the intention and I have been looking for this on the internet but all the options I can find are satisfactory and do not work.

At the top right, left of the prison you will see a red frame, I want to place the area in a Picture by means of a screenshot which are used in other Forms.

Who can help me on my way with this.

Greetings Lamp
Schermafbeelding 2025-04-09 163940.png
 
First, just to clarify: You want to take the contents of the red frame as a screenshot and treat it as a picture to be pasted elsewhere. If that is NOT what you wanted then my solution below will be incorrect.

Second, which version of Windows are you running?

The easiest (and most generic) way to do this is to load your full image to the screen. Then use CTRL/PrtSc (print screen) to put the whole image on the clipboard. Next, open MS Paint. Paste the saved image from the clipboard. Use the Paint cropping tool to isolate what you want. Finally you can save the resulting cropped image.

The next best answer is to learn to use the MS Clipping Tool that is part of Windows 11.

A bit higher in the scale are commercial tools like Clip-It and several others. But they are not free.
 
Did you mean "unsatisfactory"?

You want to screenshot that limited area of the game board? Programmatically taking a screenshot of Windows frame is complicated enough (search topic "Access VBA screenshot"). Grabbing a segment of window would be maddeningly complicated.

Agree with Doc, open board image in Paint and clip what you want.
 
Thanks for the response and suggestion how this is possible.

Windows 365 64 bit

The steps you describe cannot be done in the game as they give a different picture in ten minutes.

A little explanation, when a player comes on the field, rent will have to be paid, so I want to take a screenshot at that time which will be in another form. As proof, so to speak.
 
Why not create individual images of each street (I'm guessing the main board is an image, you can use the snipping tool) and then re-create the setup on the other forms. The player and properties must be recorded in the database so, you can build the same 'segment' again on your other form.
 
cheekybuddha,

Thanks for the thought, but it really has to be a screenshot of the moment, pawn and houses/hotels.
 
The screenshot isn't THAT hard. It is the isolation of the rectangle in the resulting image that becomes difficult.
 
Perhaps explain how the game works - player ‘shakes the dice’ gets a 5. What happens next? Is the pawn an image control or a form? What is the algorithm to move it? From that, what data do you have to determine where it is on the screen?

Also how is the board made up? A single image or multiple images/forms for each part of the board?

My point is if you have multiple images positioned to form the board (or better multiple forms) you can determine the image/form the pawn is over and just screenshot it.

Same goes for the houses
 
He is saying that each square on the board can look different at any given time showing a player token on/off a particular square, house/hotel on a particular square. So he wants to use vba to screen shot the resulting view of the square at a point in time during the game. That's just two coordinates that match what you would normally define when using the sniping tool. The problem is different screen resolutions will cause those coordinates to be different.

Forget about the game for now, how would you take a snipit of your screen with vba to start with? After learning to do that, then it becomes a challenge to figure out the exact grid that will be used relative to the entire screen being used. Screenshots work off the entire screen area which will be different depending on monitor and resolution and magnification settings.
 
Mike Krailo,

You hit the nail on the head.
The screen resolution is not important because the game is played on two equal computer/monitors.

The most important thing is to be able to take a screenshot at any time of the part that is in the area of the red frame. This can therefore occur with any street name over the entire game board.
 
I think you would still be better off just recreating the portion you need with stored images for each street/station/utility with the information you have on the turn in question.

If really necessary to screenshot (eg because you want to email it or something) then do it in a special form and screenshot that instead.

Otherwise you may end up trying to store thousands of images unnecessarily.
 
The screen resolution is not important because the game is played on two equal computer/monitors.
I was referring to an application that was used by others with different monitor resolution. I you don't care about others, then it might be doable customizing it to your own monitors.

If you only want that one single area of the screen to be captured, then what about making that red frame part of the board into it's own separate subform. Then the subform object can be targeted for the screen shot.

I found an article with example database on Daniel Pineault's site about doing this type of thing. You will have to go through it yourself and see if it will work for you. Taking Screenshots In Access App

I believe the version he has is for 32bit access, so it needs to be modified a bit to make it work on 64bit access. The standard PtrSafe code would have to be added and then recompile.
 
Nice.

I disabled Min/Max buttons so they don't get in the way when dragging form. I found form could be resized small enough so that the header could not be grabbed with those controls active.
 

Users who are viewing this thread

Back
Top Bottom