Slow GetPixelColor in Windows 7 x64

General Macro Scheduler discussion

Moderators: JRL, Dorian (MJT support)

Post Reply
Daniel Kovacs
Newbie
Posts: 1
Joined: Mon May 31, 2010 12:47 pm

Slow GetPixelColor in Windows 7 x64

Post by Daniel Kovacs » Mon May 31, 2010 1:11 pm

Hello,

I tried to following code in Macro Scheduler Standard v11 under Windows 7 Ultimate x64:

Let>picture=
Let>j=ys
Repeat>j
Let>i=xs
Add>j,1
Repeat>i
Add>i,1
GetPixelColor>%i%,%j%,pix
If>pixpicture,1
Else
ConCat>picture,0
EndIf
Until>i,xe
Until>j,ye

If I scanned a 30x90 pixel area the process completed in ~30s. After I tried the same code under Windows XP Pro x86 on the same machine I got only ~3s. What can be the possible cause of this difference? Incompatibility with W7 x64 system? If I use LibFunc GDI32 GetPixel, the situation is the same under x64 (~30s). :?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon May 31, 2010 7:38 pm

Hi,

Could be to do with Aeroglass. Just out of curiosity - is it faster when you disable Aeroglass (which would be more of a comparison with XP)?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts