View Single Post
  #4  
Old 04-23-2007, 10:06 PM
_dave_ _dave_ is offline
Senior Member
 
Join Date: Feb 2005
Location: UK
Posts: 2,628
Default Re: dave, clear PM box please

[ QUOTE ]

possibly even adding the ability to work from a buffered off-screen image (I've never used it, but I'm guessing that AHK is doing lots and lots of small BitBlts for the image search?).


[/ QUOTE ]

That's what I was thinking to do, one big BitBlt between processes (which snoopfree would slow down), then the ~300 or so that BetPot does conducted in it's own memory space - but I'd have to re-implement the AHK ImageSearch to work from an off-screen HDC, which would take some time for me to figure out.

Right now AHK ImageSearch requires the window to be visible, so I'm guessing it uses the main desktop HDC for everything - so a window specific function without visible requirement may well be useful for other purposes also. It would reduce compatibility to >= XP, which probably isn't so much of an issue these days - GDI PrintWindow() function does not exist before XP, and it is the only way I know of to get a bitmap into memory from an invisible / obstructed window.

dave.
Reply With Quote