@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> anyone awake?
<1> Grovel: I am
<1> now
<1> a bit drunk
<1> but awake
<0> hm
<0> This windows programming stuff is getting on me nerves
<2> hum
<2> sounds like a bot...



<0> hello Ox0F0-0FF
<2> Hi
<2> Do i know you ?
<0> probably not
<0> Do you know a good way to dump the contents of a window into a bmp file
<0> or to memory
<0> from another app?
<2> Are you meaning... screenshot ?
<0> kind of
<2> what operating system you use ?
<0> I want to dump the contents of another app running in another window every other second or so
<0> This is in windows
<0> if it was in linux I would already be on top of it :-)
<0> So I want to "dock" to another app window
<2> press the key "print screen", open paint, go edit->paste
<0> Well, I need the application to handle it
<0> My thought was like this
<0> there must be some kind of Window-id or something
<0> for each open window in Windows
<2> oh you mean windows programming ?
<2> heh, wrong door man
<2> I didn't touch a windows in ages
<0> me neither :(
<2> and i'm so happy for this
<0> thats why Im kinda stuck here
<0> heh
<2> windows programming ****s
<2> try doing this using wxwidgets eventually
<2> leave alone windows-waste-my-time-API
<0> Well, that is for later
<0> developing the GUI
<0> Now im just interested in dumping the contents of another window to a memory buffer
<0> or something
<2> well, wx is actually beyond the simple GUI
<2> it has some more features than this
<2> well, you run in ring0 ?
<0> No, but I guess I can make it kernel space
<0> if I need to
<0> and just dump it
<0> but the hard part would be to follow the Window around
<0> if the user moved it
<0> I could find the window id
<2> Well, i don't think it's needed but with this and if you know the resolution and the bpp...
<0> the coordinates
<0> and dump the screen buffer
<2> just start to read from 0xA000
<0> Then I would get the whole screen



<2> ah...
<2> only the window...
<0> and if the user moved it around
<2> heh
<0> it would be messy
<2> you know....
<2> I have a phylosophy for this...
<2> It's windows... if _you_ don't _have_ _to_ kill your nerves with it.... just don't
<0> There must be a way to just dump the contents of one window, without resorting to kernel space hardcore hacking
<2> yes
<2> must have
<2> had a look at msdn ?
<0> heh
<0> they are just talking about how to use c++ and c#
<2> there's a very good irc chan about windows programming
<0> cl***es and inheritance
<2> i think it on efnet or undernet
<2> What language you use ?
<0> ***embly
<0> but I can do c++ or whatever
<2> of course
<2> well, maybe do it first in C++ or C to get how it works and what you have to do...
<2> then, recode it in asm
<2> why doing this in asm btw ?
<2> just for fun ?
<0> its much faster in asm
<0> I need to analyze the contents of the window-dump in real time
<2> much faster in asm...
<2> actually it depends
<2> on small programs, it's most likely true
<2> now, if a program get bigger, you don't benefit of C/C++ compilers optimisation
<2> and the programmer is more likely to add without noticing it stuff that will make the program slower
<0> heh
<0> Dont worry
<0> I do know how to optimize code
<2> heh
<2> I don't speak of this
<2> of course you know the tips and tricks
<0> The second reason is size
<2> just there's stuff you won't notice or forget, after all you're human
<2> the size ?
<0> if I write it using Visual Studio I'd get like 2mb exe
<2> true
<0> and it would take me 2 years to get it down to 1.82kb
<0> which is the maxium size for this app
<2> why is it the maximum size for it ?
<0> I need to fit it into a command line buffer
<0> that is 2048 bytes
<0> and some bytes are already taken
<2> Are you writting some kind of spyware ?
<2> Well, have fun anyways, good luck
<0> heh
<2> i have to sleep now
<0> See you around
<2> yup
<2> nite nite


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #assembly
or
Go to some related logs:

javascript microtime -php
Linux pass argument to alias
JMenu within JToolbar
thestrangeangel
#allnitecafe
camo
#allnitecafe
shah ruck khan
#allnitecafe
#allnitecafe



Home  |  disclaimer  |  contact  |  submit quotes