Created
August 31, 2015 17:34
-
-
Save atimermann/4f201af8be78f7297754 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
logWrite('------'); | |
Local $oP0=_UIA_getObjectByFindAll($UIA_oDesktop, "Title:=Siscomex Carga - Windows Internet Explorer;controltype:=UIA_WindowControlTypeId;class:=IEFrame", $TreeScope_Children); | |
Local $oP1=_UIA_getObjectByFindAll($oP0, "controltype:=UIA_PaneControlTypeId;class:=Frame Tab", $TreeScope_Children); | |
Local $oP2=_UIA_getObjectByFindAll($oP1, "title:=Siscomex Carga - Windows Internet Explorer;controltype:=UIA_PaneControlTypeId;class:=TabWindowClass", $TreeScope_Children); | |
Local $oP3=_UIA_getObjectByFindAll($oP2, "controltype:=UIA_PaneControlTypeId;class:=Shell DocObject View", $TreeScope_Children); | |
Local $oP4=_UIA_getObjectByFindAll($oP3, "controltype:=UIA_ImageControlTypeId;iaccessiblevalue:=https://www4c.receita.fazenda.gov.br/carga-web/captcha.jpg", $TreeScope_Descendants); | |
Local $coord = _StringExplode(_UIA_getPropertyValue($oP4, $UIA_BoundingRectanglePropertyId), ";"); | |
;Remove Borda Vermelha (Minimiza e restaura) | |
_UIA_Action($oP0,"minimize") | |
sleep(500); | |
_UIA_Action($oP0,"normal") | |
sleep(500); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment