← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #182893]: I changed a different size monitor , the pics cannot be recognized

 

Question #182893 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/182893

surfdork proposed the following answer:
Verify your PPI (DPI) settings are the same on both systems.  Also focus
on capturing unique geometric primitives, especially as a test between
both systems

If these are windows systems the following .vbs script will return in a
message box the current PPI setting,this will spare a continual menu
safari to get PPI settings on test systems


Const HKEY_CURRENT_USER = &H80000001
strComputer = "."
strKeyPath = "Control Panel\Desktop\WindowMetrics"
strEntryName ="AppliedDPI"
Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
    strComputer & "\root\default:StdRegProv")
objReg.GetDwordValue HKEY_CURRENT_USER, strKeyPath, strEntryName, strValue
Wscript.Echo strValue, "DPI"

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.