yjing1982

IE form auto fill

3 posts in this topic

#1 ·  Posted (edited)

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

Bump by myself

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

    • nassausky
      By nassausky
      Hi all,
       
      Anyone have any idea how to close all open tabs except a specific one I manually open.  Assuming I don't know what is open in all the tabs except just the one I want to keep open.
       
      I didn't want to use sendkeys and I was trying to use the following code to list the title (or url) of the 3 open tabs and  after I got that part working I would just close the other 2. This sample only displays the title of the first open tab
      #include <IE.au3> Const $ie_new_in_tab = 0x0800 $oIE = _IECreate("https://www.autoitscript.com") __IENavigate($oIE, "https://www.autoitscript.com/forum/", 1, $ie_new_in_tab) ;(obj,url,wait,param) __IENavigate($oIE, "https://www.google.com/", 1, $ie_new_in_tab) ;(obj,url,wait,param) Local $aIE[1] $aIE[0] = 0 Local $i = 1, $oIE While 1     $oIE = _IEAttach("", "instance", $i)     If @error = $_IEStatus_NoMatch Then ExitLoop     ConsoleWrite(_IEPropertyGet($oIE, "title") & @CRLF)     ReDim $aIE[$i + 1]     $aIE[$i] = $oIE ;each item holds object     $aIE[0] = $i ;first item holds count     $i += 1 WEnd MsgBox($MB_SYSTEMMODAL, "Browsers Found", "Number of browser instances in the array: " & $aIE[0]) ; This doesn't return the list of tabs in the console just the first tab  
      Thanks for any and all help
    • toto22
      By toto22
      I'm trying to click on Java Dropbox using IE. However, I'm running into problems. There is a Dropbox "Please Select" with two options "Buy" and "Sell".
      I'm able to click on a drop box (please see code below) but i'm unable to select "Buy" or "Sell"".
      Local $sMyString = "Please Select" ;############ ENTER ############# Local $oLinks = _IELinkGetCollection($oIE) For $oLink In $oLinks Local $sLinkText = _IEPropertyGet($oLink, "innerText") If StringInStr($sLinkText, $sMyString) Then _IEAction($oLink, "click") ExitLoop EndIf Next  
      Please help
       
         
    • islandspapand
      By islandspapand
      Hi all
      i am currently trying to click on an element in a HTML Table, but just can get it to work.
      i am able to click the top of the table so it changes to sort  but just can't click on the element in the table.
      an i need to click on element to continue in the site.
      i have attached the code so far and pictures of the table  element want to click plus the source of the table.
      i am able to get data in the table with $oTable = _IETableGetCollection($oIE, 2) but not able to click on them.
       
      Help is very much appreciated
       
      #cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.14.2 Author: myName Script Function: Template AutoIt script. #ce ---------------------------------------------------------------------------- ; Script Start - Add your code below here #include <IE.au3> #include "DOM.au3" #include <Array.au3> #include <MsgBoxConstants.au3> Global $oIE = _IECreate("*") _IELoadWait($oIE) Sleep(2000) _PageLogin($oIE) _PageLoadWait() _PageNewReq($oIE) _PageLoadWait() _InputModelInf($oIE) _PageLoadWait() Sleep(1000) $aTableLink = BGe_IEGetDOMObjByXPathWithAttributes($oIE, "//table/tbody/tr/td[.='Name Of user']", 2000) ;~ $aTableLink = BGe_IEGetDOMObjByXPathWithAttributes($oIE, "//table/tbody/tr", 2000) ;~ _ArrayDisplay($aTableLink,"$aTableLink") If IsArray($aTableLink) Then ConsoleWrite("Able to BGe_IEGetDOMObjByXPathWithAttributes($oIE, //table/tbody/tr/td[.='Name Of user'])" & @CRLF) For $i = 0 To UBound($aTableLink)-1 ConsoleWrite(" OuterHTML : " & $aTableLink[$i].outerHTML & @CRLF) ConsoleWrite(" Parentnode : " & $aTableLink[$i].parentnode & @CRLF) ConsoleWrite(" Parentnode.click : " & $aTableLink[$i].parentnode.fireEvent("onclick","click") & @CRLF) $objClick = $aTableLink[$i].parentnode ;~ _IEAction($aTableLink[$i] , "focus") _IEAction($objClick , "focus") ;~ If _IEAction($aTableLink[$i], "click") Then If _IEAction($objClick, "click") Then ConsoleWrite("Able to _IEAction($aForumLink[0], 'click')" & @CRLF) _IELoadWait($oIE) Else ConsoleWrite("UNable to _IEAction($aForumLink[0], 'click')" & @CRLF) Exit 3 EndIf Next Else ConsoleWrite("Unable to BGe_IEGetDOMObjByXPathWithAttributes($oIE, //table/tbody/tr/td[.='Name Of user'])" & @CRLF) Exit 2 EndIf _PageLoadWait() Func _InputModelInf($oTmpIE) ; Add Var for Model & Serial in Func $oModelInput = _IEGetObjById($oTmpIE,"model") _IEAction($oModelInput,"focus") _IEDocInsertText($oModelInput, "*") $oSerialInput = _IEGetObjById($oTmpIE,"serial") _IEAction($oModelInput,"focus") _IEDocInsertText($oSerialInput, "*") $links = $oTmpIE.document.getElementsByClassName("btn btn-primary ng-scope") For $link In $links If $link.innertext = "Søg" Or $link.innertext = "Search" Then $link.click() ExitLoop EndIf Next Return True EndFunc Func _PageNewReq($oTmpIE) $links = $oTmpIE.document.getElementsByClassName("ng-scope k-link") For $link In $links If $link.innertext = "Send ny fejlmelding" Or $link.innertext = "Submit a New Service Request" Then $link.click() ExitLoop EndIf Next Return True EndFunc Func _PageLogin($oTmpIE) $oUserInput = _IEGetObjById($oTmpIE,"loginid") _IEDocInsertText($oUserInput, "*") $oPasswordInput = _IEGetObjById($oTmpIE,"password") _IEDocInsertText($oPasswordInput, "*") $links = $oTmpIE.document.getElementsByClassName("btn btn-primary login ng-scope") For $link In $links If $link.innertext = "Sign in" Then $link.click() ExitLoop EndIf Next Return True EndFunc Func _PageLoadWait() Local $PageLoadWait = False ;~ nav navbar-nav navbar-right ng-hide ;~ nav navbar-nav navbar-right $tags = $oIE.document.GetElementsByTagName("ul") For $tag in $tags $class_value = $tag.GetAttribute("class") If $class_value = "nav navbar-nav navbar-right" Then ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : Webpage loading :) ' & @CRLF) ;### Debug Console $PageLoadWait = True ExitLoop EndIf Next Do sleep(250) For $tag in $tags $class_value = $tag.GetAttribute("class") If $class_value = "nav navbar-nav navbar-right ng-hide" Then ConsoleWrite('@@ Debug(' & @ScriptLineNumber & ') : Webpage load finished :)'& @CRLF) ;### Debug Console $PageLoadWait = False ExitLoop EndIf Next Until $PageLoadWait = False EndFunc  
      Thanks in advance
       
       


    • Gowrisankar
      By Gowrisankar
      Hello everyone,
      I'm working on a task where, a PDF file is opened (in IE browser) when I click a link in a website.
      I have to read the first page of the PDF to find particular strings. Can you please share some ideas?
    • Seminko
      By Seminko
      Hey,
      i would like to set a value into an INPUT field.
      Checked the _IEFormElementSetValue function but that does require _IEFormGetObjByName and this is where the problem comes in. The input field I want to write to is not a part of a form tag. It is part of a table.
      <input type="text" class="w2" id="nabidka_vozidel_formular_tach_od" name="nabidka_vozidel_formular_tach_od" onchange="GLOBAL.pocetInzerceNZ(&quot;nabidka_vozidel_formular&quot;,&quot;tach_od&quot;,&quot;&quot;);" autocomplete="off"> I tried this but that didn't work:
      $oDownloadSamples = _IEGetObjById($oIE, "nabidka_vozidel_formular_tach_od") _IEFormElementSetValue($oDownloadSamples, "123") If you want to try the site I'm working with is https://www.tipcars.cz/. There is a menu on the top left hand side and if you click the "vyhledat" button the input fields will show up.
      Thanks