Server Help

Non-Subspace Related Coding - Couple of vb6 questions

Anonymous - Thu May 04, 2006 4:02 pm
Post subject: Couple of vb6 questions
How would I make my program take a screen capture for a specific area of the screen?

And

How do I make one object invisible when another object is visible?


Thanks.
Cyan~Fire - Thu May 04, 2006 9:08 pm
Post subject:
Screen captures are actually more complicated than you might think. The method I've seen is to create a DC, select a bitmap into it, and then use BitBlt() to copy from the source DC. If you didn't understand that, you're not ready.

And I think you'll have to be more clear with your second question.
Anonymous - Sat May 06, 2006 12:16 pm
Post subject:
Okay. Thanks.


Second question:

I found how how to do it. Im making an Avatar Maker and I want the user to be able to click a button an image shows up, then when they click another button in the same catagory the image within that catagory that they chose before becomes invisible..

Um I guess I can explain it better..

Okay - think of a dress up game made in Flash. Where a user clicks on a shirt and then the shirt goes on the top part of the body. It replaces the previous shirt image already on the body. Same goes for the legs, the head, neck etc..
Cyan~Fire - Sun May 07, 2006 8:40 pm
Post subject:
I think the answer to that will become apparent once you actually start coding the app.
Anonymous - Sun May 07, 2006 11:13 pm
Post subject:
oh, okay icon_razz.gif
Samapico - Tue May 16, 2006 12:09 pm
Post subject:
.visible=true

.visible=false

...have fun tongue.gif
Doc Flabby - Fri May 26, 2006 3:40 pm
Post subject:
one option (ugly + hacky)

would be to send the print screen key using vb (screen capture key)

then it would just be gettting it off the cliboard.

of couse you would need some way to preserver the cliboards current contents
D1st0rt - Mon May 29, 2006 4:22 am
Post subject:
You should probably talk to Drake on SSForum because he does a lot of VB programming for his map editor.
Cerium - Mon May 29, 2006 8:26 pm
Post subject:
Doc Flabby wrote:
one option (ugly + hacky)

would be to send the print screen key using vb (screen capture key)

then it would just be gettting it off the cliboard.

of couse you would need some way to preserver the cliboards current contents


VB5 had a clipboard object, so you could easily do some swapping to use your method. But, I believe it would be more work and more prone to failure.
Using the DC method is much more reliable, and only breaks in a few common cases, and the code is much smaller AND you dont have to deal with the clipboard.


Also, its nice to see you working on something that isnt designed to piss someone off, quan. Keep it up.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group