Good Night all.
im trying to elaborate a script that load information from a notepad or a excel document. I really really have no experience in autoit so i need your help guys,
I have the following layout :
Information to imput
Importation number Enterprise Value Date
1 111111111 1.00 07/01/2013
2 222222222 2.00 07/01/2013
3 333333333 3.00 07/01/2013
4 444444444 4.00 07/01/2013
5 555555555 5.00 07/01/2013
6 666666666 6.00 07/01/2013
7 777777777 7.00 07/01/2013
8 888888888 8.00 07/01/2013
9 999999999 9.00 07/01/2013
10 1111111110 10.00 07/01/2013
#include <IE.au3> $oIE =_IECreate() _IENavigate($oIE, www.fazenda.sp.gov.br/simp) _IELoadWait($oIE) $o_form = _IEFormGetObjByName($oIE,"form1") $o_txtCpf = _IEFormElementGetObjByName($o_form, "txtCpf") $o_txtNumDoc = _IEFormElementGetObjByName($o_form, "txtNumDoc") $O_btnConsultar = _IEFormElementGetObjByName($o_form, "btnConsultar") _IEFormElementSetValue($o_txtcpf, "11111111111") ; txtCpf = Enterprise _IEFormElementSetValue($o_txtNumDoc, "1"); txtNumDoc = Import number $O_btnConsultar.click _IELoadWait($oIE) $o_form = _IEFormGetObjByName($oIE,"_ctl0") $O_btnContinuar = _IEFormElementGetObjByName($o_form, "btnContinuar") $O_btnContinuar.click _IELoadWait($oIE) $o_form = _IEFormGetObjByName($oIE,"Form1") $O_btnGare = _IEFormElementGetObjByName($o_form, "btnGare") $O_btnGare.click _IELoadWait($oIE) $o_form = _IEFormGetObjByName($oIE,"Form1") $o_txtObs = _IEFormElementGetObjByName($o_form, "txtObs") $o_txtDataPagto = _IEFormElementGetObjByName($o_form, "txtDataPagto") $o_txtReceita = _IEFormElementGetObjByName($o_form, "txtReceita") _IEFormElementSetValue($o_txtObs, "1"); txtObs = Import number _IEFormElementSetValue($o_txtDataPagto,"01/08/2013") _IEFormElementSetValue($o_txtReceita,""); txtReceita = value $O_btnGerar.click
Imagine that i have almost 250 files to input and generate the collection on web page.
Is there a way to create a loop that the field (below)seek information in another document like a txt or excel document ?
_IEFormElementSetValue($o_txtcpf, "11111111111") ; txtCpf = Enterprise
_IEFormElementSetValue($o_txtNumDoc, "1"); txtNumDoc = Import number
_IEFormElementSetValue($o_txtObs, "1"); txtObs = Import number
_IEFormElementSetValue($o_txtReceita,""); txtReceita = value
Thanks for the attention.