Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Capturing the screen

Author
Message
Tron 9000
21
Years of Service
User Offline
Joined: 14th Nov 2003
Location:
Posted: 14th Nov 2003 16:16
1. Can you capture an image of the current desktop in Dark Basic Pro?
2. (less important) Can you compare two images in that if the images are exactly same then the vaule will be "1"?

I'm trying to make a bot for a game in Dark Basic Pro.
Mussi
21
Years of Service
User Offline
Joined: 27th Jan 2003
Location: Netherlands
Posted: 14th Nov 2003 16:20
bot using screenshot comparing? don't think that would be very fast if it is possible

Specs: AMD Athlon 1800, 256 DDRRam 266mhz, 80GB HD 7200rmp U133, Geforce 4 Ti4400 128mb ddr sdram
KNau
22
Years of Service
User Offline
Joined: 25th Nov 2002
Location: Canada
Posted: 14th Nov 2003 16:26
If you are talking about screenshots then unfortunately last I heard they did away with the SAVE IMAGE command in DB Pro (which is horribly short sighted of them) but there might be a .dll that you can use. If you are talking about capturing an image of the user's desktop then I don't think you can.

You can do a pixel by pixel comparison between two images to see if they match up. Use the POINT command to get the colour value of each pixel and store them in 2 screen sized arrays (ie. DIM screen_1(800,600) ) and then compare the values (ie. IF screen_2(1,1) = screen_1(1,1) THEN match = 1 ).

http://www.canceriannewmedia.com
Tron 9000
21
Years of Service
User Offline
Joined: 14th Nov 2003
Location:
Posted: 14th Nov 2003 16:41
There is that helper thing for Classic Dark Basic to capture the screen but I would rather use pro of course.
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 14th Nov 2003 19:47
SAVE IMAGE is back in

There's no way that I know of to capture the desktop, although if the DBC helper is a DLL, then you should also be able to use it in DBPro.
KNau
22
Years of Service
User Offline
Joined: 25th Nov 2002
Location: Canada
Posted: 14th Nov 2003 22:04
Is it back in? That's really good news

http://www.canceriannewmedia.com
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 14th Nov 2003 23:21
Heh, I forgot to say that although it *is* back, it's slightly broken - something you'll notice if the image you save is not square

Login to post a reply

Server time is: 2024-11-25 18:00:44
Your offset time is: 2024-11-25 18:00:44