eagle4life69 Posted August 13, 2009 Posted August 13, 2009 I have a program that opens Firefox and prints out web submitted order tickets... here is the issue I am having, I right now have it set to tab to the input field then type the job number then tab and press space (searching for the exact ticket I need to print) What I want to do is just fill the field out and submit so I can make this faster (tabbing 27 times is time consuming. Here is the html code I have for the field and submit button <td style="vertical-align: middle; white-space: nowrap;"> <input id="ctl00_ctl00_C_M_DSF_DataGridJobs_ctl02_OperatorViewHeader_TextBoxFilter" class="formFields" type="text" style="width: 105px;" name="ctl00$ctl00$C$M$DSF$DataGridJobs$ctl02$OperatorViewHeader$TextBoxFilter"/> <img height="1" width="4" src="images/fill/1x1.gif" alt=""/> <input id="ctl00_ctl00_C_M_DSF_DataGridJobs_ctl02_OperatorViewHeader_ButtonFilter" align="bottom" type="image" style="border-width: 0px; height: 19px; width: 22px;" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$ctl00$C$M$DSF$DataGridJobs$ctl02$OperatorViewHeader$ButtonFilter", "", true, "", "", false, false))" src="../images/btn/DSF_Btn_Search.gif" name="ctl00$ctl00$C$M$DSF$DataGridJobs$ctl02$OperatorViewHeader$ButtonFilter"/> </td> Thanks again, Eagle4life69
eagle4life69 Posted August 13, 2009 Author Posted August 13, 2009 Bump!!! No one know how I can do this?
Stilgar Posted August 13, 2009 Posted August 13, 2009 With this UDF: http://www.autoitscript.com/forum/index.php?showtopic=95595 You can do the following: #include <FF.au3> If _FFConnect() Then ; fill the input _FFSetValueById("ctl00_ctl00_C_M_DSF_DataGridJobs_ctl02_OperatorViewHeader_TextBoxFilter", $JobNumber) ; click on the submit button _FFClick("ctl00_ctl00_C_M_DSF_DataGridJobs_ctl02_OperatorViewHeader_ButtonFilter", "id") EndIf jEdit4AutoIt PlanMaker_UDF
eagle4life69 Posted August 14, 2009 Author Posted August 14, 2009 Thats Perfect Thanks.... It has sped up everything now time to rewrite scripts... Thanks Again
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now