Forum Discussion

stevenmkeller's avatar
stevenmkeller
Occasional Contributor
15 years ago

Regions coming up different in Windows 7

I have script where I call Regions["Compare"] on about 1300 regions.  I recently upgraded my computer from Windows Vista to Windows 7 operating system.  When running my script on Windows Vista, everything worked as expected.  Now when I run my script roughly 160 regions come up saying they are different everytime.  They are all coming up different because of the OK button that appears in the dialog I am checking, the OK button is the active item in the dialog.



I have ran my script and set all the regions to update and then I run my script again with the regions set to not update and they come back saying they are different.  I have made sure that I have "Disable DWM before capturing image" enabled in the Default Project Properties.  I also have "Update regions" enabled in Options.  I have sent AutomatedQA emails stating this problem but they just responded by telling me to make sure "Disable DWM before capturing image" is enabled, which as I just stated it is.  The other option they gave me is to "ignore the button" which would be a real pain cause I would have to do this with 160 regions.



This is only a problem on Windows 7.  Has anyone else ran into a problem like this on Windows 7?  Everything worked perfectly fine on Windows Vista.



If you need anymore info please let me know.



Thanks

4 Replies

  • stevenmkeller's avatar
    stevenmkeller
    Occasional Contributor
    I should also add that I am using the Windows 7 Basic theme not an Aero Theme.
  • stevenmkeller's avatar
    stevenmkeller
    Occasional Contributor
    Anyone have any suggestions?  How can I make Windows 7 look like Windows Vista?



    I found one possible solution.  TestComplete 8 has a new feature called Region.Check that has a ColorTolerance parameter that can fix my issue. The only problem is that I will have to change 1300 lines of code to use this new method.



    It would really be nice to know what changed between Windows Vista and Windows 7 that is causing this slight color difference.
  • Oracle's avatar
    Oracle
    New Contributor
    I am experiencing the same problem. Do you have a solution yet?
  • If you are able to retroactively apply a filter mask to the region image, you should be able to exclude the OK button area. However, I don't know if it's a simple job (or even possible) to retroactively apply a mask to an image checkpoint.



    Good luck.