Jump to content

Recommended Posts

I would like to perform the Auto-fill on IE. but when I use _IEFormGetCollection(), it just returns 30 forms, but all name is "0". Now I want to get the handle for the form and filled into the data, What should I do for the next step. the below forum is for returning the quantity and form. name, and the attached files is for what I want to fill in, and the HTML source code.

$oForms = _IEFormGetCollection($oIE)
MsgBox(0,"",@extended)
For $oForm In $oForms
    MsgBox(0,"",$oForm.name)
Next

 Desktop.rar

Edited by yjing1982

Share this post


Link to post
Share on other sites

I would like to perform the Auto-fill on IE. but when I use _IEFormGetCollection(), it just returns 30 forms, but all name is "0". Now I want to get the handle for the form and filled into the data, What should I do for the next step. the below forum is for returning the quantity and form. name, and the attached files is for what I want to fill in, and the HTML source code.

$oForms = _IEFormGetCollection($oIE)
MsgBox(0,"",@extended)
For $oForm In $oForms
    MsgBox(0,"",$oForm.name)
Next

 Desktop.rar

parts of  the source code

 
<style> 
INPUT { BACKGROUND: #ffffff; BORDER-BOTTOM: #305B8B 1px solid; BORDER-LEFT: #305B8B 1px solid; BORDER-RIGHT: #305B8B 1px solid; BORDER-TOP: #305B8B 1px solid; COLOR: #305B8B; FONT-SIZE: 12px; HEIGHT: 20px; PADDING-TOP: 3px}
A {
    COLOR: #000000; TEXT-DECORATION: underline
}
A:hover {
    TEXT-DECORATION: none
}
body { 
SCROLLBAR-FACE-COLOR: #396DA5; SCROLLBAR-HIGHLIGHT-COLOR: #305B8B; 
SCROLLBAR-SHADOW-COLOR: #799AE1; SCROLLBAR-DARKSHADOW-COLOR: #799AE1; 
SCROLLBAR-3DLIGHT-COLOR: #FFFFFF; SCROLLBAR-ARROW-COLOR: #FFFFFF;
SCROLLBAR-TRACK-COLOR: #FFFFFF;
}
SELECT {
    BORDER-RIGHT: 0.2em groove; BORDER-TOP: 0.2em groove; FONT-SIZE: 0.7em; BORDER-LEFT: 0.2em groove; BORDER-BOTTOM: 0.2em groove; FONT-FAMILY: tahoma,verdana,geneva,sans-serif
}
a.INPUT { }
</style>
<html>
<head>
<title>Magnum2x</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style> 
INPUT.text { BACKGROUND: #ffe0b3; BORDER-BOTTOM: #af6700 1px solid; BORDER-LEFT: #af6700 1px solid; BORDER-RIGHT: #af6700 1px solid; BORDER-TOP: #af6700 1px solid; COLOR: #af6700; FONT-SIZE: 12px; HEIGHT: 18px; PADDING-TOP: 3px}
INPUT.ipDisableStyle { BACKGROUND: #f5f5f5; BORDER-BOTTOM: #a9a9a9 1px solid; BORDER-LEFT: #a9a9a9 1px solid; BORDER-RIGHT: #a9a9a9 1px solid; BORDER-TOP: #a9a9a9 1px solid; COLOR: #af6700; FONT-SIZE: 12px; HEIGHT: 18px; PADDING-TOP: 3px}
.button1 {
    BORDER-RIGHT: #af6700 1px solid; BORDER-TOP: #ffd16e 1px solid; FONT-SIZE: 12px; BACKGROUND: #ff9600; BORDER-LEFT: #ffd16e 1px solid; COLOR: #964700; PADDING-TOP: 3px; BORDER-BOTTOM: #af6700 1px solid; HEIGHT: 21px
}
.button
    {
        border-right: #af6700 1px solid;
        padding-right: 2px;
        border-top: #af6700 1px solid;
        padding-left: 2px;
        font-size: 12px;
        FILTER: progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr=#ffe4e1, EndColorStr=#ff8c00);
        border-left: #af6700 1px solid;
        cursor: hand;
        color: #964700; 
        padding-top: 2px;
        border-bottom: #af6700 1px solid;
    }
SELECT.stext { BACKGROUND: #ffe0b3; BORDER-BOTTOM: #af6700 1px solid; BORDER-LEFT: #af6700 1px solid; BORDER-RIGHT: #af6700 1px solid; BORDER-TOP: #af6700 1px solid; COLOR: #af6700; FONT-SIZE: 12px; HEIGHT: 18px; PADDING-TOP: 3px}
.DisabledTextarea{
    border:1px solid #999;
    width: 226px;
    FONT-SIZE: 12px; 
    SCROLLBAR-FACE-COLOR: #a9a9a9;
    SCROLLBAR-HIGHLIGHT-COLOR: #a9a9a9;
    SCROLLBAR-ARROW-COLOR: #a9a9a9;
}
</style>
</head>
 
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" align="center" border="0" bgcolor="black" cellspacing="1" cellpadding="3" name="PM SHEET" style="font-size:9pt">
  <tr bgcolor="#FFFFFF"> 
    <td colspan="4" style="font-size:10pt"> <b><font color="#FF0000">PM SHEET 
      (Magnum2x)</font></b> </td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td colspan="4"><font color="#0000FF">YEAR 2015</font></td>
  </tr>
  <tr align="center"  bgcolor="#dddddd"> 
    <td><strong>MODEL</strong></td>
    <td><strong>SERIAL NO</strong></td>
    <td><strong>INSTALL DATE</strong></td>
    <td><strong>MACHINE NO</strong></td>
  </tr>
  <tr align="center" bgcolor="#FFFFFF"> 
    
    <td>Magnum 2X</td>
    <td>847108</td>
    <td>2013-1-18</td>
    <td>TS-MAG-010</td>
    
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td colspan="4">&nbsp;</td>
  </tr>
  <tr bgcolor="#FFFFFF"> 
    <td colspan="4">
    
         
      <p><font color="#0000FF">
       
           WEEKLY
        <br>
       
          N/A
          
       
       </font>
      </p>
      <p>
      
      </p>
      
     
         
      <p><font color="#0000FF">
       
           A.MONTHLY
        <br>
       
       &nbsp;&nbsp;1..Air filter cleaning<br>
       
       &nbsp;&nbsp;2.System critical files backup to server<br>
       
       &nbsp;&nbsp;3.Run systemdiag<br>
       
       &nbsp;&nbsp;4.Run Voltage calibration / verification<br>
       
       &nbsp;&nbsp;5..ESD check between tester shell and facility GND less than 10ohm<br>
       
       &nbsp;&nbsp;6.Inspect if there is any broken,loosen,stuck pogo pins, replace bad one<br>
       
       &nbsp;&nbsp;7.Input EPM system <br>
              
      <table border="0" width="100%"  bgcolor="black" cellspacing="1" cellpadding="3" style="font-size:9pt">
        <tr align="center" bgcolor="#CCCCCC"> 
          <td></td>
          <td><b>ITEM</b></td>
          <td><b>PMDATE</b></td>
          <td><b>SCHEDULED DATE</b></td>
          <td><b>RESULTS</b></td>
          <td><b>ACTION</b></td>
          <td><b>PM SORT</b></td>
          <td><b>CAL.DATA</b></td>
          <td><b>REMARK</b></td>
          <td><b>RESPONSIBILITY</b></td>
          <td><b>EFFECTIVE DATE</b></td>
        </tr>
 
        <form action="GroupCheck.asp" method="post">
        <input type="hidden" value="3650" name="machineId"> 
        <input type="hidden" value="7" name="itemCount">
        <input type="hidden" value="1" name="itemType">
        <input type="hidden" value="TS-MAG-010" name="machineno">
        <input type="hidden" value="14230" name="scheduleId">
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <td rowspan="7"><font color="red"> 
              
              M1
              </font></td>
            
            <td rowspan="7"> 
              
              <input type="SUBMIT" class="button" value="SUBMIT101" name="SUBMIT"> 
              <a name="#1"></a><input type="hidden" value="1" name="z_id">
              <input type="hidden" value="627970" name="check_id"> <input type="hidden" value="1" name="type_id"> 
              <input type="hidden" value="3650" name="id"> <input type="hidden" value="271" name="pid"><input type="hidden" value="1" name="frequency"> 
              <input type="hidden" value="Magnum2x" name="pmtype"><input type="hidden" value="mod" name="upType"> </td>
            
            <td rowspan="7">
              <input type="text" value="2015-1-16" class="text" size="8" name="pmdate" readonly>
            </td>
            <td rowspan="7">             
              2015-1-16
              <input type="hidden" value="2015-1-16" class="text" size="8" name="scheduled_date">
            </td>
            
            <input type="hidden" value="627970" name="historyPMId1">
            <input type="hidden" value="1" name="itemNo1">
            <td><font color="#0000FF">1</font>&nbsp;<input type="text" value="ok" class="text" size="24" name="results1"></td>
            <td><textarea name="action1" cols="30" rows="2" wrap="VIRTUAL" class="text" >cleaned</textarea></td>
            <td>
                <select name="selectCalibrationSort1" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark1" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility1"></td>
            <td>2012-10-16</td>
          </tr>
        
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <input type="hidden" value="627971" name="historyPMId2">
            <input type="hidden" value="2" name="itemNo2">
            <td><font color="#0000FF">2</font>&nbsp;<input type="text" value="ok" class="text" size="24" name="results2"></td>
            <td><textarea name="action2" cols="30" rows="2" wrap="VIRTUAL" class="text" >backup</textarea></td>
            <td>
                <select name="selectCalibrationSort2" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark2" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility2"></td>
            <td>2012-10-16</td>
          </tr>
        
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <input type="hidden" value="627972" name="historyPMId3">
            <input type="hidden" value="3" name="itemNo3">
            <td><font color="#0000FF">3</font>&nbsp;<input type="text" value="pass" class="text" size="24" name="results3"></td>
            <td><textarea name="action3" cols="30" rows="2" wrap="VIRTUAL" class="text" >Run systemdiag
</textarea></td>
            <td>
                <select name="selectCalibrationSort3" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark3" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility3"></td>
            <td>2012-10-16</td>
          </tr>
        
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <input type="hidden" value="627973" name="historyPMId4">
            <input type="hidden" value="4" name="itemNo4">
            <td><font color="#0000FF">4</font>&nbsp;<input type="text" value="pass" class="text" size="24" name="results4"></td>
            <td><textarea name="action4" cols="30" rows="2" wrap="VIRTUAL" class="text" >Run Voltage calibration / verification
</textarea></td>
            <td>
                <select name="selectCalibrationSort4" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark4" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility4"></td>
            <td>2012-10-16</td>
          </tr>
        
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <input type="hidden" value="627974" name="historyPMId5">
            <input type="hidden" value="5" name="itemNo5">
            <td><font color="#0000FF">5</font>&nbsp;<input type="text" value="1.2ohm" class="text" size="24" name="results5"></td>
            <td><textarea name="action5" cols="30" rows="2" wrap="VIRTUAL" class="text" >checked</textarea></td>
            <td>
                <select name="selectCalibrationSort5" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark5" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility5"></td>
            <td>2012-10-16</td>
          </tr>
        
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <input type="hidden" value="627975" name="historyPMId6">
            <input type="hidden" value="6" name="itemNo6">
            <td><font color="#0000FF">6</font>&nbsp;<input type="text" value="ok" class="text" size="24" name="results6"></td>
            <td><textarea name="action6" cols="30" rows="2" wrap="VIRTUAL" class="text" >inspected</textarea></td>
            <td>
                <select name="selectCalibrationSort6" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark6" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility6"></td>
            <td>2012-10-16</td>
          </tr>
        
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <input type="hidden" value="627976" name="historyPMId7">
            <input type="hidden" value="7" name="itemNo7">
            <td><font color="#0000FF">7</font>&nbsp;<input type="text" value="ok" class="text" size="24" name="results7"></td>
            <td><textarea name="action7" cols="30" rows="2" wrap="VIRTUAL" class="text" >input</textarea></td>
            <td>
                <select name="selectCalibrationSort7" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark7" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility7"></td>
            <td>2012-10-16</td>
          </tr>
        
        
        </form>

--------------------------------------------------------------------------------------------------------------------------------------------------

       B.QUARTERLY
        <br>
       
       &nbsp;&nbsp;1.DC power supply voltage measure and adjust<br>
       
       &nbsp;&nbsp;2.Run voltage calibration/verification<br>
       
       &nbsp;&nbsp;3.Run timing calibration/verification<br>
       
       &nbsp;&nbsp;4.Run TDR calibration for DUT board <br>
              
      <table border="0" width="100%"  bgcolor="black" cellspacing="1" cellpadding="3" style="font-size:9pt">
        <tr align="center" bgcolor="#CCCCCC"> 
          <td></td>
          <td><b>ITEM</b></td>
          <td><b>PMDATE</b></td>
          <td><b>SCHEDULED DATE</b></td>
          <td><b>RESULTS</b></td>
          <td><b>ACTION</b></td>
          <td><b>PM SORT</b></td>
          <td><b>CAL.DATA</b></td>
          <td><b>REMARK</b></td>
          <td><b>RESPONSIBILITY</b></td>
          <td><b>EFFECTIVE DATE</b></td>
        </tr>
 
        <form action="GroupCheck.asp" method="post">
        <input type="hidden" value="3650" name="machineId"> 
        <input type="hidden" value="4" name="itemCount">
        <input type="hidden" value="2" name="itemType">
        <input type="hidden" value="TS-MAG-010" name="machineno">
        <input type="hidden" value="14230" name="scheduleId">
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <td rowspan="4"><font color="red"> 
              
              Q1
              </font></td>
            
            <td rowspan="4"> 
              
              <input type="SUBMIT" class="button" value="SUBMIT201" name="SUBMIT"> 
              <a name="#92"></a><input type="hidden" value="92" name="z_id">
              <input type="hidden" value="668548" name="check_id"> <input type="hidden" value="2" name="type_id"> 
              <input type="hidden" value="3650" name="id"> <input type="hidden" value="271" name="pid"><input type="hidden" value="1" name="frequency"> 
              <input type="hidden" value="Magnum2x" name="pmtype"><input type="hidden" value="mod" name="upType"> </td>
            
            <td rowspan="4">
              <input type="text" value="2015-3-29" class="text" size="8" name="pmdate" readonly>
            </td>
            <td rowspan="4">             
              2015-3-29
              <input type="hidden" value="2015-3-29" class="text" size="8" name="scheduled_date">
            </td>
            
            <input type="hidden" value="668548" name="historyPMId1">
            <input type="hidden" value="1" name="itemNo1">
            <td><font color="#0000FF">1</font>&nbsp;<input type="text" value="ok" class="text" size="24" name="results1"></td>
            <td><textarea name="action1" cols="30" rows="2" wrap="VIRTUAL" class="text" >measure and adjust
</textarea></td>
            <td>
                <select name="selectCalibrationSort1" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark1" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility1"></td>
            <td>2012-10-16</td>
          </tr>
        
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <input type="hidden" value="668549" name="historyPMId2">
            <input type="hidden" value="2" name="itemNo2">
            <td><font color="#0000FF">2</font>&nbsp;<input type="text" value="pass" class="text" size="24" name="results2"></td>
            <td><textarea name="action2" cols="30" rows="2" wrap="VIRTUAL" class="text" >Run voltage calibration/verification</textarea></td>
            <td>
                <select name="selectCalibrationSort2" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark2" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility2"></td>
            <td>2012-10-16</td>
          </tr>
        
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <input type="hidden" value="668550" name="historyPMId3">
            <input type="hidden" value="3" name="itemNo3">
            <td><font color="#0000FF">3</font>&nbsp;<input type="text" value="pass" class="text" size="24" name="results3"></td>
            <td><textarea name="action3" cols="30" rows="2" wrap="VIRTUAL" class="text" >Run timing calibration/verification</textarea></td>
            <td>
                <select name="selectCalibrationSort3" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark3" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility3"></td>
            <td>2012-10-16</td>
          </tr>
        
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <input type="hidden" value="668551" name="historyPMId4">
            <input type="hidden" value="4" name="itemNo4">
            <td><font color="#0000FF">4</font>&nbsp;<input type="text" value="pass" class="text" size="24" name="results4"></td>
            <td><textarea name="action4" cols="30" rows="2" wrap="VIRTUAL" class="text" >Run TDR calibration</textarea></td>
            <td>
                <select name="selectCalibrationSort4" class="stext" >
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                N/A
            
            </td>
            <td><input type="text" value="" class="text" size="12" name="remark4" ></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility4"></td>
            <td>2012-10-16</td>
          </tr>
        
        
        </form>
        
        <form action="GroupCheck.asp" method="post">
        <input type="hidden" value="3650" name="machineId"> 
        <input type="hidden" value="4" name="itemCount">
        <input type="hidden" value="2" name="itemType">
        <input type="hidden" value="TS-MAG-010" name="machineno">
        <input type="hidden" value="14230" name="scheduleId">
        --------------------------------------------------------------------------------------------------------------------------------

   E.Post PM Check

  <br>

  

  &nbsp;&nbsp;1.Post PM check for data validation<br>

    

      <table border="0" width="100%"  bgcolor="black" cellspacing="1" cellpadding="3" style="font-size:9pt">

        <tr align="center" bgcolor="#CCCCCC"> 

          <td></td>

          <td><b>ITEM</b></td>

          <td><b>PMDATE</b></td>

          <td><b>SCHEDULED DATE</b></td>

          <td><b>RESULTS</b></td>

          <td><b>ACTION</b></td>

          <td><b>PM SORT</b></td>

          <td><b>CAL.DATA</b></td>

          <td><b>REMARK</b></td>

          <td><b>RESPONSIBILITY</b></td>

          <td><b>EFFECTIVE DATE</b></td>

        </tr>

 

        <form action="GroupCheck.asp" method="post">

        <input type="hidden" value="3650" name="machineId"> 

        <input type="hidden" value="1" name="itemCount">

        <input type="hidden" value="5" name="itemType">

        <input type="hidden" value="TS-MAG-010" name="machineno">

        <input type="hidden" value="14230" name="scheduleId">

        

            

          <tr align="center" bgcolor="#E8E8E8"> 

            

            <td rowspan="1"><font color="red"> 

              

              M1

              </font></td>

            

            <td rowspan="1"> 

              

              <input type="SUBMIT" class="button" value="SUBMIT501" name="SUBMIT"> 

              <a name="#108"></a><input type="hidden" value="108" name="z_id">

              <input type="hidden" value="627977" name="check_id"> <input type="hidden" value="5" name="type_id"> 

              <input type="hidden" value="3650" name="id"> <input type="hidden" value="271" name="pid"><input type="hidden" value="1" name="frequency"> 

              <input type="hidden" value="Magnum2x" name="pmtype"><input type="hidden" value="mod" name="upType"> </td>

            

            <td rowspan="1">

              <input type="text" value="2015-1-16" class="text" size="8" name="pmdate" readonly>

            </td>

            <td rowspan="1">             

              2015-1-16

              <input type="hidden" value="2015-1-16" class="text" size="8" name="scheduled_date">

            </td>

            

            <input type="hidden" value="627977" name="historyPMId1">

            <input type="hidden" value="1" name="itemNo1">

            <td><font color="#0000FF">1</font>&nbsp;<input type="text" value="ok" class="text" size="24" name="results1"></td>

            <td><textarea name="action1" cols="30" rows="2" wrap="VIRTUAL" class="DisabledTextarea" disabled>N/A</textarea></td>

            <td>

                <select name="selectCalibrationSort1" class="stext" disabled>

                    <option value="0" >--SELECT--</option>

                    <option value="1" selected>Normal PM item</option>

                    <option value="2" >Calibrate PM item</option>

                </select>

            </td>

            <td>

            

                <font color="#a9a9a9">N/A</font>

            

            </td>

            <td><input type="text" value="N/A" class="ipDisableStyle" size="12" name="remark1" disabled></td>

            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility1"></td>

            <td>2012-10-16</td>

          </tr>

        

        

        </form>

        E.Post PM Check
           <br>
       
       &nbsp;&nbsp;1.Post PM check for data validation<br>
              
      <table border="0" width="100%"  bgcolor="black" cellspacing="1" cellpadding="3" style="font-size:9pt">
        <tr align="center" bgcolor="#CCCCCC"> 
          <td></td>
          <td><b>ITEM</b></td>
          <td><b>PMDATE</b></td>
          <td><b>SCHEDULED DATE</b></td>
          <td><b>RESULTS</b></td>
          <td><b>ACTION</b></td>
          <td><b>PM SORT</b></td>
          <td><b>CAL.DATA</b></td>
          <td><b>REMARK</b></td>
          <td><b>RESPONSIBILITY</b></td>
          <td><b>EFFECTIVE DATE</b></td>
        </tr>
 
        <form action="GroupCheck.asp" method="post">
        <input type="hidden" value="3650" name="machineId"> 
        <input type="hidden" value="1" name="itemCount">
        <input type="hidden" value="5" name="itemType">
        <input type="hidden" value="TS-MAG-010" name="machineno">
        <input type="hidden" value="14230" name="scheduleId">
        
            
          <tr align="center" bgcolor="#E8E8E8"> 
            
            <td rowspan="1"><font color="red"> 
              
              M1
              </font></td>
            
            <td rowspan="1"> 
              
              <input type="SUBMIT" class="button" value="SUBMIT501" name="SUBMIT"> 
              <a name="#108"></a><input type="hidden" value="108" name="z_id">
              <input type="hidden" value="627977" name="check_id"> <input type="hidden" value="5" name="type_id"> 
              <input type="hidden" value="3650" name="id"> <input type="hidden" value="271" name="pid"><input type="hidden" value="1" name="frequency"> 
              <input type="hidden" value="Magnum2x" name="pmtype"><input type="hidden" value="mod" name="upType"> </td>
            
            <td rowspan="1">
              <input type="text" value="2015-1-16" class="text" size="8" name="pmdate" readonly>
            </td>
            <td rowspan="1">             
              2015-1-16
              <input type="hidden" value="2015-1-16" class="text" size="8" name="scheduled_date">
            </td>
            
            <input type="hidden" value="627977" name="historyPMId1">
            <input type="hidden" value="1" name="itemNo1">
            <td><font color="#0000FF">1</font>&nbsp;<input type="text" value="ok" class="text" size="24" name="results1"></td>
            <td><textarea name="action1" cols="30" rows="2" wrap="VIRTUAL" class="DisabledTextarea" disabled>N/A</textarea></td>
            <td>
                <select name="selectCalibrationSort1" class="stext" disabled>
                    <option value="0" >--SELECT--</option>
                    <option value="1" selected>Normal PM item</option>
                    <option value="2" >Calibrate PM item</option>
                </select>
            </td>
            <td>
            
                <font color="#a9a9a9">N/A</font>
            
            </td>
            <td><input type="text" value="N/A" class="ipDisableStyle" size="12" name="remark1" disabled></td>
            <td><input type="text" value="yjing1982" class="text" size="16" name="responsibility1"></td>
            <td>2012-10-16</td>
          </tr>
        
        
        </form>

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By WoodGrain
      Hi All,
      I've tried to create a script to browse to a web page in IE, but it only works for some sites, I've tried to simplify the script as much as possible, hoping you can point me in the right direction - thanks.
      This one going to Google does work:
      #include <IE.au3> $oIE = _IECreate("https://www.google.com.au/", 0, 1, 1) _IELoadWait($oIE) _IEQuit($oIE) But this one going to OneDrive opens the IE page, but fails immediately returning the errors, and the IE window is not closed:
      --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_ClientDisconnected (-2147023174, Browser has been deleted prior to operation.)
      --> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidObjectType ()
      --> IE.au3 T3.0-2 Error from function _IEQuit, $_IESTATUS_InvalidObjectType
      #include <IE.au3> $oIE = _IECreate("https://abccorp-my.sharepoint.com/", 0, 1, 1) _IELoadWait($oIE) _IEQuit($oIE) Even if I put a sleep timer in for 10 seconds after the _IECreate it still doesn't work
      Thanks all!
    • By Dent
      https://rmplusportal.rightmove.co.uk/
      On that page is a login form requiring username, password and then the clicking of the button (or pressing enter but I'm not a fan of using Send)
      Here's the section of code from the page that specifically deals with the form...
      <form> <div class="error-message-login" data-test="error-message"></div> <label> <span>User email</span> <div class="ui input"> <input id="email" type="text" placeholder="Your email"> </div> </label> <label> <span>Password</span> <div class="ui input"> <input id="password" type="password" placeholder="Password"> </div> </label> <button class="ui primary button" role="button" data-test="login">Login</button> <p> <a class="forgot-your-password" href="https://www.rightmove.co.uk/forgottenPasswordForm.html">Forgot your password?</a> </p> </form> Specifically the <button class...></button> is causing me problems as I can't find a way to click it. The 'User email' and 'Password' objects have an 'id' so I can reference these in the AutoIT code and interact with them and the button also previously had the id of 'login' but I guess in a change to this page that was altered.
      Oddly, if I get the code to show the instance of IE that is created and manually click Login or press Enter the page gives me an error saying 'Please enter your email address' even though it is there. I have to manually go into each field and make a change i.e. adding a character to the end of each field then deleting it before it will let me in by either clicking Login or pressing enter. So maybe there's so code elsewhere on the page that knows the fields haven't been physically typed in?
      Any help on this would be much appreciated.
    • By JackER4565
      Hi, first of all thanks to all the guys who always help people in the forums, I wouldn't be able to do anything if wasn't for your help, even if I don't ask it myself.
       
      I've created this code to get some info on a monitoring network on my work. It relays on _IETableGetCollection and _IETableWriteToArray.
      It works well, but take around 3:25 minutes to get the info from 28 pages (some of them are large and take longer to load, but most of them are small and fast).
      My question is if you see a way to get the program to go faster...
       
      I've tried to make it easy for you to understand and edited somethings with sensitive info.
      (Some of the pages doesn't have the black divider with MIRA in the end, so I need to search if it is there or not.)
       
      #include <IE.au3> #include <array.au3> Local $oIE = _IECreate("about:blank", 0, 0) Local $paginas[28] = [89, 90, 91, 92, 93, 96, 105, 113, 119, 125, 126, 129, 131, 133, 135, 137, 139, 140, 141, 144, 145, 146, 148, 149, 150, 151, 158, 159] Local $Datos_array[0][2] Local $oTable Local $tabla Local $aux_x = 1 Local $ar = 1 Local $Numtables_datos = 0 MsgBox(0, "asd", "asd") For $pag = 0 To UBound($paginas) - 1 Step 1 _IENavigate($oIE, "<WEBSITE URL>" & $paginas[$pag]) ; <<< the pages to load are always the same except for the last digits. _ArrayAdd($Datos_array, $paginas[$pag] & "|" & "Entrante", 0, "|") ; <<<<<<<<<<<<<<<< adds the page number toarray [0, 0] ;############################################ START counts amount of tables with traffic $oTable = _IETableGetCollection($oIE) Local $iNumTables = @extended For $i = 3 To $iNumTables - 2 Step 1 $oTable = _IETableGetCollection($oIE, $i) $nomb_tabla2 = _IETableWriteToArray($oTable) ; <<<<<<<< TABLE TO ARRAY. $string2 = StringStripWS($nomb_tabla2[1][0], 8) If $string2 <> "MIRA" Then $Numtables_datos = $Numtables_datos + 1 Next $tabla_End = $iNumTables - $Numtables_datos ;############################################ FIN $tabla_Start = 4 $tabla_trafico = 2 For $for = 1 To $Numtables_datos Step 1 $oTable = _IETableGetCollection($oIE, $tabla_Start - 1) ; <<<<<<<<<<< NAME OF THE TABLE; row2 = mira $nomb_tabla = _IETableWriteToArray($oTable) ; <<<<<<<< TABLE TO ARRAY ;########################################### ADDS the traffic number into the row $string = StringStripWS($nomb_tabla[1][0], 8) If $string == "MIRA" Then ;si o si pasa por aca 1 vez _ArrayAdd($Datos_array, $nomb_tabla[0][0]) $nomb_aux = $nomb_tabla[0][0] $aux_x = 1 $tabla_trafico = $tabla_trafico + 2 Else ;esto deberia ser por row _ArrayAdd($Datos_array, $nomb_aux & " " & $aux_x) $aux_x = $aux_x + 1 $tabla_trafico = $tabla_trafico + 1 EndIf $oTable = _IETableGetCollection($oIE, $tabla_trafico) Local $aTableData = _IETableWriteToArray($oTable) $bps = _ArrayToString($aTableData, "|", 0, 0, @CRLF, 0, 0) $bps = StringRight($bps, 5) $bps = StringLeft($bps, 4) $trafico_actual = _ArrayToString($aTableData, "|", 0, 0, @CRLF, 2, 2) If $bps == "Gbps" Then $trafico_actual = $trafico_actual * 1000 If $bps == "Kbps" Then $trafico_actual = $trafico_actual / 1000 $Datos_array[$ar][1] = $trafico_actual $ar = $ar + 1 If $string == "MIRA" Then $tabla_Start = $tabla_Start + 2 Else $tabla_Start = $tabla_Start + 1 EndIf Next $ar = $ar + 1 ;~ ############# CAÍDA ############ ;~ If $actual_entrante = 0 Then ;~ $xxx = 0 ;~ Do ;~ MsgBox(0, "Tráfico Caído", $paginas[$i], 5) ;~ $xxx = $xxx + 1 ;~ Until $xxx = 10 ;~ EndIf ;~ ############# CAÍDA ############. Local $Numtables_datos = 0 Next _ArrayDisplay($Datos_array, "Array display") _IEQuit($oIE) Thanks!! 


      monitoria.html
    • By Dent
      Here is the URL to get to the page with the code as shown in the screenshot https://www.rightmove.co.uk/house-prices/detail.html?country=england&locationIdentifier=POSTCODE^1603593&searchLocation=SW1V+1AA&year=1&referrer=listChangeCriteria
      But how do I select the highlighted text, the address?
      I've tried variations of the below code but to no avail so far
      Local $oClassReturn = $oIE.document.getElementsByClassName("soldList") If Not IsObj($oClassReturn) Then Exit ConsoleWrite("Error in $oClassReturn" & @CRLF) Local $oTagReturn = $oClassReturn.Item(0).getElementsByTagName("div") If Not IsObj($oTagReturn) Then Exit ConsoleWrite("Error in $oTagReturn" & @CRLF) MsgBox(0, "TEST", $oTagReturn.Item(0))  

    • By TheDcoder
      Hello everyone,
      I encountered this strange issue while working on a freelance project, I cannot give you the webpage/website on which this is happening because it is an internal site which is inaccessible externally. I am attempting to create a GUI with an IE control embedded in it, but when I navigate to the desired address, it shows a blank white page.
      The webpage does load if I use a different browser or normal (non-embedded) IE instance.
      I managed to get my hands on the source of the blank page:
      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="res://ieframe.dll/ErrorPageTemplate.css" /> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Navigationen blev annulleret</title> <script src="res://ieframe.dll/errorPageStrings.js" language="javascript" type="text/javascript"> </script> <script src="res://ieframe.dll/httpErrorPagesScripts.js" language="javascript" type="text/javascript"> </script> </head> <body onLoad="javascript:navCancelInit(); "> <table width="730" cellpadding="0" cellspacing="0" border="0"> <!-- Error title --> <tr> <td id="infoIconAlign" width="60" align="left" valign="top" rowspan="2"> <img src="res://ieframe.dll/info_48.png" id="infoIcon" alt="Oplysningsikon"> </td> <td id="mainTitleAlign" valign="middle" align="left" width="*"> <h1 id="mainTitle">Navigationen til websiden blev annulleret</h1> </td> </tr> <tr> <!-- This row is for HTTP status code, as well as the divider--> <td id="errorCodeAlign" class="errorCodeAndDivider" align="right">&nbsp; <div class="divider"></div> </td> </tr> <!-- Error Body --> <!-- What you can do --> <tr> <td> &nbsp; </td> <td id="whatToTryAlign" valign="top" align="left"> <h2 id="whatToTry">Prøv at:</h2> </td> </tr> <!-- refresh page --> <tr> <td > &nbsp; </td> <td id="refreshPageAlign" align="left" valign="middle"> <h4> <table> <tr> <td valign="top"> <img src="res://ieframe.dll/bullet.png" border="0" alt="" class="actionIcon"> </td> <td valign="top"> <span id="navCancelContainer"></span><noscript id="refreshPage">Opdatere siden.</noscript> </td> </tr> </table> </h4> </td> </tr> </table> </body> </html> The ieframe.dll resources are a point of interest. I am not sure how the server is able to detect the embedded instance of IE ...
      Any suggestions? Here is a basic outline of the script:
      #include <IE.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Main() While True Sleep(1000) WEnd Func Main() ; Create GUI $hGUI = GUICreate("", $GUI_WIDTH, $GUI_HEIGHT, $iLeft, $iTop, $WS_POPUP) $oIE = _IECreateEmbedded() ;$oIE = _IECreate() ; This works, but it is not embedded in the GUI GUICtrlCreateObj($oIE, 0, 0, $GUI_WIDTH, $GUI_HEIGHT) GUISetState() ; Navigate to the URL and authenticate _IENavigate($oIE, $URL) EndFunc Thank you for the advice in advance!
×
×
  • Create New...