Jump to content

cnergao

Members
  • Posts

    5
  • Joined

  • Last visited

cnergao's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Right. I want to enter a value for automatic operation with Au3. The following is my operation of the source code $oIE = _IECreate ([i]"http://127.0.0.1/product-add.php"[/i],1,1,1,0") WinActivate("[CLASS:IEFrame]") $oForm =_IEGetObjById ($oIE, "sform") ;MsgBox(0,"",$oForm) $oText = _IEFormElementGetObjByName($oForm,"productname") $oRadio = _IEFormElementGetObjByName($oForm,"productcategory") $oTitle=_IEFormElementGetObjByName($oForm,"productseotitle") $oKeywords=_IEFormElementGetObjByName($oForm,"productkeywords") $oDescription=_IEFormElementGetObjByName($oForm,"productdescription") $oContent=_IEFormElementGetObjByName($oForm,"productcontent") [color=#006400]This value is not give[/color] $oClick=_IEGetObjById($oie,"submitbtn") _IEFormElementSetValue ($oText, $oExcel.cells($Y,2).value) _IEFormElementSetValue($oRadio,$oExcel.cells($Y,3).value) _IEFormElementSetValue($oTitle,$oExcel.cells($Y,5).value) _IEFormElementSetValue($oKeywords,$oExcel.cells($Y,6).value) _IEFormElementSetValue($oDescription,$oExcel.cells($Y,7).value) _IEFormElementSetValue($oContent,"proutding") [i]_IEAction($oClick,"click") _IELoadWait ($oIE) Sleep(1500) ControlSend("windows", "fishing", "Button1","{ENTER}") Sleep(500)[/i] $oContent=_IEFormElementGetObjByName($oForm,"productcontent") This value is not give I tried a lot of methods."_IEFormElementGetObjByName ,_IEFormGetObjByName,_IEGetObjById,_IEGetObjByName,_IETagNameGetCollection But can't write text in the TinyMCE editor ,"
  2. HELLO!ALL I met with the same question.Can't edit in tinymce editor. How do you solve? <div class="main_body"> <form id="sform" action="product-add.php" method="post" enctype="multipart/form-data"> <table class="inputform" cellpadding="1" cellspacing="1"> <td class="label">title</td><td class="input"><textarea class="txt" name="productdescription" style="width:200px;height:110px;"></textarea></td> <td class="label">product</td><td class="input"><textarea id="contentform" rows="1" cols="1" style="width:580px;height:360px;" name="productcontent"></textarea> <!-- Load TinyMCE --> <script type="text/javascript" src="tiny_mce/jquery.tinymce.js"></script> <script type="text/javascript" src="tiny_mce/plugins/swampy_browser/sb.js"></script> <script type="text/javascript"> $().ready(function() { $("#contentform").tinymce({ // Location of TinyMCE script script_url : 'tiny_mce/tiny_mce.js', // General options theme : "advanced", language : "zh", width : "580", height : "360", add_unload_trigger : true, plugins : "Ybrowser,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist", // Theme options theme_advanced_buttons1 : "undo,redo,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "forecolor,backcolor,del,ins,|,cut,copy,paste,pastetext,pasteword,|,outdent,indent,attribs,|,link,unlink,anchor,image,Ybrowser,media,cleanup,|,preview,code,fullscreen", theme_advanced_buttons3 : "", theme_advanced_buttons4 : "", theme_advanced_toolbar_location : "top", theme_advanced_toolbar_align : "left", theme_advanced_statusbar_location : "bottom", theme_advanced_resizing : false, // Drop lists for link/image/media/template dialogs template_external_list_url : "lists/template_list.js", external_link_list_url : "lists/link_list.js", external_image_list_url : "lists/image_list.js", media_external_list_url : "lists/media_list.js" }); var formoptions = { beforeSubmit: function() { $("#submitbtn").val("doing..."); $("#submitbtn").attr("disabled","disabled"); }, beforeSerialize: function($form, options) { tinyMCE.triggerSave(); }, success: function (msg) { alert(msg); if(msg == "fishing") $("#sform").resetForm(); $("#submitbtn").val("submit"); $("#submitbtn").attr("disabled",""); } }; $("#sform").ajaxForm(formoptions); $("#pubdate").datetimepicker({ showSecond: true, timeFormat: 'hh:mm:ss', hour:16, minute:43, second:26, closeText:'complete', currentText:'TIME' }); }); </script> <!-- /TinyMCE --> </td></tr> </table>
  3. first,thank Issue is resolved! {shiftdown} and {shiftup} into groups appear! Example! ControlSend("[CLASS:SysListView32]", "", "SysListView322", "{SHIFTDOWN}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{UP}{SHIFTUP}") or ControlSend("[CLASS:SysListView32]", "", "SysListView322", "{SHIFTDOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{DOWN}{SHIFTUP}") So to select more than one
  4. Take out the "list1" and replace it with "".The problem is the same!
  5. ControlClick("[CLASS:SysListView32]", "List1", "SysListView322","left",1,162,224) ControlSend("[CLASS:SysListView32]","List1","SysListView322","({END})","0") Sleep(1000) ControlClick("[CLASS:SysListView32]", "List1", "SysListView322","left",1,162,554) Sleep(500) ControlSend("[CLASS:SysListView32]", "List1","SysListView322","{SHIFTDOWN}") ControlClick("[CLASS:SysListView32]", "List1", "SysListView322","left",1,162,314) Sleep(500) ControlSend("[CLASS:SysListView32]", "List1","SysListView322","{SHIFTUP}") ControlSend("[CLASS:SysListView32]", "List1","SysListView322","{SHIFTDOWN}") AND ControlSend("[CLASS:SysListView32]", "List1","SysListView322","{SHIFTUP}") can't work! WHY?
×
×
  • Create New...