Sign in to follow this  
Followers 0
Mithrandir

Help again with _IEFormElementGetObjByName :P

9 posts in this topic

Hi, I can't make this script to post after successful login. After login the script stops. I used IE Build and here is the script (note:I think that $oIE2 and $oIE3 may not be necessary but just in case i put them) :

#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/newthread.php?do=newthread&f=12")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery2, "password")
_IEFormSubmit ($oForm)
_IELoadWait ($oIE)
$oIE2 = _IEAttach ("http://forums.linkbucks.com/login.php?do=login")
$oIE3 = _IEAttach ("Post New Thread", "text")
$oForm1 = _IEFormGetObjByName ($oIE, "vbform");and I can also see that the index number is 173 and use ieform get collection instead
$oQuery3 = _IEFormElementGetObjByName ($oForm1, "subject")
$oQuery4 = _IEFormElementGetObjByName ($oForm1, "message")
_IEFormElementSetValue ($oQuery3, "This is a test")
_IEFormElementSetValue ($oQuery4, "This is a new test this is a new test")
_IEFormSubmit ($oForm1)
_IELoadWait ($oIE2)
_IELoadWait ($oIE3)

And here is the source code of the page:

<!-- logo --><A name=top></A>
<TABLE cellSpacing=0 cellPadding=0 width="95%" align=center border=0>
<TBODY>
<TR>
<TD align=left><A href="http://forums.linkbucks.com/"><IMG title="The Linkbucks Forums" alt="The Linkbucks Forums" src="images/misc/linkbucks_logo2.gif" border=0></A></TD>
<TD align=right>
<script language=Javascript>
var cpmstar_rnd=Math.round(Math.random()*999999);
var cpmstar_pid=1187;
document.writeln("<SCR"+"IPT language='Javascript' src='http://server.cpmstar.com/view.aspx?poolid="+cpmstar_pid+"&script=1&rnd="+cpmstar_rnd+"'></SCR"+"IPT>");
</SCRIPT>

<script language=Javascript src="http://server.cpmstar.com/view.aspx?poolid=1187&amp;script=1&amp;rnd=902057"></SCRIPT>

<script>
var width=728;
var height=90;
var imageurl="";
var flashurl="http://cdn.cpmstar.com/cached/creatives/3850_728x90-2.swf";
var clickurl="http://server.cpmstar.com/click.aspx?poolid=1187%26subpoolid=0%26campaignid=2501%26creativeid=3850%26url=http%3a%2f%2fad.perfectworld.com%2fad%2f71";
</SCRIPT>

<script language=Javascript src="http://cdn.cpmstar.com/cached/flashadv4.js">
</SCRIPT>

<script language=VBScript> 
on error resume next 
plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash")))
if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.10")))
if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.9")))
if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.8")))
if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.7")))
if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))
if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.5")))
if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))
if ( plugin <= 0 ) then plugin = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.3")))
</SCRIPT>

<OBJECT id=ad_banner_example codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=3,0,0,0 height=90 width=728 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="19262"><PARAM NAME="_cy" VALUE="2381"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="http://cdn.cpmstar.com/cached/creatives/3850_728x90-2.swf?clickTAG=http://server.cpmstar.com/click.aspx?poolid=1187%26subpoolid=0%26campaignid=2501%26creativeid=3850%26url=http%3a%2f%2fad.perfectworld.com%2fad%2f71"><PARAM NAME="Src" VALUE="http://cdn.cpmstar.com/cached/creatives/3850_728x90-2.swf?clickTAG=http://server.cpmstar.com/click.aspx?poolid=1187%26subpoolid=0%26campaignid=2501%26creativeid=3850%26url=http%3a%2f%2fad.perfectworld.com%2fad%2f71"><PARAM NAME="WMode" VALUE="Opaque"><PARAM NAME="Play" VALUE="0"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="0"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE=""><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE=""><PARAM NAME="SeamlessTabbing" VALUE="1"><PARAM NAME="Profile" VALUE="0"><PARAM NAME="ProfileAddress" VALUE=""><PARAM NAME="ProfilePort" VALUE="0"><PARAM NAME="AllowNetworking" VALUE="all"><PARAM NAME="AllowFullScreen" VALUE="false">
      <EMBED src="http://cdn.cpmstar.com/cached/creatives/3850_728x90-2.swf?clickTAG=http://server.cpmstar.com/click.aspx?poolid=1187%26subpoolid=0%26campaignid=2501%26creativeid=3850%26url=http%3a%2f%2fad.perfectworld.com%2fad%2f71" wmode=opaque menu=false quality=high  swLiveConnect=FALSE WIDTH=728 HEIGHT=90 TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"> </EMBED> </OBJECT></TD></TR></TBODY></TABLE><!-- /logo --><!-- content table --><!-- open content container -->
<DIV align=center>
<DIV class=page style="WIDTH: 100%; TEXT-ALIGN: left">
<DIV style="PADDING-RIGHT: 25px; PADDING-LEFT: 25px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px"><BR><!-- breadcrumb, login, pm info -->
<TABLE class=tborder cellSpacing=1 cellPadding=6 width="100%" align=center border=0>
<TBODY>
<TR>
<TD class=alt1 width="100%">
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR vAlign=bottom>
<TD><A onclick="history.back(1); return false;" href="#"><IMG title="Go Back" alt="Go Back" src="images/misc/navbits_start.gif" border=0></A></TD>
<TD>&nbsp;</TD>
<TD width="100%"><SPAN class=navbar><A accessKey=1 href="http://forums.linkbucks.com/">The Linkbucks Forums</A></SPAN> <SPAN class=navbar>&gt; <A href="forumdisplay.php?f=6">General Discussion</A></SPAN> <SPAN class=navbar>&gt; <A href="forumdisplay.php?f=12">Test Area</A></SPAN> </TD></TR>
<TR>
<TD class=navbar style="FONT-SIZE: 10pt; PADDING-TOP: 1px" colSpan=3><A href="/newthread.php?do=newthread&amp;f=12"><IMG class=inlineimg title="Reload this Page" alt="Reload this Page" src="images/misc/navbits_finallink_ltr.gif" border=0></A> <STRONG>Post New Thread </STRONG></TD></TR></TBODY></TABLE></TD>
<TD class=alt2 vAlign=top noWrap>
<DIV class=smallfont><STRONG>Welcome, Mithrandir.</STRONG><BR>You last visited: Today at <SPAN class=time>12:26 AM</SPAN> </DIV></TD></TR></TBODY></TABLE><!-- / breadcrumb, login, pm info --><!-- nav buttons bar -->
<TABLE class=tborder style="BORDER-TOP-WIDTH: 0px" cellSpacing=0 cellPadding=6 width="100%" align=center border=0>
<TBODY>
<TR align=middle>
<TD class=vbmenu_control><A href="usercp.php">User CP</A></TD>
<TD class=vbmenu_control><A accessKey=5 href="faq.php" rel=nofollow>FAQ</A></TD>
<TD class=vbmenu_control><A href="memberlist.php">Members List</A></TD>
<TD class=vbmenu_control><A href="calendar.php">Calendar</A></TD>
<TD class=vbmenu_control><A accessKey=2 href="search.php?do=getnew">New Posts</A></TD>
<TD class=vbmenu_control id=navbar_search style="CURSOR: pointer" state="false" unselectable="true"><A accessKey=4 href="search.php" rel=nofollow>Search</A>
<script type=text/javascript> vbmenu_register("navbar_search"); </SCRIPT>
 <IMG title="" height=7 alt="" src="images/misc/menu_open.gif" width=11 border=0> </TD>
<TD class=vbmenu_control id=usercptools style="CURSOR: pointer" state="false" unselectable="true"><A accessKey=3 href="/newthread.php?do=newthread&amp;f=12&amp;nojs=1#usercptools">Quick Links</A>
<script type=text/javascript> vbmenu_register("usercptools"); </SCRIPT>
 <IMG title="" height=7 alt="" src="images/misc/menu_open.gif" width=11 border=0> </TD>
<TD class=vbmenu_control><A onclick="return log_out('Are you sure you want to log out?')" href="login.php?do=logout&amp;logouthash=fe7de855c660fd70a8625923df0561b3">Log Out</A></TD></TR></TBODY></TABLE><!-- / nav buttons bar --><BR><!-- NAVBAR POPUP MENUS --><!-- header quick search form -->
<DIV class=vbmenu_popup id=navbar_search_menu style="DISPLAY: none">
<TABLE cellSpacing=1 cellPadding=4 border=0>
<TBODY>
<TR>
<TD class=thead>Search Forums</TD></TR>
<TR>
<TD class=vbmenu_option title=nohilite>
<FORM action=search.php?do=process method=post><INPUT type=hidden value=process name=do> <INPUT type=hidden value=1 name=quicksearch> <INPUT type=hidden value=1 name=childforums> <INPUT type=hidden value=1 name=exactname> <INPUT type=hidden name=s> 
<DIV><INPUT class=bginput tabIndex=1001 size=25 name=query><INPUT class=button tabIndex=1004 type=submit value=Go></DIV>
<DIV style="MARGIN-TOP: 6px"><LABEL for=rb_nb_sp0><INPUT id=rb_nb_sp0 tabIndex=1002 type=radio CHECKED value=0 name=showposts>Show Threads</LABEL> &nbsp; <LABEL for=rb_nb_sp1><INPUT id=rb_nb_sp1 tabIndex=1003 type=radio value=1 name=showposts>Show Posts</LABEL> </DIV></FORM></TD></TR>
<TR>
<TD class=vbmenu_option><A accessKey=4 href="search.php" rel=nofollow>Advanced Search</A></TD></TR></TBODY></TABLE></DIV><!-- / header quick search form --><!-- user cp tools menu -->
<DIV class=vbmenu_popup id=usercptools_menu style="DISPLAY: none">
<TABLE cellSpacing=1 cellPadding=4 border=0>
<TBODY>
<TR>
<TD class=thead>Quick Links</TD></TR>
<TR>
<TD class=vbmenu_option><A href="search.php?do=getdaily">Today's Posts</A></TD></TR>
<TR>
<TD class=vbmenu_option><A href="forumdisplay.php?do=markread">Mark Forums Read</A></TD></TR>
<TR>
<TD class=vbmenu_option><A onclick="window.open('misc.php?do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;" href="#">Open Buddy List</A></TD></TR>
<TR>
<TD class=thead><A href="usercp.php">User Control Panel</A></TD></TR>
<TR>
<TD class=vbmenu_option><A href="profile.php?do=editsignature">Edit Signature</A></TD></TR><!--<tr><td class="vbmenu_option"><a href="profile.php?do=editavatar">Edit Avatar</a></td></tr>-->
<TR>
<TD class=vbmenu_option><A href="profile.php?do=editprofile">Edit Profile</A></TD></TR>
<TR>
<TD class=vbmenu_option><A href="profile.php?do=editoptions">Edit Options</A></TD></TR>
<TR>
<TD class=thead>Miscellaneous</TD></TR>
<TR>
<TD class=vbmenu_option><A href="subscription.php" rel=nofollow>Subscribed Threads</A></TD></TR>
<TR>
<TD class=vbmenu_option><A href="member.php?u=39669">My Profile</A></TD></TR>
<TR>
<TD class=vbmenu_option><A href="online.php">Who's Online</A></TD></TR></TBODY></TABLE></DIV><!-- / user cp tools menu --><!-- / NAVBAR POPUP MENUS --><!-- PAGENAV POPUP -->
<DIV class=vbmenu_popup id=pagenav_menu style="DISPLAY: none">
<TABLE cellSpacing=1 cellPadding=4 border=0>
<TBODY>
<TR>
<TD class=thead noWrap>Go to Page...</TD></TR>
<TR>
<TD class=vbmenu_option title=nohilite>
<FORM id=pagenav_form onsubmit="return this.gotopage()" action=index.php method=get><INPUT class=bginput id=pagenav_itxt style="FONT-SIZE: 11px" size=4> <INPUT class=button id=pagenav_ibtn type=button value=Go> </FORM></TD></TR></TBODY></TABLE></DIV><!-- / PAGENAV POPUP -->
<FORM name=vbform onsubmit="return vB_Editor['vB_Editor_001'].prepare_submit(this.subject.value, 10)" action=newthread.php?do=postthread&amp;f=12 method=post>
<TABLE class=tborder cellSpacing=1 cellPadding=6 width="100%" align=center border=0>
<TBODY>
<TR>
<TD class=tcat><SPAN class=smallfont style="FLOAT: right"><STRONG>Forum</STRONG>: <A href="forumdisplay.php?f=12">Test Area</A></SPAN> Post New Thread </TD></TR>
<TR>
<TD class=panelsurround align=middle>
<DIV class=panel>
<DIV style="WIDTH: 640px" align=left><!-- user is logged in -->
<DIV class=smallfont style="FLOAT: right">Logged in as <A href="member.php?u=39669" target=_blank>Mithrandir</A> </DIV><!-- subject field -->
<TABLE class=fieldset cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD class=smallfont colSpan=3>Title:</TD></TR>
<TR>
<TD><INPUT class=bginput tabIndex=1 maxLength=85 size=40 name=subject></TD>
<TD>&nbsp;&nbsp;</TD>
<TD><IMG id=display_posticon alt="" src="clear.gif"></TD></TR></TBODY></TABLE><!-- / subject field --><!-- message area -->
<DIV class=smallfont>Message:</DIV><!-- EDITOR SCRIPTS -->
<script src="clientscript/vbulletin_textedit.js?v=368" type=text/javascript></SCRIPT>

<script type=text/javascript>
<!--
var fontoptions = new Array("Arial", "Arial Black", "Arial Narrow", "Book Antiqua", "Century Gothic", "Comic Sans MS", "Courier New", "Fixedsys", "Franklin Gothic Medium", "Garamond", "Georgia", "Impact", "Lucida Console", "Lucida Sans Unicode", "Microsoft Sans Serif", "Palatino Linotype", "System", "Tahoma", "Times New Roman", "Trebuchet MS", "Verdana");
var sizeoptions = new Array(1, 2, 3, 4, 5, 6, 7);
var smilieoptions = new Array(); smilieoptions = { 
    'Generic Smilies' : {
        '5' : new Array('images/smilies/tongue.gif', ':p', 'Stick Out Tongue'),
        '4' : new Array('images/smilies/wink.gif', ';)', 'Wink'),
        '3' : new Array('images/smilies/biggrin.gif', ':D', 'Big Grin'),
        '2' : new Array('images/smilies/redface.gif', ':o', 'Embarrassment'),
        '1' : new Array('images/smilies/smile.gif', ':)', 'Smile'),
        '11' : new Array('images/smilies/frown.gif', ':(', 'Frown'),
        '10' : new Array('images/smilies/confused.gif', ':confused:', 'Confused'),
        '8' : new Array('images/smilies/mad.gif', ':mad:', 'Mad'),
        '7' : new Array('images/smilies/rolleyes.gif', ':rolleyes:', 'Roll Eyes (Sarcastic)'),
        '6' : new Array('images/smilies/cool.gif', ':cool:', 'Cool'),
        '9' : new Array('images/smilies/eek.gif', ':eek:', 'EEK!')} };

var istyles = new Array(); istyles = { "pi_button_down" : [ "#98B5E2", "#000000", "0px", "1px solid #316AC5" ], "pi_button_hover" : [ "#C1D2EE", "#000000", "0px", "1px solid #316AC5" ], "pi_button_normal" : [ "#E1E1E2", "#000000", "1px", "none" ], "pi_button_selected" : [ "#F1F6F8", "#000000", "0px", "1px solid #316AC5" ], "pi_menu_down" : [ "#98B5E2", "#316AC5", "0px", "1px solid #316AC5" ], "pi_menu_hover" : [ "#C1D2EE", "#316AC5", "0px", "1px solid #316AC5" ], "pi_menu_normal" : [ "#FFFFFF", "#000000", "0px", "1px solid #FFFFFF" ], "pi_popup_down" : [ "#98B5E2", "#000000", "0px", "1px solid #316AC5" ] };

var smiliewindow_x = 240;
var smiliewindow_y = 280;

var ignorequotechars = 1;

// vB Phrases
vbphrase["wysiwyg_please_wait"]       = "Please wait for the WYSIWYG editor to finish loading...";
vbphrase["wysiwyg_initialized"]       = "WYSIWYG Editor initialized for %1$s in %2$s seconds.";
vbphrase["wysiwyg_command_invalid"]   = "This command is invalid or not implemented.";
vbphrase["moz_must_select_text"]         = "Mozilla requires that you must select some text for this function to work";
vbphrase["moz_edit_config_file"]         = "You need to edit your Mozilla config file to allow this action.";
vbphrase["enter_tag_option"]             = "Please enter the option for your %1$s tag:";
vbphrase["must_select_text_to_use"]   = "You must select some text to use this function.";
vbphrase["browser_is_safari_no_wysiwyg"] = "The Safari browser does not support WYSIWYG mode.";
vbphrase["enter_option_x_tag"]         = "Enter the option for the [%1$s] tag:";
vbphrase["enter_text_to_be_formatted"]   = "Enter the text to be formatted";
vbphrase["enter_link_text"]           = "Enter the text to be displayed for the link (optional):";
vbphrase["enter_list_type"]           = "What type of list do you want? Enter '1' for a numbered list, enter 'a' for an alphabetical list, or leave blank for a list with bullet points:";
vbphrase["enter_list_item"]           = "Enter a list item.\r\nLeave the box empty or press 'Cancel' to complete the list:";
vbphrase["must_enter_subject"]         = "You must enter a title / subject!";
vbphrase["message_too_short"]           = "The message you have entered is too short. Please lengthen your message to at least %1$s characters.";
vbphrase["enter_link_url"]             = "Please enter the URL of your link:";
vbphrase["enter_image_url"]           = "Please enter the URL of your image:";
vbphrase["enter_email_link"]             = "Please enter the email address for the link:";
vbphrase["complete_image_verification"]  = "You did not complete the Image Verification";
vbphrase["iespell_not_installed"]       = "ieSpell is a spell-checking tool for Internet Explorer.\r\n\r\nIf you would like to download ieSpell, click OK; otherwise click Cancel.\r\n\r\nieSpell can be downloaded from http://www.iespell.com";
vbphrase["click_quick_reply_icon"]     = "";
vbphrase["insert_all"]                 = "Insert All";

//-->
</SCRIPT>
<!-- END EDITOR SCRIPTS --><!-- EDITOR STYLES --><LINK href="clientscript/vbulletin_editor.css" type=text/css rel=stylesheet>
<STYLE type=text/css>
<!--
.vBulletin_editor {
    background: #E1E1E2;
    padding: 6px;
}
.imagebutton {
    background: #E1E1E2;
    color: #000000;
    padding: 1px;
    border: none;
}
.ocolor, .ofont, .osize, .osmilie, .osyscoloar, .smilietitle {
    background: #FFFFFF;
    color: #000000;
    border: 1px solid #FFFFFF;
}
.popup_pickbutton {
    border: 1px solid #FFFFFF;
}
.popup_feedback {
    background: #FFFFFF;
    color: #000000;
    border-right: 1px solid #FFFFFF;
}
.popupwindow {
    background: #FFFFFF;
}
#fontOut, #sizeOut, .popup_feedback div {
    background: #FFFFFF;
    color: #000000;
}
.alt_pickbutton {
    border-left: 1px solid #E1E1E2;
}
.popup_feedback input, .popup_feedback div
{
    border: 0px solid;
    padding: 0px 2px 0px 2px;
    cursor: default;
    font: 11px tahoma;
    overflow: hidden;
}
-->
</STYLE>
<!-- END EDITOR STYLES -->
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD class=vBulletin_editor id=vB_Editor_001 width="100%">
<DIV class=controlbar id=vB_Editor_001_controls unselectable="on">
<TABLE cellSpacing=0 cellPadding=0 border=0 unselectable="on">
<TBODY unselectable="on">
<TR unselectable="on">
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_removeformat state="false" unselectable="on" editorid="vB_Editor_001" cmd="removeformat" mode="normal"><IMG title="Remove Text Formatting" height=20 alt="Remove Text Formatting" src="images/editor/removeformat.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/separator.gif" width=6 unselectable="on"></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_popup_fontname title=Fonts style="BORDER-RIGHT: medium none; PADDING-RIGHT: 1px; BORDER-TOP: medium none; PADDING-LEFT: 1px; BACKGROUND: #e1e1e2; PADDING-BOTTOM: 1px; BORDER-LEFT: medium none; COLOR: #000000; PADDING-TOP: 1px; BORDER-BOTTOM: medium none" state="false" unselectable="on" editorid="vB_Editor_001" cmd="fontname" mode="normal">
<TABLE cellSpacing=0 cellPadding=0 border=0 unselectable="on">
<TBODY unselectable="on">
<TR unselectable="on">
<TD class=popup_feedback style="BORDER-RIGHT: #ffffff 1px solid" unselectable="on">
<DIV id=vB_Editor_001_font_out style="WIDTH: 91px" unselectable="on">Fonts</DIV>
<DIV id=vB_Editor_001_fontoption_Arial style="DISPLAY: none; WIDTH: 91px" unselectable="on">Arial</DIV>
<DIV id="vB_Editor_001_fontoption_Arial Black" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Arial Black</DIV>
<DIV id="vB_Editor_001_fontoption_Arial Narrow" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Arial Narrow</DIV>
<DIV id="vB_Editor_001_fontoption_Book Antiqua" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Book Antiqua</DIV>
<DIV id="vB_Editor_001_fontoption_Century Gothic" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Century Gothic</DIV>
<DIV id="vB_Editor_001_fontoption_Comic Sans MS" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Comic Sans MS</DIV>
<DIV id="vB_Editor_001_fontoption_Courier New" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Courier New</DIV>
<DIV id=vB_Editor_001_fontoption_Fixedsys style="DISPLAY: none; WIDTH: 91px" unselectable="on">Fixedsys</DIV>
<DIV id="vB_Editor_001_fontoption_Franklin Gothic Medium" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Franklin Gothic Medium</DIV>
<DIV id=vB_Editor_001_fontoption_Garamond style="DISPLAY: none; WIDTH: 91px" unselectable="on">Garamond</DIV>
<DIV id=vB_Editor_001_fontoption_Georgia style="DISPLAY: none; WIDTH: 91px" unselectable="on">Georgia</DIV>
<DIV id=vB_Editor_001_fontoption_Impact style="DISPLAY: none; WIDTH: 91px" unselectable="on">Impact</DIV>
<DIV id="vB_Editor_001_fontoption_Lucida Console" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Lucida Console</DIV>
<DIV id="vB_Editor_001_fontoption_Lucida Sans Unicode" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Lucida Sans Unicode</DIV>
<DIV id="vB_Editor_001_fontoption_Microsoft Sans Serif" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Microsoft Sans Serif</DIV>
<DIV id="vB_Editor_001_fontoption_Palatino Linotype" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Palatino Linotype</DIV>
<DIV id=vB_Editor_001_fontoption_System style="DISPLAY: none; WIDTH: 91px" unselectable="on">System</DIV>
<DIV id=vB_Editor_001_fontoption_Tahoma style="DISPLAY: none; WIDTH: 91px" unselectable="on">Tahoma</DIV>
<DIV id="vB_Editor_001_fontoption_Times New Roman" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Times New Roman</DIV>
<DIV id="vB_Editor_001_fontoption_Trebuchet MS" style="DISPLAY: none; WIDTH: 91px" unselectable="on">Trebuchet MS</DIV>
<DIV id=vB_Editor_001_fontoption_Verdana style="DISPLAY: none; WIDTH: 91px" unselectable="on">Verdana</DIV></TD>
<TD class=popup_pickbutton style="BORDER-LEFT-COLOR: #ffffff; BORDER-BOTTOM-COLOR: #ffffff; BORDER-TOP-COLOR: #ffffff; BORDER-RIGHT-COLOR: #ffffff" unselectable="on"><IMG height=16 alt="" src="images/editor/menupop.gif" width=11 unselectable="on"></TD></TR></TBODY></TABLE></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_popup_fontsize title=Sizes state="false" unselectable="on" editorid="vB_Editor_001" cmd="fontsize">
<TABLE cellSpacing=0 cellPadding=0 border=0 unselectable="on">
<TBODY unselectable="on">
<TR unselectable="on">
<TD class=popup_feedback unselectable="on">
<DIV id=vB_Editor_001_size_out style="WIDTH: 25px" unselectable="on">Sizes</DIV>
<DIV id=vB_Editor_001_sizeoption_1 style="DISPLAY: none; WIDTH: 25px" unselectable="on">1</DIV>
<DIV id=vB_Editor_001_sizeoption_2 style="DISPLAY: none; WIDTH: 25px" unselectable="on">2</DIV>
<DIV id=vB_Editor_001_sizeoption_3 style="DISPLAY: none; WIDTH: 25px" unselectable="on">3</DIV>
<DIV id=vB_Editor_001_sizeoption_4 style="DISPLAY: none; WIDTH: 25px" unselectable="on">4</DIV>
<DIV id=vB_Editor_001_sizeoption_5 style="DISPLAY: none; WIDTH: 25px" unselectable="on">5</DIV>
<DIV id=vB_Editor_001_sizeoption_6 style="DISPLAY: none; WIDTH: 25px" unselectable="on">6</DIV>
<DIV id=vB_Editor_001_sizeoption_7 style="DISPLAY: none; WIDTH: 25px" unselectable="on">7</DIV></TD>
<TD class=popup_pickbutton unselectable="on"><IMG height=16 alt="" src="images/editor/menupop.gif" width=11 unselectable="on"></TD></TR></TBODY></TABLE></DIV></TD>
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/separator.gif" width=6 unselectable="on"></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_popup_forecolor title=Colors state="false" unselectable="on" editorid="vB_Editor_001" cmd="forecolor">
<TABLE cellSpacing=0 cellPadding=0 border=0 unselectable="on">
<TBODY unselectable="on">
<TR unselectable="on">
<TD id=vB_Editor_001_color_out unselectable="on"><IMG height=16 alt="" src="images/editor/color.gif" width=21 unselectable="on"><BR unselectable="on"><IMG id=vB_Editor_001_color_bar style="BACKGROUND-COLOR: black" height=4 alt="" src="clear.gif" width=21 unselectable="on"></TD>
<TD class=alt_pickbutton unselectable="on"><IMG height=16 alt="" src="images/editor/menupop.gif" width=11 unselectable="on"></TD></TR></TBODY></TABLE></DIV></TD>
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/separator.gif" width=6 unselectable="on"></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_popup_smilie title=Smilies state="false" unselectable="on" editorid="vB_Editor_001" cmd="smilie">
<TABLE cellSpacing=0 cellPadding=0 border=0 unselectable="on">
<TBODY unselectable="on">
<TR unselectable="on">
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/smilie.gif" width=21 unselectable="on"></TD>
<TD class=alt_pickbutton unselectable="on"><IMG height=16 alt="" src="images/editor/menupop.gif" width=11 unselectable="on"></TD></TR></TBODY></TABLE></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_popup_attach title=Attachments state="false" unselectable="on" editorid="vB_Editor_001" cmd="attach">
<TABLE cellSpacing=0 cellPadding=0 border=0 unselectable="on">
<TBODY unselectable="on">
<TR unselectable="on">
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/attach.gif" width=21 unselectable="on"></TD>
<TD class=alt_pickbutton unselectable="on"><IMG height=16 alt="" src="images/editor/menupop.gif" width=11 unselectable="on"></TD></TR></TBODY></TABLE></DIV></TD><!--
                <td><img src="images/editor/separator.gif" width="6" height="20" alt="" /></td>
                <td><div class="imagebutton" id="vB_Editor_001_cmd_cut"><img src="images/editor/cut.gif" width="21" height="20" alt="Cut" /></div></td>
                <td><div class="imagebutton" id="vB_Editor_001_cmd_copy"><img src="images/editor/copy.gif" width="21" height="20" alt="Copy" /></div></td>
                <td><div class="imagebutton" id="vB_Editor_001_cmd_paste"><img src="images/editor/paste.gif" width="21" height="20" alt="Paste" /></div></td>
                -->
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/separator.gif" width=6 unselectable="on"></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_undo state="false" unselectable="on" editorid="vB_Editor_001" cmd="undo" mode="normal"><IMG title=Undo height=20 alt=Undo src="images/editor/undo.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_redo state="false" unselectable="on" editorid="vB_Editor_001" cmd="redo" mode="normal"><IMG title=Redo height=20 alt=Redo src="images/editor/redo.gif" width=21 unselectable="on"></DIV></TD>
<TD width="100%" unselectable="on">&nbsp;</TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_spelling state="false" unselectable="on" editorid="vB_Editor_001" cmd="spelling" mode="normal"><IMG title="Check Spelling" height=20 alt="Check Spelling" src="images/editor/spelling.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_resize_0_100 state="false" unselectable="on" editorid="vB_Editor_001" cmd="resize_0_100" mode="normal"><IMG title="Decrease Size" height=9 alt="Decrease Size" src="images/editor/resize_0.gif" width=21 unselectable="on"></DIV>
<DIV class=imagebutton id=vB_Editor_001_cmd_resize_1_100 state="false" unselectable="on" editorid="vB_Editor_001" cmd="resize_1_100" mode="normal"><IMG title="Increase Size" height=9 alt="Increase Size" src="images/editor/resize_1.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_switchmode style="BORDER-RIGHT: medium none; PADDING-RIGHT: 1px; BORDER-TOP: medium none; PADDING-LEFT: 1px; BACKGROUND: #e1e1e2; PADDING-BOTTOM: 1px; BORDER-LEFT: medium none; COLOR: #000000; PADDING-TOP: 1px; BORDER-BOTTOM: medium none" state="false" unselectable="on" editorid="vB_Editor_001" cmd="switchmode" mode="normal"><IMG title="Switch Editor Mode" height=20 alt="Switch Editor Mode" src="images/editor/switchmode.gif" width=21 unselectable="on"></DIV></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 border=0 unselectable="on">
<TBODY unselectable="on">
<TR unselectable="on">
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_bold state="false" unselectable="on" editorid="vB_Editor_001" cmd="bold" mode="normal"><IMG title=Bold height=20 alt=Bold src="images/editor/bold.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_italic state="false" unselectable="on" editorid="vB_Editor_001" cmd="italic" mode="normal"><IMG title=Italic height=20 alt=Italic src="images/editor/italic.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_underline state="false" unselectable="on" editorid="vB_Editor_001" cmd="underline" mode="normal"><IMG title=Underline height=20 alt=Underline src="images/editor/underline.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/separator.gif" width=6 unselectable="on"></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_justifyleft state="false" unselectable="on" editorid="vB_Editor_001" cmd="justifyleft" mode="normal"><IMG title="Align Left" height=20 alt="Align Left" src="images/editor/justifyleft.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_justifycenter state="false" unselectable="on" editorid="vB_Editor_001" cmd="justifycenter" mode="normal"><IMG title="Align Center" height=20 alt="Align Center" src="images/editor/justifycenter.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_justifyright state="false" unselectable="on" editorid="vB_Editor_001" cmd="justifyright" mode="normal"><IMG title="Align Right" height=20 alt="Align Right" src="images/editor/justifyright.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/separator.gif" width=6 unselectable="on"></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_insertorderedlist state="false" unselectable="on" editorid="vB_Editor_001" cmd="insertorderedlist" mode="normal"><IMG title="Ordered List" height=20 alt="Ordered List" src="images/editor/insertorderedlist.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_insertunorderedlist state="false" unselectable="on" editorid="vB_Editor_001" cmd="insertunorderedlist" mode="normal"><IMG title="Unordered List" height=20 alt="Unordered List" src="images/editor/insertunorderedlist.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_outdent state="false" unselectable="on" editorid="vB_Editor_001" cmd="outdent" mode="normal"><IMG title="Decrease Indent" height=20 alt="Decrease Indent" src="images/editor/outdent.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_indent state="false" unselectable="on" editorid="vB_Editor_001" cmd="indent" mode="normal"><IMG title="Increase Indent" height=20 alt="Increase Indent" src="images/editor/indent.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/separator.gif" width=6 unselectable="on"></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_createlink state="false" unselectable="on" editorid="vB_Editor_001" cmd="createlink" mode="normal"><IMG title="Insert Link" height=20 alt="Insert Link" src="images/editor/createlink.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_unlink state="false" unselectable="on" editorid="vB_Editor_001" cmd="unlink" mode="normal"><IMG title="Remove Link" height=20 alt="Remove Link" src="images/editor/unlink.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_email state="false" unselectable="on" editorid="vB_Editor_001" cmd="email" mode="normal"><IMG title="Insert Email Link" height=20 alt="Insert Email Link" src="images/editor/email.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_insertimage state="false" unselectable="on" editorid="vB_Editor_001" cmd="insertimage" mode="normal"><IMG title="Insert Image" height=20 alt="Insert Image" src="images/editor/insertimage.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/separator.gif" width=6 unselectable="on"></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_wrap0_quote state="false" unselectable="on" editorid="vB_Editor_001" cmd="wrap0_quote" mode="normal"><IMG title="Wrap [QUOTE] tags around selected text" height=20 alt="Wrap [QUOTE] tags around selected text" src="images/editor/quote.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on"><IMG height=20 alt="" src="images/editor/separator.gif" width=6 unselectable="on"></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_wrap0_code state="false" unselectable="on" editorid="vB_Editor_001" cmd="wrap0_code" mode="normal"><IMG title="Wrap [CODE] tags around selected text" height=20 alt="Wrap [CODE] tags around selected text" src="images/editor/code.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_wrap0_html state="false" unselectable="on" editorid="vB_Editor_001" cmd="wrap0_html" mode="normal"><IMG title="Wrap [HTML] tags around selected text" height=20 alt="Wrap [HTML] tags around selected text" src="images/editor/html.gif" width=21 unselectable="on"></DIV></TD>
<TD unselectable="on">
<DIV class=imagebutton id=vB_Editor_001_cmd_wrap0_php state="false" unselectable="on" editorid="vB_Editor_001" cmd="wrap0_php" mode="normal"><IMG title="Wrap [PHP] tags around selected text" height=20 alt="Wrap [PHP] tags around selected text" src="images/editor/php.gif" width=21 unselectable="on"></DIV></TD></TR></TBODY></TABLE></DIV>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR vAlign=top>
<TD class=controlbar><TEXTAREA id=vB_Editor_001_textarea dir=ltr style="DISPLAY: block; WIDTH: 540px; HEIGHT: 250px" tabIndex=1 name=message rows=10 cols=60 editorid="vB_Editor_001"></TEXTAREA> </TD>
<TD class=controlbar>
<FIELDSET id=vB_Editor_001_smiliebox title=Smilies><LEGEND>Smilies</LEGEND>
<TABLE cellSpacing=0 cellPadding=4 align=center border=0>
<TBODY>
<TR vAlign=bottom align=middle>
<TD><IMG id=vB_Editor_001_smilie_5 title="Stick Out Tongue" style="CURSOR: pointer" alt=:p src="images/smilies/tongue.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD>
<TD><IMG id=vB_Editor_001_smilie_4 title=Wink style="CURSOR: pointer" alt=;) src="images/smilies/wink.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD>
<TD><IMG id=vB_Editor_001_smilie_3 title="Big Grin" style="CURSOR: pointer" alt=:D src="images/smilies/biggrin.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD></TR>
<TR vAlign=bottom align=middle>
<TD><IMG id=vB_Editor_001_smilie_2 title=Embarrassment style="CURSOR: pointer" alt=:o src="images/smilies/redface.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD>
<TD><IMG id=vB_Editor_001_smilie_1 title=Smile style="CURSOR: pointer" alt=:) src="images/smilies/smile.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD>
<TD><IMG id=vB_Editor_001_smilie_11 title=Frown style="CURSOR: pointer" alt=:( src="images/smilies/frown.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD></TR>
<TR vAlign=bottom align=middle>
<TD><IMG id=vB_Editor_001_smilie_10 title=Confused style="CURSOR: pointer" alt=:confused: src="images/smilies/confused.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD>
<TD><IMG id=vB_Editor_001_smilie_8 title=Mad style="CURSOR: pointer" alt=:mad: src="images/smilies/mad.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD>
<TD><IMG id=vB_Editor_001_smilie_7 title="Roll Eyes (Sarcastic)" style="CURSOR: pointer" alt=:rolleyes: src="images/smilies/rolleyes.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD></TR>
<TR vAlign=bottom align=middle>
<TD><IMG id=vB_Editor_001_smilie_6 title=Cool style="CURSOR: pointer" alt=:cool: src="images/smilies/cool.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD>
<TD><IMG id=vB_Editor_001_smilie_9 title=EEK! style="CURSOR: pointer" alt=:eek: src="images/smilies/eek.gif" border=0 unselectable="on" editorid="vB_Editor_001"></TD>
<TD>&nbsp;</TD></TR></TBODY></TABLE></FIELDSET> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><INPUT id=vB_Editor_001_mode type=hidden value=0 name=wysiwyg>
<script type=text/javascript>
<!--
vB_Editor['vB_Editor_001'] = new vB_Text_Editor('vB_Editor_001', 0, '12', '1', undefined, '');
//-->
</SCRIPT>
 <!-- / message area -->
<script type=text/javascript>
    <!--
    function swap_posticon(imgid)
    {
        var out = fetch_object("display_posticon");
        var img = fetch_object(imgid);
        if (img)
        {
            out.src = img.src;
            out.alt = img.alt;
        }
        else
        {
            out.src = "clear.gif";
            out.alt = "";
        }
    }
    // -->
    </SCRIPT>

<FIELDSET class=fieldset style="MARGIN: 10px 0px 0px"><LEGEND>Post Icons</LEGEND>
<DIV style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
<TABLE cellSpacing=1 cellPadding=0 width="95%" border=0>
<TBODY>
<TR>
<TD colSpan=15>
<DIV style="MARGIN-BOTTOM: 3px">You may choose an icon for your message from the following list:</DIV></TD></TR>
<TR>
<TD noWrap width="12%"><LABEL for=rb_iconid_0><INPUT id=rb_iconid_0 onclick=swap_posticon(null) tabIndex=1 type=radio CHECKED value=0 name=iconid>No icon &nbsp; &nbsp;</LABEL></TD>
<TD><INPUT id=rb_iconid_1 onclick="swap_posticon('pi_1')" tabIndex=1 type=radio value=1 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_1><IMG id=pi_1 title=Post onclick=rb_iconid_1.click() alt=Post src="images/icons/icon1.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_13 onclick="swap_posticon('pi_13')" tabIndex=1 type=radio value=13 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_13><IMG id=pi_13 title="Thumbs down" onclick=rb_iconid_13.click() alt="Thumbs down" src="images/icons/icon13.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_12 onclick="swap_posticon('pi_12')" tabIndex=1 type=radio value=12 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_12><IMG id=pi_12 title=Wink onclick=rb_iconid_12.click() alt=Wink src="images/icons/icon12.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_11 onclick="swap_posticon('pi_11')" tabIndex=1 type=radio value=11 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_11><IMG id=pi_11 title="Red face" onclick=rb_iconid_11.click() alt="Red face" src="images/icons/icon11.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_10 onclick="swap_posticon('pi_10')" tabIndex=1 type=radio value=10 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_10><IMG id=pi_10 title=Talking onclick=rb_iconid_10.click() alt=Talking src="images/icons/icon10.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_9 onclick="swap_posticon('pi_9')" tabIndex=1 type=radio value=9 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_9><IMG id=pi_9 title=Unhappy onclick=rb_iconid_9.click() alt=Unhappy src="images/icons/icon9.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_8 onclick="swap_posticon('pi_8')" tabIndex=1 type=radio value=8 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_8><IMG id=pi_8 title=Angry onclick=rb_iconid_8.click() alt=Angry src="images/icons/icon8.gif"></LABEL></TD></TR>
<TR>
<TD>&nbsp;</TD>
<TD><INPUT id=rb_iconid_7 onclick="swap_posticon('pi_7')" tabIndex=1 type=radio value=7 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_7><IMG id=pi_7 title=Smile onclick=rb_iconid_7.click() alt=Smile src="images/icons/icon7.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_6 onclick="swap_posticon('pi_6')" tabIndex=1 type=radio value=6 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_6><IMG id=pi_6 title=Cool onclick=rb_iconid_6.click() alt=Cool src="images/icons/icon6.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_5 onclick="swap_posticon('pi_5')" tabIndex=1 type=radio value=5 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_5><IMG id=pi_5 title=Question onclick=rb_iconid_5.click() alt=Question src="images/icons/icon5.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_4 onclick="swap_posticon('pi_4')" tabIndex=1 type=radio value=4 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_4><IMG id=pi_4 title=Exclamation onclick=rb_iconid_4.click() alt=Exclamation src="images/icons/icon4.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_3 onclick="swap_posticon('pi_3')" tabIndex=1 type=radio value=3 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_3><IMG id=pi_3 title=Lightbulb onclick=rb_iconid_3.click() alt=Lightbulb src="images/icons/icon3.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_2 onclick="swap_posticon('pi_2')" tabIndex=1 type=radio value=2 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_2><IMG id=pi_2 title=Arrow onclick=rb_iconid_2.click() alt=Arrow src="images/icons/icon2.gif"></LABEL></TD>
<TD><INPUT id=rb_iconid_14 onclick="swap_posticon('pi_14')" tabIndex=1 type=radio value=14 name=iconid></TD>
<TD width="12%"><LABEL for=rb_iconid_14><IMG id=pi_14 title="Thumbs up" onclick=rb_iconid_14.click() alt="Thumbs up" src="images/icons/icon14.gif"></LABEL></TD></TR></TBODY></TABLE></DIV></FIELDSET> </DIV></DIV>
<DIV style="MARGIN-TOP: 6px"><INPUT type=hidden name=s> <INPUT type=hidden value=12 name=f> <INPUT type=hidden value=postthread name=do> <INPUT type=hidden value=db5c98ffe042cee8a56f6d4346a70f8a name=posthash> <INPUT type=hidden value=1244248721 name=poststarttime> <INPUT type=hidden value=39669 name=loggedinuser> <INPUT class=button id=vB_Editor_001_save accessKey=s tabIndex=1 type=submit value="Submit New Thread" name=sbutton> <INPUT class=button accessKey=r tabIndex=1 type=submit value="Preview Post" name=preview> </DIV></TD></TR></TBODY></TABLE><BR>
<TABLE class=tborder cellSpacing=1 cellPadding=6 width="100%" align=center border=0>
<THEAD>
<TR>
<TD class=tcat><A style="FLOAT: right" onclick="return toggle_collapse('newpost_options')" href="#top" rel=nofollow><IMG id=collapseimg_newpost_options alt="" src="images/buttons/collapse_tcat.gif" border=0></A> Additional Options </TD></TR></THEAD>
<TBODY id=collapseobj_newpost_options>
<TR vAlign=top>
<TD class=panelsurround align=middle>
<DIV class=panel>
<DIV style="WIDTH: 640px" align=left>
<FIELDSET class=fieldset><LEGEND>Miscellaneous Options</LEGEND>
<DIV style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
<DIV><LABEL for=cb_signature><INPUT id=cb_signature tabIndex=1 type=checkbox CHECKED value=1 name=signature>Show your signature</LABEL></DIV>
<DIV><LABEL for=cb_parseurl><INPUT id=cb_parseurl tabIndex=1 type=checkbox CHECKED value=1 name=parseurl>Automatically parse links in text</LABEL></DIV>
<DIV><LABEL for=cb_disablesmilies><INPUT id=cb_disablesmilies tabIndex=1 type=checkbox value=1 name=disablesmilies>Disable smilies in text</LABEL></DIV></DIV></FIELDSET> 
<FIELDSET class=fieldset><LEGEND>Attach Files</LEGEND>
<DIV style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
<DIV style="MARGIN-BOTTOM: 3px">
<DIV>Valid file extensions: bmp doc gif jpe jpeg jpg pdf png psd txt zip</DIV></DIV>
<DIV id=attachlist style="MARGIN-BOTTOM: 3px"></DIV>
<DIV>
<script src="clientscript/vbulletin_attachment.js?v=368" type=text/javascript></SCRIPT>

<script type=text/javascript>
            <!--
            var newpost_attachmentbit = '<div style="margin:2px">\r\n   <img class="inlineimg" src="%1$s" alt="" border="0" />\r\n  <a href="attachment.php?attachmentid=%3$s&amp;stc=1&amp;d=%4$s" target="_blank">%5$s</a>\r\n    (%6$s)\r\n</div>';
            vB_Attachments = new vB_Attachment('attachlist', '');
            
            document.write('<input type="button" id="manage_attachments_button" class="button" tabindex="1" style="font-weight:normal" value="Manage Attachments" title="Click here to add or edit files attached to this message" onclick="vB_Attachments.open_window(\'newattachment.php?f=12&amp;poststarttime=1244248721&amp;posthash=db5c98ffe042cee8a56f6d4346a70f8a\', 480, 480, \'\')" />');
            //-->
            </SCRIPT>
<INPUT class=button id=manage_attachments_button title="Click here to add or edit files attached to this message" style="FONT-WEIGHT: normal" onclick="vB_Attachments.open_window('newattachment.php?f=12&amp;poststarttime=1244248721&amp;posthash=db5c98ffe042cee8a56f6d4346a70f8a', 480, 480, '')" tabIndex=1 type=button value="Manage Attachments"> <NOSCRIPT></NOSCRIPT></DIV></DIV></FIELDSET> 
<FIELDSET class=fieldset><LEGEND>Thread Subscription</LEGEND>
<TABLE cellSpacing=3 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>Notification Type:<BR><SELECT tabIndex=1 name=emailupdate> <OPTION value=9999 selected>Do not subscribe</OPTION> <OPTION value=0>No email notification</OPTION> <OPTION value=1>Instant email notification</OPTION> <OPTION value=2>Daily email notification</OPTION> <OPTION value=3>Weekly email notification</OPTION></SELECT></TD>
<TD>Folder:<BR><SELECT tabIndex=1 name=folderid><OPTION value=1>HILOS EN LOS QUE POSTEE (0 Threads)</OPTION> <OPTION value=0 selected>Subscriptions (281 Threads)</OPTION></SELECT></TD></TR></TBODY></TABLE></FIELDSET> 
<FIELDSET class=fieldset><LEGEND>Post a Poll</LEGEND>
<DIV style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
<DIV><LABEL for=cb_postpoll><INPUT id=cb_postpoll tabIndex=1 type=checkbox value=yes name=postpoll>Yes, post a poll with this thread</LABEL></DIV>
<DIV><LABEL for=polloptnum>Number of poll options: <INPUT class=bginput id=polloptnum tabIndex=1 size=5 value=4 name=polloptions></LABEL> (Maximum: 10)</DIV></DIV></FIELDSET> 
<FIELDSET class=fieldset><LEGEND>Thread Management</LEGEND>
<DIV style="PADDING-RIGHT: 3px; PADDING-LEFT: 3px; PADDING-BOTTOM: 3px; PADDING-TOP: 3px">
<DIV><LABEL for=cb_openclose><INPUT id=cb_openclose tabIndex=1 type=checkbox value=1 name=openclose>Close this thread after you submit your message</LABEL> </DIV>
<DIV><LABEL for=cb_stickunstick><INPUT id=cb_stickunstick tabIndex=1 type=checkbox value=1 name=stickunstick>Stick this thread after you submit your message</LABEL> </DIV></DIV></FIELDSET> </DIV></DIV>
<DIV style="MARGIN-TOP: 6px"><INPUT class=button accessKey=s tabIndex=1 type=submit value="Submit New Thread" name=sbutton> <INPUT class=button accessKey=r tabIndex=1 type=submit value="Preview Post" name=preview> </DIV></TD></TR></TBODY></TABLE></FORM><BR>
<TABLE class=tborder cellSpacing=1 cellPadding=6 width=180 border=0>
<THEAD>
<TR>
<TD class=thead><A style="FLOAT: right" onclick="return toggle_collapse('forumrules')" href="#top" rel=nofollow><IMG id=collapseimg_forumrules alt="" src="images/buttons/collapse_thead.gif" border=0></A> Posting Rules </TD></TR></THEAD>
<TBODY id=collapseobj_forumrules>
<TR>
<TD class=alt1 noWrap>
<DIV class=smallfont>
<DIV>You <STRONG>may </STRONG>post new threads</DIV>
<DIV>You <STRONG>may </STRONG>post replies</DIV>
<DIV>You <STRONG>may </STRONG>post attachments</DIV>
<DIV>You <STRONG>may </STRONG>edit your posts</DIV>
<HR>

<DIV><A href="misc.php?do=bbcode" target=_blank>vB code</A> is <STRONG>On</STRONG></DIV>
<DIV><A href="misc.php?do=showsmilies" target=_blank>Smilies</A> are <STRONG>On</STRONG></DIV>
<DIV><A href="misc.php?do=bbcode#imgcode" target=_blank>[IMG]</A> code is <STRONG>On</STRONG></DIV>
<DIV>HTML code is <STRONG>Off</STRONG></DIV></DIV></TD></TR></TBODY></TABLE><BR>
<DIV class=smallfont align=center>All times are GMT. The time now is <SPAN class=time>12:38 AM</SPAN>.</DIV><BR></DIV></DIV></DIV><!-- / close content container --><!-- /content area table -->
<FORM action=index.php method=get>
<TABLE class=page cellSpacing=0 cellPadding=6 width="100%" align=center border=0>
<TBODY>
<TR>
<TD class=tfoot align=right width="100%">
<DIV class=smallfont><STRONG><A accessKey=9 href="sendmessage.php" rel=nofollow>Contact Us</A> - <A href="http://www.linkbucks.com">Linkbucks.com</A> - <A href="modcp/index.php">Mod</A> - <A href="archive/index.php">Archive</A> - <A onclick="self.scrollTo(0, 0); return false;" href="#top" rel=nofollow>Top</A> </STRONG></DIV></TD></TR></TBODY></TABLE><BR>
<DIV align=center>
<DIV class=smallfont align=center><!-- Do not remove this copyright notice -->Powered by vBulletin® Version 3.6.8<BR>Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. <!-- Do not remove this copyright notice --></DIV>
<DIV class=smallfont align=center><!-- Do not remove  or your scheduled tasks will cease to function --><!-- Do not remove  or your scheduled tasks will cease to function -->
<DIV>Forum SEO by <A href="http://zoints.com/">Zoints</A></DIV></DIV></DIV></FORM>
<script type=text/javascript>
<!--
    // Main vBulletin Javascript Initialization
    vBulletin_init();
//-->
</SCRIPT>

<script type=text/javascript>
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</SCRIPT>

<script src="http://www.google-analytics.com/ga.js" type=text/javascript></SCRIPT>

<script type=text/javascript>
var pageTracker = _gat._getTracker("UA-968655-12");
pageTracker._initData();
pageTracker._trackPageview();
</SCRIPT>
<!-- Start Quantcast tag -->
<script src="http://edge.quantserve.com/quant.js" type=text/javascript></SCRIPT>

<script type=text/javascript>_qacct="p-97twQYc7ecLKE";quantserve();</SCRIPT>
<NOSCRIPT></NOSCRIPT><!-- End Quantcast tag -->

Share this post


Link to post
Share on other sites



show the SciTe console output.


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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

show the SciTe console output.

Thanks! but sorry what do you mean by the SciTe console output? Do you want the form data from the IE Builder? or the code of my script (if so, it's the first that I posted)? or what? Thank you again for your help ;)

Edit: I think I may have figured it out. If you want the log that is generated when I run the script with tools-->beta run here it is:

>"C:\Archivos de programa\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\Pablo\Escritorio\test8.au3" /autoit3dir "C:\Archivos de programa\AutoIt3\beta" /UserParams    
+>18:23:35 Starting AutoIt3Wrapper v.2.0.0.1    Environment(Language:0C0A  Keyboard:0000040A  OS:WIN_XP/Service Pack 3  CPU:X86 OS:X86)
>Running AU3Check (1.54.15.0)  from:C:\Archivos de programa\AutoIt3\beta
+>18:23:36 AU3Check ended.rc:0
>Running:(3.3.1.0):C:\Archivos de programa\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Pablo\Escritorio\test8.au3"  
--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormSubmit, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IELoadWait, $_IEStatus_InvalidDataType
+>18:24:09 AutoIT3.exe ended.rc:0
+>18:24:10 AutoIt3Wrapper Finished
>Exit code: 0   Time: 36.582

I guess there's a problem with the function _IEFormElementGetObjByName (there are also problems with _IEAttach but I think they are minor problems...So I tried using _IEFormGetCollection, here is the code that I made:

#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/newthread.php?do=newthread&f=12")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username");I don't post here my actual username for obvious reasons
_IEFormElementSetValue ($oQuery2, "password");I don't post here my actual password for obvious reasons
_IEFormSubmit ($oForm)
_IELoadWait ($oIE)
$oIE2 = _IEAttach ("http://forums.linkbucks.com/login.php?do=login")
$oIE3 = _IEAttach ("Post New Thread", "text")
$oForm1 = _IEFormGetCollection ($oIE, 173);I got from the debugbar from http://www.debugbar.com/ that the form name was 'vbform' and then in IE Builder I saw in HTML Elements that the index number of 'vbform' was 173
$oQuery3 = _IEFormElementGetCollection ($oForm1, 0);I saw in IE Builder in Form elements that in form 2 there was a field named 'subject' whose index number was 0
$oQuery4 = _IEFormElementGetCollection ($oForm1, 1);I saw in IE Builder in Form elements that in form 2 there was a field named 'message' whose index number was 1
_IEFormElementSetValue ($oQuery3, "This is a test")
_IEFormElementSetValue ($oQuery4, "This is a new test this is a new test")
_IEFormSubmit ($oForm1)
_IELoadWait ($oIE2)
_IELoadWait ($oIE3)

And here is the output after running tools-->beta run

>"C:\Archivos de programa\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\Pablo\Escritorio\test9.au3" /autoit3dir "C:\Archivos de programa\AutoIt3\beta" /UserParams    
+>18:59:19 Starting AutoIt3Wrapper v.2.0.0.1    Environment(Language:0C0A  Keyboard:0000040A  OS:WIN_XP/Service Pack 3  CPU:X86 OS:X86)
>Running AU3Check (1.54.15.0)  from:C:\Archivos de programa\AutoIt3\beta
+>18:59:19 AU3Check ended.rc:0
>Running:(3.3.1.0):C:\Archivos de programa\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Pablo\Escritorio\test9.au3"  
--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Warning from function _IEFormGetCollection, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormSubmit, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IELoadWait, $_IEStatus_InvalidDataType
+>18:59:38 AutoIT3.exe ended.rc:0
+>18:59:39 AutoIt3Wrapper Finished
>Exit code: 0   Time: 22.054

Mmm it is still giving me errors (what do $_IEStatus_NoMatch and $_IEStatus_InvalidDataType mean?) but I thought using the index numbers of the elements was 'infallible' :D Any ideas? Thanks again for your feedback :D

Edit2: I have tested this code also but it still doesn't post. Here is the code:

#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/newthread.php?do=newthread&f=12")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery2, "password")
_IEFormSubmit ($oForm)
_IELoadWait ($oIE)
$oIE2 = _IEAttach ("http://forums.linkbucks.com/login.php?do=login")
$oIE3 = _IEAttach ("Post New Thread", "text")
$oDiv1 = _IEGetObjByName ($oIE3, "subject")
$oDiv2 = _IEGetObjByName ($oIE3, "message")
$oForm1 = _IEFormGetCollection ($oIE, 173)
$oDiv1.value="This is a test"
$oDiv2.value="This is a new test this is a new test"
_IEFormSubmit ($oForm1)
_IELoadWait ($oIE2)
_IELoadWait ($oIE3)

And here is the info from tools--->beta run:

>"C:\Archivos de programa\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\Pablo\Escritorio\test10.au3" /autoit3dir "C:\Archivos de programa\AutoIt3\beta" /UserParams   
+>19:16:37 Starting AutoIt3Wrapper v.2.0.0.1    Environment(Language:0C0A  Keyboard:0000040A  OS:WIN_XP/Service Pack 3  CPU:X86 OS:X86)
>Running AU3Check (1.54.15.0)  from:C:\Archivos de programa\AutoIt3\beta
+>19:16:37 AU3Check ended.rc:0
>Running:(3.3.1.0):C:\Archivos de programa\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Pablo\Escritorio\test10.au3" 
--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Warning from function _IEAttach, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Warning from function _IEFormGetCollection, $_IEStatus_NoMatch
C:\Documents and Settings\Pablo\Escritorio\test10.au3 (15) : ==> Variable must be of type "Object".:
$oDiv1.value="This is a test"
$oDiv1^ ERROR
->19:17:00 AutoIT3.exe ended.rc:1
+>19:17:01 AutoIt3Wrapper Finished
>Exit code: 1   Time: 25.471
Edited by Mithrandir

Share this post


Link to post
Share on other sites

what do $_IEStatus_NoMatch and $_IEStatus_InvalidDataType mean?

You really have no guesses?

It tells you what function failed and those are the reasons. The first 2 NoMatch tell you that your $oIE2 and $oIE3 did not attach... the messages are quite precise... think about them, you'll figure it out.

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Ok I have been recoding it:

#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/newthread.php?do=newthread&f=12")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery2, "password")
_IEFormSubmit ($oForm)
$oIE7 = _IEFormSubmit ($oForm)
_IELoadWait ($oIE7)
$oIE2 = _IEAttach ("linkbucks")
$oForm1 = _IEFormGetCollection ($oIE2, 173)
$oQuery3 = _IEFormElementGetCollection ($oForm1, 0)
$oQuery4 = _IEFormElementGetCollection ($oForm1, 1)
_IEFormElementSetValue ($oQuery3, "my test")
_IEFormElementSetValue ($oQuery4, "this is my new test")
_IEFormSubmit ($oForm1)
_IELoadWait ($oIE2)

And now I'm getting these errors:

>"C:\Archivos de programa\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\Pablo\Escritorio\test11.au3" /autoit3dir "C:\Archivos de programa\AutoIt3\beta" /UserParams   
+>03:02:09 Starting AutoIt3Wrapper v.2.0.0.1    Environment(Language:0C0A  Keyboard:0000040A  OS:WIN_XP/Service Pack 3  CPU:X86 OS:X86)
>Running AU3Check (1.54.15.0)  from:C:\Archivos de programa\AutoIt3\beta
+>03:02:10 AU3Check ended.rc:0
>Running:(3.3.1.0):C:\Archivos de programa\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Pablo\Escritorio\test11.au3" 
--> IE.au3 V2.4-0 Error from function _IEFormSubmit, $_IEStatus_InvalidObjectType
--> IE.au3 V2.4-0 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Warning from function _IEFormGetCollection, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetCollection, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormSubmit, $_IEStatus_InvalidDataType
+>03:02:18 AutoIT3.exe ended.rc:0
+>03:02:19 AutoIt3Wrapper Finished
>Exit code: 0   Time: 10.854

What I see is that after login in the script finishes and it doesn't wait for $oIE7 to finish (the submit) even though i put a _IELoadWait right after it. Now I don't get an error with _IEAttach but I don't understand what does _IEFormSubmit, $_IEStatus_InvalidObjectType means...

EDIT: Finnally I got this script to work:

#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/newthread.php?do=newthread&f=12")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery2, "password")
_IEFormSubmit ($oForm)
Sleep(10000)
$oForm1 = _IEFormGetObjByName ($oIE, "vbform")
$oQuery3 = _IEFormElementGetObjByName ($oForm1, "subject")
$oQuery4 = _IEFormElementGetObjByName ($oForm1, "message")
_IEFormElementSetValue ($oQuery3, "my test")
_IEFormElementSetValue ($oQuery4, "this is my new test")
_IEFormSubmit ($oForm1)

But the thing is that I don't want to use Sleep but _IELoadwait and I don't know what is wrong with how I implemented it:

#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/newthread.php?do=newthread&f=12")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery2, "password")
_IEFormSubmit ($oForm)
$oIE2 = _IEFormSubmit ($oForm)
_IELoadWait ($oIE2)
$oForm1 = _IEFormGetObjByName ($oIE, "vbform")
$oQuery3 = _IEFormElementGetObjByName ($oForm1, "subject")
$oQuery4 = _IEFormElementGetObjByName ($oForm1, "message")
_IEFormElementSetValue ($oQuery3, "my newbie test")
_IEFormElementSetValue ($oQuery4, "this is my new test")
_IEFormSubmit ($oForm1)

here are the errors:

>"C:\Archivos de programa\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /beta /ErrorStdOut /in "C:\Documents and Settings\Pablo\Escritorio\test14.au3" /autoit3dir "C:\Archivos de programa\AutoIt3\beta" /UserParams   
+>03:40:05 Starting AutoIt3Wrapper v.2.0.0.1    Environment(Language:0C0A  Keyboard:0000040A  OS:WIN_XP/Service Pack 3  CPU:X86 OS:X86)
>Running AU3Check (1.54.15.0)  from:C:\Archivos de programa\AutoIt3\beta
+>03:40:06 AU3Check ended.rc:0
>Running:(3.3.1.0):C:\Archivos de programa\AutoIt3\beta\autoit3.exe "C:\Documents and Settings\Pablo\Escritorio\test14.au3" 
--> IE.au3 V2.4-0 Error from function _IEFormSubmit, $_IEStatus_InvalidObjectType
--> IE.au3 V2.4-0 Error from function _IELoadWait, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Warning from function _IEFormGetObjByName, $_IEStatus_NoMatch
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementGetObjByName, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormElementSetValue, $_IEStatus_InvalidDataType
--> IE.au3 V2.4-0 Error from function _IEFormSubmit, $_IEStatus_InvalidDataType
+>03:40:14 AutoIT3.exe ended.rc:0
+>03:40:15 AutoIt3Wrapper Finished
>Exit code: 0   Time: 10.507
Edited by Mithrandir

Share this post


Link to post
Share on other sites

First, I suggest you try out SciTe debug mode (see my sig) so that you can see where the errors and warnings are comming from. Second, look at the errors and warnings very carefully while you read the documentation for the function that generates them. Look at what each function has for a Return Value (hint, _IEFormSubmit does NOT return an InternetEcplorer ovject, this the InvalidDataType error in the function that follows).

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

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

First, I suggest you try out SciTe debug mode (see my sig) so that you can see where the errors and warnings are comming from. Second, look at the errors and warnings very carefully while you read the documentation for the function that generates them. Look at what each function has for a Return Value (hint, _IEFormSubmit does NOT return an InternetEcplorer ovject, this the InvalidDataType error in the function that follows).

Dale

Ok, I have figured out a workaround to the problem. I think the problems with _IEAttach were caused by the redirection after the login (although I put an _IEAttach to the page of the redirection and to the page where I wanted to post and then I used _IELoadWait like this:

#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/newthread.php?do=newthread&f=12")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery2, "password")
$oIE2 = _IEAttach ("http://forums.linkbucks.com/login.php", "url")
$oIE3 = _IEAttach ("http://forums.linkbucks.com/newthread.php?do=newthread&f=12", "url")
_IEFormSubmit ($oForm)
_IELoadWait ($oIE2)
_IELoadWait ($oIE3)
$oForm1 = _IEFormGetObjByName ($oIE, "vbform")
$oQuery3 = _IEFormElementGetObjByName ($oForm1, "subject")
$oQuery4 = _IEFormElementGetObjByName ($oForm1, "message")
_IEFormElementSetValue ($oQuery3, "my test")
_IEFormElementSetValue ($oQuery4, "this is my new test")
_IEFormSubmit ($oForm1)

But it still didn't function. So I made this instead:

#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery2, "password")
_IEFormSubmit ($oForm)
_IENavigate ($oIE, "http://forums.linkbucks.com/newthread.php?do=newthread&f=12");_IENavigate calls the function _IELoadWait by default :D
$oForm1 = _IEFormGetObjByName ($oIE, "vbform")
$oQuery3 = _IEFormElementGetObjByName ($oForm1, "subject")
$oQuery4 = _IEFormElementGetObjByName ($oForm1, "message")
_IEFormElementSetValue ($oQuery3, "my test 10")
_IEFormElementSetValue ($oQuery4, "this is my new test 10")
_IEFormSubmit ($oForm1);Success!!
_IELinkClickByText ($oIE, "Log Out");Ok it clicked the link...
$oIE2 = _IEAttach ("Windows Internet Explorer", "embedded");From now on it doesn't function although the console doesn't report any errors
_IEAction ($oIE2, "focus")
ControlSend("Windows Internet Explorer", "Aceptar", 1, "{ENTER}")

I have suceeded in posting but now I want to logout, I saw in the autoitwindow that it is a link and the window that appears afterwards asking whether I want to logout does not contain a control called "Internet Explorer_Server" so as it is suggested in the help file I used the normal windows functions:

[code]#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery2, "password")
_IEFormSubmit ($oForm)
Sleep(10000)
_IELinkClickByText ($oIE, "Log Out")
WinWaitActive("Windows Internet Explorer", "", 5)
Send("{ENTER}")
; From the line of WinWaitActive I also tried using _IEAction ($oIE2, "focus")
;and ControlClick("Windows Internet Explorer", "Aceptar", "1")

But After _IELinkClickByText the window remain active (it is set active by default but just in case i put winwaitactive) but it doesn't send ENTER or in the othe version in which i use ControlClick It doesn't click in "Aceptar". Neither with Send or ControlClick the console showed me errors, the script simply lays there waiting...Any idea of what's wrong?Cause I haven't been able to figure it out. Thank you a lot for your help, I am very happy of what I am learning :D

Edited by Mithrandir

Share this post


Link to post
Share on other sites

I'll guess (because there is not enough info to do anything else) that there is a problem with $oIE2 = _IEAttach

do some things to insure you do attach properly and to the window you expected. I also question whether you really need the embedded...

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

Share this post


Link to post
Share on other sites

I tried this:

#include <IE.au3>
$oIE = _IECreate ("http://forums.linkbucks.com/")
$oForm = _IEFormGetCollection ($oIE, 0)
$oQuery = _IEFormElementGetCollection ($oForm, 0)
$oQuery2 = _IEFormElementGetCollection ($oForm, 2)
_IEFormElementSetValue ($oQuery, "username")
_IEFormElementSetValue ($oQuery2, "password")
_IEFormSubmit ($oForm)
Sleep(10000)
_IELinkClickByText ($oIE, "Log Out")
$oIE2 = _IEAttach ("Windows Internet Explorer", "dialogbox")
_IEAction ($oIE2, "focus")
ControlSend("Windows Internet Explorer", "Aceptar", 1, "{ENTER}")

And these are the errors:

>"C:\Archivos de programa\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "C:\Documents and Settings\Pablo\Escritorio\TEST PARA DESLOGUEARME 2.au3" /autoit3dir "C:\Archivos de programa\AutoIt3" /UserParams  
+>13:16:09 Starting AutoIt3Wrapper v.2.0.0.1    Environment(Language:0C0A  Keyboard:0000040A  OS:WIN_XP/Service Pack 3  CPU:X86 OS:X86)
>Running AU3Check (1.54.14.0)  from:C:\Archivos de programa\AutoIt3
+>13:16:09 AU3Check ended.rc:0
>Running:(3.3.0.0):C:\Archivos de programa\AutoIt3\autoit3.exe "C:\Documents and Settings\Pablo\Escritorio\TEST PARA DESLOGUEARME 2.au3"    
--> IE.au3 V2.4-0 Error from function _IEAction, $_IEStatus_InvalidObjectType
+>13:17:04 AutoIT3.exe ended.rc:0
+>13:17:05 AutoIt3Wrapper Finished
>Exit code: 0   Time: 57.401

Any ideas?

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
Sign in to follow this  
Followers 0