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.

DarkBASIC Professional Discussion / Is there any way to get screen data from other windows?

Author
Message
w00t
22
Years of Service
User Offline
Joined: 11th Mar 2003
Location:
Posted: 11th Mar 2003 12:52
hi all, Is there a function in darkbasic to get a pointer to other windows screen data so you could copy data from there into darkbasic? I was going to post this in newcomers section but its not really a basic problem i think... Any ideas appreciated
Andy Igoe
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United Kingdom
Posted: 11th Mar 2003 16:26
Do you meen as image data? Print Screen and then copying the clipboard to an image might work for that.

Or do you meen reading off text? I think that will be the domain of a .dll...

Pneumatic Dryll, Outrageous epic cleric of EQ/Xev
God made the world in 7 days, but we're still waiting for the patch.
w00t
22
Years of Service
User Offline
Joined: 11th Mar 2003
Location:
Posted: 11th Mar 2003 16:54
Yea ive tried the print screen method using MrTAOtoads plugin but you cant get the image data from the clipboard to darkbasic, unless you can get a pointer to the clipboard data? Ive been looking at newsgroups for info and you can get the pointer to a directdraw surface which would be ok, so basically in db reserve enough memory, get pointer to surface, copy to db reserved mem, then you can work on it however you want.

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 11th Mar 2003 16:55
Doing that wont be easy - if you get it working properly, I'll add it to my plug-in if you like.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
w00t
22
Years of Service
User Offline
Joined: 11th Mar 2003
Location:
Posted: 11th Mar 2003 17:43
That would be good, just need to copy frame buffer to some db reserved memory that can be worked with, if thats the best way of doing it?

w00t
22
Years of Service
User Offline
Joined: 11th Mar 2003
Location:
Posted: 11th Mar 2003 17:47
Also i assume you would need a function to return the width,height,pitch,depth of the frame buffer to reserve the right amount of memory in db?

w00t
22
Years of Service
User Offline
Joined: 11th Mar 2003
Location:
Posted: 13th Mar 2003 14:02
Well i just dont have the knoweledge to do it Anybody have an easier/better way of doing it plz? Any way of gettin the clipboard data into db then i could just use MrTAToads plugin thing.

MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 13th Mar 2003 14:36
the clipboard commands are only for text - I dont intend to upgrade the commands to handle anything else, I'm afraid.

Good news everyone! I really am THAT good...
http://www.nickk.nildram.co.uk/ for great plug-ins - oh my, yes!
w00t
22
Years of Service
User Offline
Joined: 11th Mar 2003
Location:
Posted: 13th Mar 2003 16:08
Ahh well nps, u did say it was difficult to do.

Login to post a reply

Server time is: 2025-05-18 23:08:10
Your offset time is: 2025-05-18 23:08:10