Jump to content

Probem with $oSubmit=_IEGetObjById($o_IE,"")


Recommended Posts

$oSubmit=_IEGetObjById($o_IE,"")

" what should I put here "

The webpage is:

*** Warning: Explicit Content ***

http://www.megarotic.com/video/?s=outbox&a...lsfndpdnfvk1zij

Login: lsfndpdnfvk1zij

Password: 123456

Cannot seem to fin the name of the object to submit.

Please assist.

Thank you

Edited by big_daddy
Link to comment
Share on other sites

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>


<link rel="icon" href="http://video.megarotic.com/mr_icon.ico" type="image/x-icon">
<link rel="shortcut icon" href="http://video.megarotic.com/mr_icon.ico" type="image/x-icon">

<HEAD>
<TITLE> Megarotic Video</TITLE>
</HEAD>

<meta http-equiv="content-type" content="text/html; charset=UTF-8">

<script type="text/javascript" src="flashobject2.js"></script>

<link href="mrstyles.css" rel="stylesheet" type="text/css">


<style type="text/css">
body 
{
    text-align:center;
    padding:0; margin:0;
    background-image:url(gui/bg.gif);
    font-family: tahoma;
    font-size: 11px;
    text-align: left;
}


#main 
{
    width:997px;
    position: relative;
    margin-top:0px;
    text-align:center;
}
#mv1
{
  position:absolute;
  top:3px; left:0px;
  width:979px; height:204px;
}
#mv2
{
  position:absolute;
  top:108px; left:1px;
  width:977px; height:56px;
  background-image:url('gui/shadow.gif');
}

a
{
  font-family:tahoma;
}

#mainpage
{
  position:absolute;
  top:115px; left:1px;
  width:977px;
  text-align:left;
}

.button
{
    border: 1px solid #327AA3;
    background-color: #EFF2F5;
}

</style>


<BODY>


<script type="text/javascript">
function logout()
{
  document.getElementById('logoutform').submit();
}


document.domain = 'megarotic.com';

</script>


<center>
<div style="position:absolute; display:none;">
<form method="post" id="logoutform" action="?">
<input type="hidden" name="logout" value="1">
</form>
</div>

<div id="main">

<div id="mv1">
<script type="text/javascript">
    var fo = new FlashObject("gui/top.swf", "", "979", "104", 7, "#ffffff");
    fo.addParam("wmode", "transparent");
    fo.addParam("menu", "false");
    fo.addVariable("play4", "1");
    fo.addVariable("b_video","Videos");
    fo.addVariable("b_categ","Categories");
    fo.addVariable("b_rewards","Rewards");
    fo.addVariable("b_premium","Premium");
            fo.addVariable("loggedin","1");
    fo.addVariable("nickname","tradertt");
    fo.addVariable("messages","0");
        
    fo.addVariable("my_my","My:");
    fo.addVariable("my_videos","Videos");
    fo.addVariable("my_favorites","Favorites");
    fo.addVariable("my_inbox","Inbox");
    fo.addVariable("my_subscriptions","Subscriptions");
    fo.addVariable("my_friends","Friends");

    fo.addVariable("producer","Producers Deal");

    fo.addVariable("searchtext","Search for videos");

    fo.write();
</script>
</div>
<div id="mv2"></div>



<div id="mainpage">







<div style="position:relative; height:12px;"></div>


<div style="position:relative; height:15px; text-align:center; font-weight:bold; color:#565656;">Compose Message</div>

<div style="position:relative; text-align:center;">
<center>
<div style="position:relative; width:771px; height:35px; background-image:url('gui/msg_top.gif');"></div>
<div style="position:relative; width:771px; height:335px; background-image:url('gui/msg_mid.gif');"></div>
    <div style="position:relative; width:771px; height:33px; background-image:url('gui/msg_bottom.gif');"></div>
<div style="position:relative; height:12px;"></div>
</center>
</div>


<div style="position:absolute; left: 100px; top:45px;">

<form method="post" action="" id="msgfrm">
<input type="hidden" name="action" value="sendmessage">
<input type="hidden" name="touser" value="tradertt">
<input type="hidden" name="outbox" value="outbox">

<div style="position:absolute; left:270px; top:52px; width:100px;"><font color="#347CA2">From:</font> tradertt</div>
<div style="position:absolute; left:385px; top:40px;"><IMG SRC="mvgui/msg_dots_v.gif" WIDTH="3" HEIGHT="40" BORDER="0" ALT=""></div>

<div style="position:absolute; left:450px; top:52px; width:100px;"><font color="#347CA2">To:</font> <a href="?c=profile&user=tradertt" style="color:#000000;">tradertt</a></div>

<div style="position:absolute; left:590px; top:40px; background-image:url('mvgui/msg_t.gif'); width:71px; height:61px;"><div style="position:absolute; left:5px; top:5px;"><img src="http://img2.megarotic.com/c/7/bd82585bf68a6e1ea49f1aac925b7a.jpg" border="0" width="61" height="51" border="0"></div></div>

<div style="position:absolute; left:90px; top:110px;"><IMG SRC="mvgui/msg_vdots.gif" WIDTH="577" HEIGHT="5" BORDER="0" ALT=""></div>

<div style="position:absolute; top:135px; left:15px; width:122px; text-align:right; color:#347CA2;">Subject:</div>

<div style="position:absolute; top:130px; left:160px;"><input type="text" name="subject" style="width:500px; background-color:#FBF8F3; border: solid 1px; border-color:#D8D1BE;"></div>


<div style="position:absolute; left:90px; top:166px;"><IMG SRC="mvgui/msg_vdots.gif" WIDTH="577" HEIGHT="5" BORDER="0" ALT=""></div>

<div style="position:absolute; top:185px; left:15px; width:122px; text-align:right; color:#347CA2;">Message:</div>

<div style="position:absolute; top:183px; left:160px;"><textarea style="width:500px; height:125px; background-color:#FBF8F3; border: solid 1px; border-color:#D8D1BE;" name="message"></textarea></div>


<div style="position:absolute; top:323px; left:500px;">



<script type="text/javascript">
    var fo = new FlashObject("buttons/update_profile.swf", "", "163", "33", 7, "");
    fo.addParam("wmode", "transparent");
    fo.addVariable("bmrv_updateprofile","send message");
    fo.write();
    
    function postupdateprofile()
    {
      document.getElementById('msgfrm').submit();;
    }
    
</script>
</div>


</form>

</div>














<div style="position:relative;">
<div style="position:relative; width:983px; height:85px; background-image:url('gui/bottom_menu_shadow.gif');">
<div style="position:absolute; top:15px; width:985px; text-align:center;">
<center>
<TABLE style="font-size:11px;">
<TR>
    <TD><a href="?c=terms" >terms of service</a></TD>
    <TD width="50" align="center">-</TD>
    <TD><a href="?c=privacy" >privacy policy</a></TD>
    <TD width="50" align="center">-</TD>
    <TD><a href="?c=dmca" >dmca policy</a></TD>
    <TD width="50" align="center">-</TD>
    <TD><a href="?c=abuse">report abuse</a></TD>
    <TD width="50" align="center">-</TD>
    <TD><a href="?c=contact">contact us</a></TD>
</TR>
</TABLE>
</center>
</div>
</div>
</div>
</div>




</div>
</center>




<iframe src="http://video.megarotic.com/et.php?r=http%3A%2F%2Fwww.megarotic.com%2Fvideo%2F%3Fs%3Dsignup%26cnext%3Dhome%26snext%3Doutbox%26touser%3Dtradertt" width="1" height="1" name="uploadframe" style="border:0px;"></iframe>

<script type="text/javascript" language="javascript1.2"><!--
EXs=screen;EXw=EXs.width;navigator.appName!="Netscape"?
EXb=EXs.colorDepth:EXb=EXs.pixelDepth;//-->
</script><script type="text/javascript"><!--
navigator.javaEnabled()==1?EXjv="y":EXjv="n";
EXd=document;EXw?"":EXw="na";EXb?"":EXb="na";
EXd.write("<img src=\"http://nht-2.extreme-dm.com",
"/n2.g?login=kimble2&amp;pid=index&amp;",
"jv="+EXjv+"&amp;j=y&amp;srw="+EXw+"&amp;srb="+EXb+"&amp;",
"l="+escape(EXd.referrer)+"\" height=1 width=1>");//-->
</script><noscript><img height="1" width="1" alt=""
src="http://nht-2.extreme-dm.com/n2.g?login=kimble2&amp;pid=index&amp;j=n&am
p;jv=n"/>
</noscript>


</BODY>
</HTML>

Link to comment
Share on other sites

@tradertt

That is not a site I'm going to go digging around in to help you troubleshoot. I would appreciate it if you would not post links like that to the forum without a warning about the content.

I suggest you download DebugBar (see my sig) to help with your investigation. I don't have enough information in the HTML you posted to know what you are trying to reference and the element you are trying to get my be in an iframe. If so you need to use _IEFrameGetObjByName first. As well, the element you want may not have an ID attribute... you may then need _IEFormElementGetCollection with an index or _IETabNameGetCollection with an index.

Dale

@Wratislavian - it is considered rude in this forum to bump threads after a short time - particularly when they are someone else's

Edit: typo

Edited by DaleHohm

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

@Wratislavian - it is considered rude in this forum to bump threads after a short time - particularly when they are someone else's

i typed in search "name submit" and i had no idea that this post was fesh.

and

thanks for advices.

edit:

Debug Bar is rly nice tool but didnt bring anything new. _IEFrameGetObjByName, _IEFormElementGetCollection, _IETabNameGetCollection seem to be useless.

i cant belive in that there is no simple way to click this button

[ <FORM action=index.php?page=flotten2&amp;session=d967df477c03 method=post><TABLE cellSpacing=1 cellPadding=0 width=519 border=0>

<TBODY>

<TR height=20>

...

<TH colSpan=4><INPUT type=submit value=Dalej></TH></TR>

<TR>

<TH colSpan=4></TH></TR></FORM> ]:

Posted Image

Edited by Wratislavian
Link to comment
Share on other sites

well ya this is problem there is no simple method to use submit button but u can try this method by PsaltyDS

#include <IE.au3>

HotKeySet("{ESC}", "_Quit")

$oIE = _IECreate ("http://www.megarotic.com/video/?s=outbox&a...lsfndpdnfvk1zij")
While 1
    If _IEPropertyGet($oIE, "busy") Then
        MsgBox(0, "Status", "Clicked", 2)
    EndIf
    Sleep(20)
WEnd

Func _Quit()
    _IEQuit($oIE)
    Exit
EndFunc ;==>_Quit

im using as substitute until some proper method comes in autoit pack to submit form pages :)

Edited by autoitxp
Link to comment
Share on other sites

@autoitxp

im using as substitute until some proper method comes in autoit pack to submit form pages

I have no idea what you are talking about

i typed in search "name submit" and i had no idea that this post was fesh.

and

thanks for advices.

edit:

Debug Bar is rly nice tool but didnt bring anything new. _IEFrameGetObjByName, _IEFormElementGetCollection, _IETabNameGetCollection seem to be useless.

i cant belive in that there is no simple way to click this button [ <th colspan="4"><input type="submit" value="Dalej" /></th> ]:

Posted Image

@Wratislavian

If you searched for "name submit" and expected to find a simple answer to your problem, you have simply demonstrated your total naivety and lack of knowledge about what it takes to accomplish your task. Stop bumping, stop sniping other people's threads and go study the helpfile and examples or you will earn ridicule rather than respect here.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

@Wratislavian

If you searched for "name submit" and expected to find a simple answer to your problem, you have simply demonstrated your total naivety and lack of knowledge about what it takes to accomplish your task. Stop bumping, stop sniping other people's threads and go study the helpfile and examples or you will earn ridicule rather than respect here.

Dale

dear Dale.

i dont search for "name submit" i search a way to cllick simple button. i cant do this by myself. im ridicule and i represent a lack of inteligence because i cant force autoit to click submit button. should i study the help file? i can tell u that i, in spite of my naivery and lack of knowledge, have been looking for some solution in sic! helpfile. unfortunately unsuccessfully. if u cant help me just stop bumping this post.

greetings Łukasz

Link to comment
Share on other sites

@Wratislavian - show some code you've tried and demonstrate you're working at this and you'll get plenty of help. However, you won't get help from me using this site as an example due to its content.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

hej dale a know where is the problem.

_IENavigate($oIE, "java script:maxShips();")

$oForm = _IEFormGetCollection ($oIE, 0)

_IEFormSubmit ($oForm)

without this red line everything is ok. form is submited. but hmm i Need this red line. now i will find other way to klick this java link.

EDIT

$oForm = _IEFormGetCollection ($oIE, 0)

_IEFormSubmit ($oForm)

-> hmm no this isnt work. it should submit form but looks like it refreshes a site.

Edited by Wratislavian
Link to comment
Share on other sites

You'll need to figure out what that javascript function does in order to figure out why it causes trouble.

Form submit buttons often have javascript tied to them that is not executed with _IEFormSubmit or rely on a submit button name being passed. This is documented in the helpfile for _IESubmit along with a pointer to a workaround using _IEAction.

Dale

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...