Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

ask for help for click input type = hidden

$
0
0

html code below,

 

<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
<FORM onsubmit="return false;" name=exportform>
<INPUT value=false type=hidden name=fieldsyn>
<INPUT value=false type=hidden name=notesyn>
<INPUT value=false type=hidden name=statusyn>
<INPUT type=hidden name=statusmonth>
<INPUT type=hidden name=statusyear>
<INPUT value=false type=hidden name=exportyn>
<INPUT value=false type=hidden name=lettersyn>
<INPUT value=false type=hidden name=regionsyn>
<INPUT value=false type=hidden name=tu_exportyn>
<INPUT value=false type=hidden name=score_exportyn> </FORM>

 

I need to click the box name=exportyn

 

 

My code as below,

Local $oInputs = _IETagNameGetCollection($oForm, "input")
 For $oInput In $oInputs
    IF $oInput.value = True and String($oInput.NAME) = "exportyn" THEN
       ConsoleWrite($oInput.name)
    _IEFormElementCheckBoxSelect($oInputs, "", "exportyn", 1, "byValue")
    ExitLoop
    EndIf
 Next

 

no luck, also tried

$oeles = _IEFormElementGetCollection($oform)
For $oele In $oeles
if $oele.name = "exportyn" and $oele.value="false" then _IEFormElementSetValue($oele, "True",1)
ConsoleWrite(@TAB & 'Name: ' & $oele.name & '   Tag Type: ' & $oele.tagName & '    Value: ' & $oele.value & '   Type: ' & $oele.type &@CRLF)

_IEAction($oele.name, "click")
Next

 

still no luck

but console gave me:

"C:\Program Files (x86)\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "N:\MY AUTOIT\test1.au3"    
    Name: fieldsyn   Tag Type: INPUT    Value: false   Type: hidden   ID:
    Name: notesyn   Tag Type: INPUT    Value: false   Type: hidden   ID:
    Name: statusyn   Tag Type: INPUT    Value: false   Type: hidden   ID:
    Name: statusmonth   Tag Type: INPUT    Value:    Type: hidden   ID:
    Name: statusyear   Tag Type: INPUT    Value:    Type: hidden   ID:
    Name: exportyn   Tag Type: INPUT    Value: True   Type: hidden   ID:
    Name: lettersyn   Tag Type: INPUT    Value: false   Type: hidden   ID:
    Name: regionsyn   Tag Type: INPUT    Value: false   Type: hidden   ID:
    Name: tu_exportyn   Tag Type: INPUT    Value: false   Type: hidden   ID:
    Name: score_exportyn   Tag Type: INPUT    Value: false   Type: hidden   ID:

 


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>