skdev Posted June 9, 2012 Share Posted June 9, 2012 Hello, I am trying to automate one application which url page is named with mhtml page How can I use mhtml page's objects for script.. Thanks Link to comment Share on other sites More sharing options...
skdev Posted June 9, 2012 Author Share Posted June 9, 2012 Hello, I am trying to automate one application which url page is named with mhtml page How can I use mhtml page's objects for script.. Thanks Link to comment Share on other sites More sharing options...
JohnOne Posted June 9, 2012 Share Posted June 9, 2012 Hello. have you tried anything at all? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
JohnOne Posted June 9, 2012 Share Posted June 9, 2012 Hello. have you tried anything at all? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
armoros Posted June 9, 2012 Share Posted June 9, 2012 Sorry for my useless post and with all the respect to Skdev. But JohnOne that is hilarious ==================================== Sorry for my useless post and with all the respect to Skdev. But JohnOne that is hilarious [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted June 9, 2012 Moderators Share Posted June 9, 2012 All, Enough of this! Stop it at twice! Enough of this! Stop it at twice! M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
armoros Posted June 9, 2012 Share Posted June 9, 2012 Skdev to your issue now are you trying to extract individual files out of MHTML files.?If yes take a look here if it helps until you receive better help.Or as JohnOne already posted (twice) give more info about your issue. [font="verdana, geneva, sans-serif"] [/font] Link to comment Share on other sites More sharing options...
JohnOne Posted June 9, 2012 Share Posted June 9, 2012 Not sure even what mhtml is, but found an old thread about it.http://autoitscript.com/forum/topic/32024-mhtml-file-extractordecoder/There are a few more, best to just read through them, see what you find. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
skdev Posted June 12, 2012 Author Share Posted June 12, 2012 Thanks John,Actually I am trying to login using Autosys script to the CRMS System which has main login page in .mht format. this is the page code. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!-- Generated by Apache Software Foundation (Xalan XSLTC)--><html><head><META http-equiv="Content-Type" content="text/html; charset=UTF-8"><script type="text/Javascript"> /*SET up global vars*/ var tpz_browser = "IE"; var isAccessible = false; var isPreview = false; var isEssuser = false; var isTelephonyUser = false; var ddeServerName = ""; var tpz_printTemplates = false; var tpz_dateformat = "1"; var tpz_autosubmit = "true"; var tpz_displayMode = "detail"; var tpz_viewType = "detail"; var tpz_scForm = "login.prompt.g"; var tpz_login = ""; var tpz_operator = ""; var tpz_formTitle = "Login"; if( tpz_displayMode == tpz_viewType && ( window.top.detail.list || window.top.detail.listdetail)) { top.cwc_SetCursor("wait"); parent.location.href = self.location.href; } </script><link rel="stylesheet" type="text/css" href="cwc/css/cwc_defaults.css"><link rel="stylesheet" type="text/css" href="cwc/css/cwc_dropmenu.css"><link rel="stylesheet" type="text/css" href="css/topaz.css"><script type="text/javascript" src="cwc/js/forceinFW.js"></script><script type="text/javascript">forceinFW("index.do");</script><script src="cwc/js/inits.js" type="text/javascript">/**/</script><script src="js/shared.js" type="text/javascript">/**/</script><script src="js/topaz.js" type="text/Javascript">/**/</script><script src="js/dvd.js" type="text/Javascript">/**/</script><script src="cwc/js/cwc.js" type="text/Javascript">/**/</script><script type="text/javascript" src="fckeditor/fckeditor.js">/**/</script><script type="text/javascript" src="htmleditor/inithtmleditor.js">/**/</script><script type="text/Javascript"></script><script type="text/Javascript"> function dvdRegisterSelect() { } </script><title>HP OpenView ServiceCenter - Login</title></head><body id="tpz_body" onload="tpzonload('login.prompt.g');window.status='login.prompt.g'" onfocus="window.status='login.prompt.g'" onhelp="return false"><script type="text/Javascript"> var arReenable = new Array(); function enableAll() {return reenableControls(arReenable);} </script><script type="text/Javascript"> var arField = new Array(); var objFields = new Object(); function verify( f, bSubmitToSelf ){ return verifyFields ( bSubmitToSelf,"\n");} </script><script type="text/javascript"> var cellsInLastRows = new Array(); </script><div id="sc_threadlinks" style="display:none;"><table><tr><td><div><a title="Login" class="tabSelected">Login</a></div></td></tr></table></div><div id="ButtonTray" style="display:none"><div style="position:absolute; overflow:hidden; top:0px; float:left; height:25px; width:auto; margin-left:0px; margin-right:0px;"><table border="0" cellpadding="0" cellspacing="0" align="left"><tr></tr></table></div><div style="position:relative; float:right; top:0px;"></div></div><div id="ButtonTrayOptions" style="display:none"><div id="cwc_optionsMenu_btn_detail" xmlns:js="javascript:code"><a href="javascript:showHideOptions('cwc_optionsMenu_detail');void(0);"><img id="cwc_optionsMenu_img" src="images/optionArrow.gif" alt="detail" title="detail"></a><div id="cwc_optionsMenu_detail"><ul id="cwc_oM_detail" class="cwc_oM"><li id="subList1" class="optionTitle"><a href="javascript:showHideOptions('cwc_optionsMenu_detail');void(0);" title="Close Options">Detail Options<img src="images/close.gif" alt="Close Options" title="Close Options" style="margin-left:64px;"></a></li> </ul></div></div></div><div id="MessageTray"><a style="text-decoration: none;" href="javascript:cwc_showMessages();void(0);" title="title"><img id="msg_imgmess" style="display:none; vertical-align:middle;" alt="alt" title="alt" src="cwc/images/msg_info.gif"><span id="msg_message" class="MessageText"></span></a></div><script type="text/Javascript"></script><div id="view" style="position:relative; height:1%; adding:0px; margin:0px; z-index:1;"><form name="topaz" id="topaz" method="post" action="detail.do" onsubmit="enableAll();return verify(this,true);"><input type="hidden" name="row" id="row" value=""><input type="hidden" name="__x" id="tpz_x"><input type="hidden" name="essuser" id="essuser" value="false"><input type="hidden" name="thread" id="thread" value="0"><input type="hidden" name="event" id="event" value=""><input type="hidden" name="transaction" id="transaction" value="0"><input type="hidden" name="type" id="type" value="detail"><input type="hidden" name="focus" id="focus" value=""><input type="hidden" name="focusContents" id="focusContents" value=""><input type="hidden" name="focusId" id="focusId" value=""><input type="hidden" name="focusReadOnly" id="focusReadOnly" value=""><input type="hidden" name="start" id="start" value=""><input type="hidden" name="count" id="count" value=""><input type="hidden" name="window" id="window" value=""><input type="hidden" name="close" id="close" value=""><input type="hidden" name="_blankFields" id="tpz_blankFields" value=""><input type="hidden" name="_uncheckedBoxes" id="tpz_uncheckedBoxes" value=""><input type="hidden" name="formchanged" id="formchanged" value=""><input type="hidden" name="formname" id="formname" value="login.prompt.g"><input type="hidden" id="hdnactivenotes" value="false"><input type="hidden" id="hdnrefreshmessages" value="true"><input type="hidden" id="hdnrefreshmessinterval" value="15000"><input type="hidden" id="validoptions" value="3;4;"><script type="text/javascript"> function printThisView(){ tpzPrintDetail(); } </script><input type="hidden" id="favorites_add" value="ctx=docEngine&file=&query=&queryHash=&action=&title=-"><span id="X1" type="label" style="overflow:hidden; position:absolute; white-space:nowrap; top:0px; left:104px; width:293px; height:29px; font-weight:bold;font-size:15pt;">Welcome to System</span><span id="X2" type="label" style="overflow:hidden; position:absolute; white-space:nowrap; top:55px; left:41px; width:54px; height:19px; color:#000000;"><label for="X3">Login:</label></span><div id="X3Border" MyAttrib="EditBorder" style="position:absolute; top:55px; left:117px; width:153px; height:19px; "><input type="text" id="X3" name="var/user.id" dvdVar="" ButtonId="Text7" dataType="" scType="Text" tabindex="1" style="width:153px; height:19px;" maxlength="" onkeydown="lockForm();void(0);" onkeyup="checkLastRow(this);" onfocus="handleonfocus(this, event);" onchange="handleonchange(this, event);" onclick="handleonclick(this, event);" onblur=" applyToSameControl(this); " value="" scripttype="text"></div><span id="X4" type="label" style="overflow:hidden; position:absolute; white-space:nowrap; top:88px; left:41px; width:63px; height:19px; color:#000000;"><label for="X5">Password:</label></span><div id="X5Border" MyAttrib="EditBorder" style="position:absolute; top:88px; left:117px; width:153px; height:19px; "><input type="password" id="X5" name="var/old.password" dvdVar="" ButtonId="Text9" dataType="" scType="Text" tabindex="2" style="width:153px; height:19px;" maxlength="" onkeydown="lockForm();void(0);" onkeyup="checkLastRow(this);" onfocus="handleonfocus(this, event);" onchange="handleonchange(this, event);" onclick="handleonclick(this, event);" onblur=" applyToSameControl(this); " value=""></div><div id="X6Border" style="position:absolute; top:132px; left:45px; width:77px; height:19px; "><input type="button" name="0" id="X6" ButtonID="0" title="Login to ServiceCenter" tabindex="3" value="Login" onclick="tpzDrillTable('', 'Login', '0', 'listdetail')" style="width:100%; height:100%;"><input type="hidden" id="" name=""></div><div id="X7Border" style="position:absolute; top:132px; left:140px; width:77px; height:19px; "><input type="button" name="3" id="X7" ButtonID="3" title="Exit ServiceCenter" tabindex="4" value="Cancel" onclick="tpzDrillTable('', 'Cancel', '3', 'listdetail')" style="width:100%; height:100%;"><input type="hidden" id="" name=""></div></form></div><div id="popHelp" class="helpinfo" style="display:none; z-index:200; padding:2px;"><img id="popHelpImg" src="images/obj16/btnhelp.gif" style="padding:2px; float:left;" alt="Help contents" title="Help contents"><a id="popHelpClose" href="javascript:hideHelpInfo();void(0);" title="Close help contents"><img id="popHelpCloseImg" src="images/close.gif" alt="Close help contents" title="Close help contents" style="padding:2px; float:right;"></a></div><!--************************************************************************************************--><!--The following are the popup selects which get positioned when the users selects the popup button--><!--************************************************************************************************--><script type="text/javascript"></script></body><xml id="commandMessages" style="display:none"></xml></html> Link to comment Share on other sites More sharing options...
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