@@ -2135,11 +2135,11 @@ Func __WinHttpHTML5FormAttribs(ByRef $aDtas, ByRef $aFlds, ByRef $iNumParams, By
2135
2135
; "name:whatever", "Xcoord,Ycoord"
2136
2136
; "id:whatever", "Xcoord,Ycoord"
2137
2137
; "whatever", "Xcoord,Ycoord" ;<- same as "id:whatever"
2138
- Local $aSpl , $iSubmitHTML5 = 0 , $iInpSubm , $sImgAppx = " ."
2138
+ Local $aSpl , $iSubmitHTML5 = 0 , $iInpSubm , $sImgAppx = " ." , $sInpNme , $sType , $iX = 0 , $iY = 0 , $aStrSplit
2139
2139
For $k = 1 To $iNumParams
2140
2140
$aSpl = StringSplit ($aFlds [$k ], " :" , 2 )
2141
2141
If $aSpl [0 ] = " type" And ($aSpl [1 ] = " submit" Or $aSpl [1 ] = " image" ) Then
2142
- Local $iSubmIndex = $aDtas [$k ], $iSubmCur = 0 , $iImgCur = 0 , $sType , $sInpNme
2142
+ Local $iSubmIndex = $aDtas [$k ], $iSubmCur = 0 , $iImgCur = 0
2143
2143
If $aSpl [1 ] = " image" Then
2144
2144
$iSubmIndex = Int ($aDtas [$k ])
2145
2145
EndIf
@@ -2159,7 +2159,6 @@ Func __WinHttpHTML5FormAttribs(ByRef $aDtas, ByRef $aFlds, ByRef $iNumParams, By
2159
2159
$sInpNme = __WinHttpAttribVal($aInput [$iInpSubm ], " name" )
2160
2160
If $sInpNme Then $sInpNme &= $sImgAppx
2161
2161
$aInput [$iInpSubm ] = ' type="image" formaction="' & __WinHttpAttribVal($aInput [$iInpSubm ], " formaction" ) & ' " formenctype="' & __WinHttpAttribVal($aInput [$iInpSubm ], " formenctype" ) & ' " formmethod="' & __WinHttpAttribVal($aInput [$iInpSubm ], " formmethod" ) & ' "'
2162
- Local $iX = 0 , $iY = 0
2163
2162
$iX = Int (StringRegExpReplace ($aDtas [$k ], " (\d+)\h*(\d+),(\d+)" , " $2" , 1 ))
2164
2163
$iY = Int (StringRegExpReplace ($aDtas [$k ], " (\d+)\h*(\d+),(\d+)" , " $3" , 1 ))
2165
2164
ReDim $aInput [UBound ($aInput ) + 2 ]
@@ -2171,7 +2170,7 @@ Func __WinHttpHTML5FormAttribs(ByRef $aDtas, ByRef $aFlds, ByRef $iNumParams, By
2171
2170
EndSwitch
2172
2171
Next
2173
2172
ElseIf $aSpl [0 ] = " name" Then
2174
- Local $sInpNme = $aSpl [1 ], $sType
2173
+ $sInpNme = $aSpl [1 ]
2175
2174
For $i = 0 To UBound ($aInput ) - 1 ; for all input elements
2176
2175
$sType = __WinHttpAttribVal($aInput [$i ], " type" )
2177
2176
If $sType = " submit" Then
@@ -2184,7 +2183,7 @@ Func __WinHttpHTML5FormAttribs(ByRef $aDtas, ByRef $aFlds, ByRef $iNumParams, By
2184
2183
If __WinHttpAttribVal($aInput [$i ], " name" ) = $sInpNme And $aDtas [$k ] Then
2185
2184
$iSubmitHTML5 = 1
2186
2185
$iInpSubm = $i
2187
- Local $aStrSplit = StringSplit ($aDtas [$k ], " ," , 3 ), $iX = 0 , $iY = 0
2186
+ $aStrSplit = StringSplit ($aDtas [$k ], " ," , 3 )
2188
2187
If Not @error Then
2189
2188
$iX = Int ($aStrSplit [0 ])
2190
2189
$iY = Int ($aStrSplit [1 ])
@@ -2199,7 +2198,7 @@ Func __WinHttpHTML5FormAttribs(ByRef $aDtas, ByRef $aFlds, ByRef $iNumParams, By
2199
2198
EndIf
2200
2199
Next
2201
2200
Else ; id
2202
- Local $sInpId , $sType
2201
+ Local $sInpId
2203
2202
If @error Then
2204
2203
$sInpId = $aSpl [0 ]
2205
2204
ElseIf $aSpl [0 ] = " id" Then
@@ -2217,9 +2216,9 @@ Func __WinHttpHTML5FormAttribs(ByRef $aDtas, ByRef $aFlds, ByRef $iNumParams, By
2217
2216
If __WinHttpAttribVal($aInput [$i ], " id" ) = $sInpId And $aDtas [$k ] Then
2218
2217
$iSubmitHTML5 = 1
2219
2218
$iInpSubm = $i
2220
- Local $sInpNme = __WinHttpAttribVal($aInput [$iInpSubm ], " name" )
2219
+ $sInpNme = __WinHttpAttribVal($aInput [$iInpSubm ], " name" )
2221
2220
If $sInpNme Then $sInpNme &= $sImgAppx
2222
- Local $aStrSplit = StringSplit ($aDtas [$k ], " ," , 3 ), $iX = 0 , $iY = 0
2221
+ $aStrSplit = StringSplit ($aDtas [$k ], " ," , 3 )
2223
2222
If Not @error Then
2224
2223
$iX = Int ($aStrSplit [0 ])
2225
2224
$iY = Int ($aStrSplit [1 ])
0 commit comments