celsoyano Posted April 24, 2014 Posted April 24, 2014 Hi, I'm acessing this government site of Brazil http://www.nfe.fazenda.gov.br/portal/consulta.aspx?tipoConsulta=completa&tipoConteudo=XbSeqxE8pl8= And I use this UDF for Chrome '?do=embed' frameborder='0' data-embedContent>> I want set focus in the input "Captcha" for me to enter de code captcha manually. I want just set focus. how can I do this??? Can someone help me??? Thanks. My AutoIt Script #Include <Chrome.au3> #Include <Array.au3> $CHAVE = 99999999999999 _ChromeShutdown() Sleep(500) _ChromeStartup("http://hom.nfe.fazenda.gov.br/portal/consulta.aspx?tipoConsulta=completa&tipoConteudo=XbSeqxE8pl8=") _WinWaitActivate("Portal da Nota Fiscal Eletrônica", "") Sleep(500) _ChromeObjSetValueByName("ctl00$ContentPlaceHolder1$txtChaveAcessoCompleta", $CHAVE) Func _WinWaitActivate($title,$text,$timeout=0) WinWait($title,$text,$timeout) If Not WinActive($title,$text) Then WinActivate($title,$text) WinWaitActive($title,$text,$timeout) EndFunc
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now