Je viens de terminer un développement ou je fais une capture toute simple d'une fenêtre IE :
Code : Tout sélectionner
_IENavigate ($oIE, "http://xxxxxxxx#")
$o_form = _IEFormGetObjByName ($oIE, "loginform")
$o_login = _IEFormElementGetObjByName ($o_form, "_username")
$o_password = _IEFormElementGetObjByName ($o_form, "_password")
$o_signin = _IEFormElementGetObjByName ($o_form, "submit")
_IEFormElementSetValue ($o_login, $username)
_IEFormElementSetValue ($o_password, $password)
_IEAction ($o_signin, "click")
_IEPropertySet($oIE, "menubar", False)
_IELoadWait($oIE)
$oIE.document.body.scroll = "no"
...
$pos = WinGetPos(ControlGetHandle($Form1_1, "", "Internet Explorer_Server1"))
_ScreenCapture_Capture($JPGLocal & "\synthese.jpg", $pos[0], $pos[1], $pos[0]+$pos[2], $pos[1]+$pos[3])
Hors, si jamais l'utilisateur utilise un zoom supérieur à 100% car problème de vue, forcément cela impact ma fenêtre IE dans mon interface AutoIT donc ma capture est foutue.
Comme puis-je conserver ma fenêtre IE à 100% avec un zoom supérieur à 100% sous Windows svp ?
Merci pour votre aide.
Cdt,