Sign in to follow this  
Followers 0
Sercankd

ElementSetValue textarea problem

20 posts in this topic

i was trying to make program for create topics on my webpage but there is problem with filling Textareas

Everything done at Subject and Submit button but Textarea always empty

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>
Opt("TrayMenuMode", 1)
TraySetIcon("Shell32.dll", 13)
HotKeySet("{END}", "Kapat")
Func Kapat()
    Exit 0;
EndFunc   ;==>Kapat

Global $oIE
Global $subject
Global $message

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
GUICreate("IE", 640, 580, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 620, 500)
$Message = GUICtrlCreateInput("", 10, 10, 620, 21, -1, $WS_EX_CLIENTEDGE)


GUISetState()       ;Show GUI

_IENavigate ($oIE, "http://127.0.0.1/mybb/newthread.php?fid=2")

$subject = "Hello"
$message = "Hello this is test message"
    While 1 = 1
            $oForm = _IEFormGetCollection($oIE, "input")
            $Usr1 = _IEFormElementGetObjByName($oForm, "subject")
            _IEFormElementSetValue($Usr1, $subject)
            $Usr2 = _IEFormElementGetObjByName($oForm, "message")
            _IEFormElementSetValue($Usr2, GUICtrlRead($Message))
            $Btn = _IEGetObjByName($oForm, "submit")
            _IEAction($Btn, "click")
            Sleep(2000)
            _IENavigate ($oIE, "http://127.0.0.1/mybb/newthread.php?fid=2")
        WEnd

this

Share this post


Link to post
Share on other sites



Use something like :

$textarea= _IETagNameGetCollection ($oIE, "textarea")
$textarea.Value="whatever you want"

This will work if you have only one textarea. If you have more then you will need to specify which one to fill.

Something like:

$textarea= _IETagNameGetCollection ($oIE, "textarea")
for $element in $textarea
if $element.name="Some textarea" then
    $element.Value="whatever you want"
EndIf
next

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Juvigy same empty textarea

and html codes for textarea here

<textarea name="message" id="message" rows="20" cols="70" tabindex="2"></textarea>

Edited by Sercankd

Share this post


Link to post
Share on other sites

Hi,

have you proofed if GUICtrlRead($Message) returns something.

Just a msgbox (0,"",GUICtrlRead($Message)) before your

_IEFormElementSetValue($Usr2, GUICtrlRead($Message))

;-))

Stefan

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

actually i tried everything GUICtrlRead thing too

this is latest version of my codes

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <IE.au3>
#include <Date.au3>
Opt("TrayMenuMode", 1)
Opt("GUIOnEventMode", 1) ; ON
TraySetIcon("Shell32.dll", 13)
HotKeySet("{END}", "Kapat")
Func Kapat()
    Exit 0;
EndFunc   ;==>Kapat

Global $oIE
Global $subject
Global $message

_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
GUICreate("Gui", 1024, 768, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 1000, 750)
$GUI_Button_Home = GUICtrlCreateButton("Bekleniyor", 10, 10, 100, 20)


Func _countDown($Countdown)
    $seconds = _DateAdd('s', $Countdown / 1000, _NowCalc())
    Do
        Sleep(100)
        $sec = _DateDiff('s', _NowCalc(), $seconds)
        $string = StringFormat("%.02d" & ":" & "%.02d" & ":" & "%.02d", _
        Mod($sec / 3600, 24), Mod(($sec / 60), 60), Mod($sec, 60))
        GUICtrlSetData($GUI_Button_Home, "(" & $string & ")")
    Until $sec = 0
EndFunc


GUISetState()       ;Show GUI
$kategori = Random(2,2,1)
           _IENavigate ($oIE, "http://127.0.0.1/mybb/newthread.php?fid=2")
    _IEErrorHandlerRegister ()
$subject = "Hello (" & Random(100000, 999999, 1) & ")"
$message = "Hello"
    While 1 = 1
            $oForm = _IEFormGetCollection($oIE, "input")

            $Usr1 = _IEFormElementGetObjByName($oForm, "subject")
            _IEFormElementSetValue($Usr1, $subject)

            $textarea= _IETagNameGetCollection ($oForm, "textarea")

            for $element in $textarea
            if $element.name="message" then
            $element.Value="whatever you want"
            EndIf
            next
            $Btn = _IEGetObjByName($oForm, "submit")
            _IEAction($Btn, "click")
            _countDown(60000)
            Sleep(60000)
            _IENavigate ($oIE, "http://127.0.0.1/mybb/newthread.php?fid=2")
            _IELoadWait ($oIE)
        WEnd
Edited by Sercankd

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

Try this

$textarea= _IETagNameGetCollection ($oIE, "textarea")
for $element in $textarea
if $element.id="message" then
    $element.Value="whatever you want"
EndIf
next

PS. And use _IETagNameGetCollection ($oIE, "textarea") and not _IETagNameGetCollection ($oForm, "textarea")

Edited by Juvigy

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

Still same :D

Posted Image

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <IE.au3>
#include <Date.au3>
Opt("TrayMenuMode", 1)
Opt("GUIOnEventMode", 1) ; ON
TraySetIcon("Shell32.dll", 13)
HotKeySet("{END}", "Kapat")
Func Kapat()
    Exit 0;
EndFunc   ;==>Kapat

Global $oIE
Global $subject
Global $message
$i = 60
_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
GUICreate("Gui", 1024, 768, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 1000, 750)
$GUI_Button_Home = GUICtrlCreateButton("Bekleniyor", 10, 10, 100, 20)


Func _countDown($Countdown)
    $seconds = _DateAdd('s', $Countdown / 1000, _NowCalc())
    Do
        Sleep(100)
        $sec = _DateDiff('s', _NowCalc(), $seconds)
        $string = StringFormat("%.02d" & ":" & "%.02d" & ":" & "%.02d", _
        Mod($sec / 3600, 24), Mod(($sec / 60), 60), Mod($sec, 60))
        GUICtrlSetData($GUI_Button_Home, "(" & $string & ")")
    Until $sec = 0
EndFunc


GUISetState()       ;Show GUI
$kategori = Random(2,2,1)
           _IENavigate ($oIE, "http://127.0.0.1/mybb/newthread.php?fid=2")
    _IEErrorHandlerRegister ()
$subject = "Hello (" & Random(100000, 999999, 1) & ")"
$message = "Hello"
    While 1 = 1
            $oForm = _IEFormGetObjByName($oIE, "input")

            $Usr1 = _IEFormElementGetObjByName($oForm, "subject")
            _IEFormElementSetValue($Usr1, $subject)

            $textarea= _IETagNameGetCollection ($oForm, "textarea")

        $textarea= _IETagNameGetCollection ($oIE, "textarea")
        for $element in $textarea
        if $element.id="message" then
        $element.Value="whatever you want"
        EndIf
        next
            $Btn = _IEGetObjByName($oForm, "submit")
            _IEAction($Btn, "click")
            _countDown(60000)
            Sleep(60000)
            _IENavigate ($oIE, "http://127.0.0.1/mybb/newthread.php?fid=2")
            _IELoadWait ($oIE)
        WEnd
Edited by Sercankd

Share this post


Link to post
Share on other sites

Try my code for test purposes without the GUY and other stuff.

Just _IEcreate and my code.

Share this post


Link to post
Share on other sites

still same

Share this post


Link to post
Share on other sites

That code works for me.Could you post the sourcecode of the page?

Share this post


Link to post
Share on other sites

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- start: newthread -->
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>New Thread in My Forum</title>
<!-- start: headerinclude -->
<link rel="alternate" type="application/rss+xml" title="Latest Threads (RSS 2.0)" href="http://127.0.0.1/mybb/syndication.php" />
<link rel="alternate" type="application/atom+xml" title="Latest Threads (Atom 1.0)" href="http://127.0.0.1/mybb/syndication.php?type=atom1.0" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />
<script type="text/javascript" src="http://127.0.0.1/mybb/jscripts/prototype.js?ver=1400"></script>
<script type="text/javascript" src="http://127.0.0.1/mybb/jscripts/general.js?ver=1400"></script>
<script type="text/javascript" src="http://127.0.0.1/mybb/jscripts/popup_menu.js?ver=1400"></script>
<link type="text/css" rel="stylesheet" href="http://127.0.0.1/mybb/cache/themes/theme3/global.css" />

<script type="text/javascript">
<!--
    var cookieDomain = ".127.0.0.1";
    var cookiePath = "/mybb/";
    var cookiePrefix = "";
    var deleteevent_confirm = "Are you sure you want to delete this event?";
    var removeattach_confirm = "Are you sure you want to remove the selected attachment from this post?";
    var loading_text = 'Loading. <br />Please Wait..';
    var saving_changes = 'Saving changes..';
    var use_xmlhttprequest = "1";
    var my_post_key = "e6ebb5416e868ae2b24a0b972bc7de07";
    var imagepath = "images/sky";
// -->
</script>

<!-- end: headerinclude -->
<script type="text/javascript" src="jscripts/post.js?ver=1400"></script>
</head>
<body>
<!-- start: header -->
<div id="container">
        <a name="top" id="top"></a> 
        <div id="header">
            <div class="logo"><a href="http://127.0.0.1/mybb/index.php"><img src="http://127.0.0.1/mybb/images/sky/logo.png" alt="Forums" title="Forums" /></a></div>
            <!-- start: header_welcomeblock_member -->

<div class="upper_panel">
    <span class="float_right"><a href="http://127.0.0.1/mybb/search.php" class="search">Search</a><a href="http://127.0.0.1/mybb/memberlist.php" class="memberlist">Member List</a><a href="http://127.0.0.1/mybb/calendar.php" class="calendar">Calendar</a><a href="http://127.0.0.1/mybb/misc.php?action=help" class="help">Help</a></span>
    <span><strong>Welcome back, Sercankd</strong>. You last visited: Today, 12:24 PM <a href="http://127.0.0.1/mybb/member.php?action=logout&amp;logoutkey=5dec3ccaf3fd73a7b36678b9a304ba73" class="logout">Log Out</a></span>
</div>
<div class="lower_panel">
    <span class="float_right"><a href="#" onclick="MyBB.popupWindow('http://127.0.0.1/mybb/misc.php?action=buddypopup', 'buddyList', 350, 350);">Open Buddy List</a><a href="http://127.0.0.1/mybb/search.php?action=getnew">View New Posts</a><a href="http://127.0.0.1/mybb/search.php?action=getdaily">View Today's Posts</a><a href="http://127.0.0.1/mybb/private.php" style="margin-right: 0;">Private Messages</a> (Unread 0, Total 0)</span>

    <span><a href="http://127.0.0.1/mybb/usercp.php" class="usercp">User CP</a><!-- start: header_welcomeblock_member_moderator -->
<a href="http://127.0.0.1/mybb/modcp.php" class="modcp">Mod CP</a>
<!-- end: header_welcomeblock_member_moderator --><!-- start: header_welcomeblock_member_admin -->
<a href="http://127.0.0.1/mybb/admin/index.php" class="admincp">Admin CP</a>
<!-- end: header_welcomeblock_member_admin --></span>
</div>
<!-- end: header_welcomeblock_member -->
        </div>
        <div id="content">
            
            
            
            
            <!-- start: nav -->

<div class="navigation">
<!-- start: nav_bit -->
<a href="http://127.0.0.1/mybb/index.php">Forums</a><!-- start: nav_sep -->
&raquo;
<!-- end: nav_sep -->
<!-- end: nav_bit --><!-- start: nav_bit -->
<a href="forumdisplay.php?fid=1">My Category</a><!-- start: nav_sep -->
&raquo;
<!-- end: nav_sep -->
<!-- end: nav_bit --><!-- start: nav_bit -->
<a href="forumdisplay.php?fid=2">My Forum</a>
<!-- end: nav_bit --><!-- start: nav_sep_active -->
<br /><img src="images/sky/nav_bit.gif" alt="" />

<!-- end: nav_sep_active --><!-- start: nav_bit_active -->
<span class="active">New Thread</span>
<!-- end: nav_bit_active -->
</div>
<!-- end: nav -->
            <br />
<!-- end: header -->



<form action="newthread.php?fid=2&amp;processed=1" method="post" enctype="multipart/form-data" name="input">
<input type="hidden" name="my_post_key" value="e6ebb5416e868ae2b24a0b972bc7de07" />
<table border="0" cellspacing="1" cellpadding="6" class="tborder">
<tr>
<td class="thead" colspan="2"><strong>Post a new Thread</strong></td>

</tr>
<!-- start: changeuserbox -->
<tr>
<td class="trow1" width="20%"><strong>Username:</strong></td>
<td class="trow1">Sercankd <span class="smalltext">[<strong><a href="member.php?action=logout&amp;logoutkey=5dec3ccaf3fd73a7b36678b9a304ba73">change user</a></strong>]</span></td>
</tr>

<!-- end: changeuserbox -->
<tr>
<td class="trow2" width="20%"><strong>Thread Subject</strong></td>
<td class="trow2"><input type="text" class="textbox" name="subject"  size="40" maxlength="85" value="" tabindex="1" /></td>

</tr>
<!-- start: posticons -->
<tr>
<td class="trow1" style="vertical-align: top"><strong>Post Icon:</strong><br /><span class="smalltext"><input type="radio" class="radio" name="icon" value="-1" checked="checked" />no icon</span></td>
<td class="trow1" valign="top"><label><input type="radio" name="icon" value="6" /> <img src="images/icons/wink.gif" alt="Wink" /></label><label><input type="radio" name="icon" value="20" /> <img src="images/icons/video.gif" alt="Video" /></label><label><input type="radio" name="icon" value="8" /> <img src="images/icons/tongue.gif" alt="Tongue" /></label><label><input type="radio" name="icon" value="19" /> <img src="images/icons/thumbsup.gif" alt="Thumbs Up" /></label><label><input type="radio" name="icon" value="18" /> <img src="images/icons/thumbsdown.gif" alt="Thumbs Down" /></label><label><input type="radio" name="icon" value="17" /> <img src="images/icons/star.gif" alt="Star" /></label><label><input type="radio" name="icon" value="4" /> <img src="images/icons/smile.gif" alt="Smile" /></label><label><input type="radio" name="icon" value="16" /> <img src="images/icons/shocked.gif" alt="Shocked" /></label><label><input type="radio" name="icon" value="5" /> <img src="images/icons/sad.gif" alt="Sad" /></label><label><input type="radio" name="icon" value="15" /> <img src="images/icons/rainbow.gif" alt="Rainbow" /></label><br /><label><input type="radio" name="icon" value="3" /> <img src="images/icons/question.gif" alt="Question" /></label><label><input type="radio" name="icon" value="14" /> <img src="images/icons/photo.gif" alt="Photo" /></label><label><input type="radio" name="icon" value="13" /> <img src="images/icons/music.gif" alt="Music" /></label><label><input type="radio" name="icon" value="12" /> <img src="images/icons/lightbulb.gif" alt="Lightbulb" /></label><label><input type="radio" name="icon" value="11" /> <img src="images/icons/information.gif" alt="Information" /></label><label><input type="radio" name="icon" value="10" /> <img src="images/icons/heart.gif" alt="Heart" /></label><label><input type="radio" name="icon" value="2" /> <img src="images/icons/exclamation.gif" alt="Exclamation" /></label><label><input type="radio" name="icon" value="1" /> <img src="images/icons/bug.gif" alt="Bug" /></label><label><input type="radio" name="icon" value="9" /> <img src="images/icons/brick.gif" alt="Brick" /></label><label><input type="radio" name="icon" value="7" /> <img src="images/icons/biggrin.gif" alt="Big Grin" /></label><br /></td>

</tr>

<!-- end: posticons -->
<tr>
<td class="trow2" valign="top"><strong>Your Message:</strong><!-- start: smilieinsert -->

<div style="margin:auto; width: 170px; margin-top: 20px;">
<table border="0" cellspacing="1" cellpadding="6" class="tborder" width="150">
<tr>
<td class="thead"><span class="smalltext"><strong>Smilies</strong></span></td>
</tr>
<tr>
<td class="trow1">
<table width="100%" align="center" border="0" cellspacing="0" cellpadding="2" id="clickable_smilies">
<tr>

<td style="text-align: center"><img src="images/smilies/angel.gif" border="0" class="smilie" alt=":angel:" /></td>
<td style="text-align: center"><img src="images/smilies/angry.gif" border="0" class="smilie" alt=":@" /></td>
<td style="text-align: center"><img src="images/smilies/blush.gif" border="0" class="smilie" alt=":blush:" /></td>
<td style="text-align: center"><img src="images/smilies/confused.gif" border="0" class="smilie" alt=":s" /></td>
</tr>
<tr>
<td style="text-align: center"><img src="images/smilies/dodgy.gif" border="0" class="smilie" alt=":dodgy:" /></td>
<td style="text-align: center"><img src="images/smilies/exclamation.gif" border="0" class="smilie" alt=":exclamation:" /></td>
<td style="text-align: center"><img src="images/smilies/heart.gif" border="0" class="smilie" alt=":heart:" /></td>
<td style="text-align: center"><img src="images/smilies/huh.gif" border="0" class="smilie" alt=":huh:" /></td>
</tr>
<tr>
<td style="text-align: center"><img src="images/smilies/lightbulb.gif" border="0" class="smilie" alt=":idea:" /></td>
<td style="text-align: center"><img src="images/smilies/sleepy.gif" border="0" class="smilie" alt=":sleepy:" /></td>
<td style="text-align: center"><img src="images/smilies/undecided.gif" border="0" class="smilie" alt=":-/" /></td>
<td style="text-align: center"><img src="images/smilies/smile.gif" border="0" class="smilie" alt=":)" /></td>
</tr>

<tr>
<td style="text-align: center"><img src="images/smilies/wink.gif" border="0" class="smilie" alt=";)" /></td>
<td style="text-align: center"><img src="images/smilies/cool.gif" border="0" class="smilie" alt=":cool:" /></td>
<td style="text-align: center"><img src="images/smilies/biggrin.gif" border="0" class="smilie" alt=":D" /></td>
<td style="text-align: center"><img src="images/smilies/tongue.gif" border="0" class="smilie" alt=":P" /></td>
</tr>
<tr>
<td style="text-align: center"><img src="images/smilies/rolleyes.gif" border="0" class="smilie" alt=":rolleyes:" /></td>
<td style="text-align: center"><img src="images/smilies/shy.gif" border="0" class="smilie" alt=":shy:" /></td>
<td style="text-align: center"><img src="images/smilies/sad.gif" border="0" class="smilie" alt=":(" /></td>
<td colspan="1">&nbsp;</td>
</tr>

</table>
</td>
</tr>

</table>
</div>

<!-- end: smilieinsert --></td>
<td class="trow2">
<textarea name="message" id="message" rows="20" cols="70" tabindex="2"></textarea>
<!-- start: codebuttons -->
<script type="text/javascript" src="jscripts/editor.js?ver=1400"></script>
<script type="text/javascript">
<!--
    var editor_language = {
    title_bold: "Insert bold text",
    title_italic: "Insert italic text",
    title_underline: "Insert underlined text",
    title_left: "Align text to the left",
    title_center: "Align text to the center",
    title_right: "Align text to the right",
    title_justify: "Justify text",
    title_numlist: "Insert numbered list",
    title_bulletlist: "Insert bulleted list",
    title_image: "Insert image",
    title_hyperlink: "Insert hyperlink",
    title_email: "Insert email address",
    title_quote: "Insert quoted text",
    title_code: "Insert formatted code",
    title_php: "Insert formatted PHP code",
    title_close_tags: "Close any open MyCode tags that you currently have open",
    enter_list_item: "Enter a list item. Click cancel or leave blank to end the list.",
    enter_url: "Please enter the URL of the website.",
    enter_url_title: "Optionally, you can also enter a title for the URL.",
    enter_email: "Please enter the email address you wish to insert.",
    enter_email_title: "Optionally, you may also enter a title for the email address.",
    enter_image: "Please enter the remote URL of the image you wish to insert.",
    size_xx_small: "XX Small",
    size_x_small: "X Small",
    size_small: "Small",
    size_medium: "Medium",
    size_large: "Large",
    size_x_large: "X Large",
    size_xx_large: "XX Large",
    font: "Font",
    size: "Text Size",
    color: "Text Color"
};
    var clickableEditor = new messageEditor("message", {lang: editor_language, rtl: 0, theme: "default"});
    if(clickableEditor)
    {
        clickableEditor.bindSmilieInserter("clickable_smilies");
    }
// -->
</script>
<!-- end: codebuttons -->

</td>
</tr>
<tr>

<td class="trow1" valign="top"><strong>Post Options:</strong></td>
<td class="trow1"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="postoptions[signature]" value="1" tabindex="7" /> <b>Signature:</b> include your signature. (registered users only)</label>
<!-- start: newthread_disablesmilies -->
<br />
<label><input type="checkbox" class="checkbox" name="postoptions[disablesmilies]" value="1" tabindex="9" /> <b>Disable Smilies:</b> disable smilies from showing in this post.</label>
<!-- end: newthread_disablesmilies --></span></td>
</tr>

<!-- start: newreply_modoptions -->
<tr>
<td class="trow2" valign="top"><strong>Moderator Options:</strong></td>
<td class="trow2"><span class="smalltext">
<label><input type="checkbox" class="checkbox" name="modoptions[closethread]" value="1" />&nbsp;<b>Close Thread</b>: prevent further posting in this thread.</label><br />
<label><input type="checkbox" class="checkbox" name="modoptions[stickthread]" value="1" />&nbsp;<b>Stick Thread:</b> stick this thread to the top of the forum.</label>
</span></td>
</tr>
<!-- end: newreply_modoptions -->
<!-- start: post_subscription_method -->
<tr>

<td class="trow1" valign="top"><strong>Thread Subscription:</strong><br /><span class="smalltext">Specify the type of email notification and thread subscription you'd like to have to this thread. (Registered users only)</span></td>
<td class="trow1 smalltext">
    <label><input type="radio" name="postoptions[subscriptionmethod]" checked="checked" value="" style="vertical-align: middle;" /> Do not subscribe to this thread</label><br />
    <label><input type="radio" name="postoptions[subscriptionmethod]"  value="none" style="vertical-align: middle;" /> Subscribe without receiving email notification of new replies</label><br />
    <label><input type="radio" name="postoptions[subscriptionmethod]"  value="instant" style="vertical-align: middle;" /> Subscribe and receive email notification of new replies</label><br />
</td>

</tr>
<!-- end: post_subscription_method -->
<!-- start: newthread_postpoll -->
<tr>
<td class="trow2" valign="top">
<strong>Poll:</strong><br /><span class="smalltext">Optionally you may attach a poll to this thread.</span>
</td>
<td class="trow2" valign="top">
<span class="smalltext"><label><input type="checkbox" class="checkbox" name="postpoll" value="1"  /><strong>I want to post a poll</strong></label><br />
Number of options: <input type="text" class="textbox" name="numpolloptions" value="2" size="10" /> (Maximum: 10)</span>
</td>

</tr>
<!-- end: newthread_postpoll -->

</table>
<!-- start: post_attachments -->
<br />
            <table border="0" cellspacing="1" cellpadding="6" class="tborder">
<tr>
    <td class="thead" colspan="3"><strong>Attachments</strong></td>
</tr>
<tr>
    <td class="tcat smalltext" colspan="3">You are currently using <strong>N/A</strong> of your allocated attachment usage (Unlimited) <a href="usercp.php?action=attachments">[View My Attachments]</a></td>

</tr>
<!-- start: post_attachments_new -->
<tr>
<td class="trow1" width="1"><img src="images/sky/paperclip.gif" alt="" /></td>
<td class="trow1" style="white-space: nowrap"><strong>New Attachment:</strong> <input type="file" name="attachment" size="30" class="fileupload" /></td><td class="trow1" align="center"><input type="submit" class="button" name="newattachment" value="Add Attachment"  tabindex="12" />
</td>
</tr>
<!-- end: post_attachments_new -->

</table>
<!-- end: post_attachments -->
<br />
<div style="text-align:center"><input type="submit" class="button" name="submit" value="Post Thread" tabindex="4" accesskey="s" />  <input type="submit" class="button" name="previewpost" value="Preview Post" tabindex="5" />&nbsp;<input type="submit" class="button" name="savedraft" value="Save as Draft" /></div>
<input type="hidden" name="action" value="do_newthread" />

<input type="hidden" name="posthash" value="7799129c22b7e5c2fed64dcc9c131fdc" />
<input type="hidden" name="attachmentaid" value="" />
<input type="hidden" name="attachmentact" value="" />
<input type="hidden" name="quoted_ids" value="" />
<input type="hidden" name="tid" value="" />

</form>

<!-- start: footer -->
<div style="overflow:hidden;">
        <div id="debug">Generated in 0.0384469 seconds (74.02% PHP / 25.98% MySQL)<br />SQL Queries: 10 /  Global Parsing Time: 0.0280030 / Memory Usage: 3.25 MB<br />PHP version: 5.2.8 / Server Load: Unknown / GZip Compression: Disabled<br />[<a href="/mybb/newthread.php?fid=2&amp;debug=1" target="_blank">advanced details</a>]<br /></div>

    </div>
    </div>
            <div class="bottommenu">
                <div class="float_right" style="margin-top: -4px;"><!-- start: footer_languageselect -->
<form method="get" action="/mybb/newthread.php" id="lang_select">
        <input type="hidden" name="fid" value="2" />

        <select name="language" onchange="MyBB.changeLanguage();">
            <optgroup label="Quick Language Select">
                <option value="english" selected="selected">&nbsp;&nbsp;&nbsp;English (American)</option>

            </optgroup>
        </select>
        <!-- start: gobutton -->
<input type="submit" class="button" value="Go" />
<!-- end: gobutton -->
    </form>
<!-- end: footer_languageselect --></div>
                <div>
                    <span class="smalltext"><a href="mailto:admin@localhost">Contact Us</a><a href="/">Sanalikaforum Tema Test</a><a href="#top">Return to Top</a><a href="#content">Return to Content</a><a href="http://127.0.0.1/mybb/archive/index.php">Lite (Archive) Mode</a><a href="http://127.0.0.1/mybb/misc.php?action=syndication">RSS Syndication</a></span>

                </div>
            </div>
        <hr class="hidden" />
            <div id="copyright">
                <span class="float_right"><strong>Current time:</strong> 09-17-2009, 12:51 PM</span>
                <!-- You may NOT remove, modify or hinder the visibility of the MyBB copyright at any time.
                     It must contain the links to the MyBB website and be formatted appropriately.

                     Failure to comply with the above will result in prosecution to the full extent of the law.
                     This is free software, support us and we'll support you. -->
                <span>Powered By <a href="http://www.mybboard.net" target="_blank">MyBB</a>, &copy; 2002-2009 <a href="http://www.mybboard.net" target="_blank">MyBB Group</a>.<!-- End copyright -->

                <!-- You may not remove, modify, or hinder the visibility of the following copyright.
                     Doing so will void your right to use the theme -->
                Theme created by <strong>Deimosx.</strong></a>
                <!-- End theme copyright -->
                </span>
            </div>
            <div class="bottommenu">
                <div class="float_right" style="margin-top: -4px;"><!-- start: footer_languageselect -->
<form method="get" action="/mybb/newthread.php" id="lang_select">

        <input type="hidden" name="fid" value="2" />

        <select name="language" onchange="MyBB.changeLanguage();">
            <optgroup label="Quick Language Select">
                <option value="english" selected="selected">&nbsp;&nbsp;&nbsp;English (American)</option>

            </optgroup>
        </select>
        <!-- start: gobutton -->

<input type="submit" class="button" value="Go" />
<!-- end: gobutton -->
    </form>
<!-- end: footer_languageselect --></div>
                <div>
                    <span class="smalltext"><a href="mailto:admin@localhost">Contact Us</a><a href="/">Sanalikaforum Tema Test</a><a href="#top">Return to Top</a><a href="#content">Return to Content</a><a href="http://127.0.0.1/mybb/archive/index.php">Lite (Archive) Mode</a><a href="http://127.0.0.1/mybb/misc.php?action=syndication">RSS Syndication</a></span>
                </div>

            </div>
        </div> 

    <!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE --><!-- End task image code -->

<!-- end: footer -->
</body>
</html>
<!-- end: newthread -->

Share this post


Link to post
Share on other sites

I saved the sourcecode to a html file "c:\my1.html"

Then i executed this:

$oIE = _IECreate("C:\my1.html")
$textarea= _IETagNameGetCollection ($oIE, "textarea")
for $element in $textarea
if $element.id="message" then
    $element.Value="whatever you want"
EndIf
next

It works.

Share this post


Link to post
Share on other sites

Are you certain the textarea you are looking at is really the right element? It is very common for these types of webpage editors to use an iFrame instead of a textarea. If it is an iFrame, then use _IEFrameGetObjByName and _IEBodyWriteHTML.

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

#14 ·  Posted (edited)

I saved the sourcecode to a html file "c:\my1.html"

Then i executed this:

$oIE = _IECreate("C:\my1.html")
$textarea= _IETagNameGetCollection ($oIE, "textarea")
for $element in $textarea
if $element.id="message" then
    $element.Value="whatever you want"
EndIf
next

It works.

it works for me too but it doesnt in this way

#include <IE.au3>

$oIE = _IECreate("http://127.0.0.1/mybb/newthread.php?fid=2")
$textarea= _IETagNameGetCollection ($oIE, "textarea")
for $element in $textarea
if $element.id="message" then
    $element.Value="whatever you want"
EndIf
next

Are you certain the textarea you are looking at is really the right element? It is very common for these types of webpage editors to use an iFrame instead of a textarea. If it is an iFrame, then use _IEFrameGetObjByName and _IEBodyWriteHTML.

Dale

--> IE.au3 V2.4-0 Warning from function _IEFrameGetObjByName, $_IEStatus_NoMatch (No Frames found)

--> IE.au3 V2.4-0 Error from function _IEBodyWriteHTML, $_IEStatus_InvalidDataType

Edited by Sercankd

Share this post


Link to post
Share on other sites

This works with the HTML you posted:

#include <IE.au3>

$oIE = _IEAttach("New Thread")

$oTextarea = _IEGetObjByName($oIE, "message")
_IEFormElementSetValue($oTextarea, "Hello")

If it doesn't work for you, insure that you are attached to the document you think you are... put this in your code:

ConsoleWrite(_IEBodyReadHTML($oIE) & @CRLF)

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

#16 ·  Posted (edited)

yes it works with local files i mean C:/a.html etc but not with urls

Edited by Sercankd

Share this post


Link to post
Share on other sites

So did you ignore my ConsoleWrite suggestion?


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

#18 ·  Posted (edited)

no tried it now and there is no textarea obj in output

textarea should be between this lines

<TD class=trow2>

<DIV class=messageEditor style="WIDTH: 443px; POSITION: relative; HEIGHT: 326px">

>"D:\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.exe" /run /prod /ErrorStdOut /in "F:\E Yedek\sik\Yeni AutoIt v3 Script (4).au3" /autoit3dir "D:\AutoIt3" /UserParams    
+>18:05:32 Starting AutoIt3Wrapper v.2.0.0.1    Environment(Language:0409  Keyboard:0000041F  OS:WIN_VISTA/Service Pack 1  CPU:X64 OS:X64)
>Running AU3Check (1.54.14.0)  from:D:\AutoIt3
+>18:05:32 AU3Check ended.rc:0
>Running:(3.3.0.0):D:\AutoIt3\autoit3_x64.exe "F:\E Yedek\sik\Yeni AutoIt v3 Script (4).au3"    
<!-- start: header -->
<DIV id=container><A id=top name=top></A>
<DIV id=header>
<DIV class=logo><A href="http://127.0.0.1/mybb/index.php"><IMG title=Forums alt=Forums src="http://127.0.0.1/mybb/images/sky/logo.png"></A></DIV><!-- start: header_welcomeblock_member -->
<DIV class=upper_panel><SPAN class=float_right><A class=search href="http://127.0.0.1/mybb/search.php">Search</A><A class=memberlist href="http://127.0.0.1/mybb/memberlist.php">Member List</A><A class=calendar href="http://127.0.0.1/mybb/calendar.php">Calendar</A><A class=help href="http://127.0.0.1/mybb/misc.php?action=help">Help</A></SPAN> <SPAN><STRONG>Welcome back, Sercankd</STRONG>. You last visited: Today, 02:38 PM <A class=logout href="http://127.0.0.1/mybb/member.php?action=logout&amp;logoutkey=5dec3ccaf3fd73a7b36678b9a304ba73">Log Out</A></SPAN> </DIV>
<DIV class=lower_panel><SPAN class=float_right><A onclick="MyBB.popupWindow('http://127.0.0.1/mybb/misc.php?action=buddypopup', 'buddyList', 350, 350);" href="#">Open Buddy List</A><A href="http://127.0.0.1/mybb/search.php?action=getnew">View New Posts</A><A href="http://127.0.0.1/mybb/search.php?action=getdaily">View Today's Posts</A><A style="MARGIN-RIGHT: 0px" href="http://127.0.0.1/mybb/private.php">Private Messages</A> (Unread 0, Total 0)</SPAN> <SPAN><A class=usercp href="http://127.0.0.1/mybb/usercp.php">User CP</A><!-- start: header_welcomeblock_member_moderator --> <A class=modcp href="http://127.0.0.1/mybb/modcp.php">Mod CP</A> <!-- end: header_welcomeblock_member_moderator --><!-- start: header_welcomeblock_member_admin --><A class=admincp href="http://127.0.0.1/mybb/admin/index.php">Admin CP</A> <!-- end: header_welcomeblock_member_admin --></SPAN></DIV><!-- end: header_welcomeblock_member --></DIV>
<DIV id=content><!-- start: nav -->
<DIV class=navigation><!-- start: nav_bit --><A href="http://127.0.0.1/mybb/index.php">Forums</A><!-- start: nav_sep --> » <!-- end: nav_sep --><!-- end: nav_bit --><!-- start: nav_bit --><A href="forumdisplay.php?fid=1">My Category</A><!-- start: nav_sep --> » <!-- end: nav_sep --><!-- end: nav_bit --><!-- start: nav_bit --><A href="forumdisplay.php?fid=2">My Forum</A> <!-- end: nav_bit --><!-- start: nav_sep_active --><BR><IMG alt="" src="images/sky/nav_bit.gif"> <!-- end: nav_sep_active --><!-- start: nav_bit_active --><SPAN class=active>New Thread</SPAN> <!-- end: nav_bit_active --></DIV><!-- end: nav --><BR><!-- end: header -->
<FORM name=input action=newthread.php?fid=2&amp;processed=1 method=post encType=multipart/form-data><INPUT type=hidden value=e6ebb5416e868ae2b24a0b972bc7de07 name=my_post_key> 
<TABLE class=tborder cellSpacing=1 cellPadding=6 border=0>
<TBODY>
<TR>
<TD class=thead colSpan=2><STRONG>Post a new Thread</STRONG></TD></TR><!-- start: changeuserbox -->
<TR>
<TD class=trow1 width="20%"><STRONG>Username:</STRONG></TD>
<TD class=trow1>Sercankd <SPAN class=smalltext>[<STRONG><A href="member.php?action=logout&amp;logoutkey=5dec3ccaf3fd73a7b36678b9a304ba73">change user</A></STRONG>]</SPAN></TD></TR><!-- end: changeuserbox -->
<TR>
<TD class=trow2 width="20%"><STRONG>Thread Subject</STRONG></TD>
<TD class=trow2><INPUT class=textbox tabIndex=1 maxLength=85 size=40 name=subject></TD></TR><!-- start: posticons -->
<TR>
<TD class=trow1 style="VERTICAL-ALIGN: top"><STRONG>Post Icon:</STRONG><BR><SPAN class=smalltext><INPUT class=radio type=radio CHECKED value=-1 name=icon>no icon</SPAN></TD>
<TD class=trow1 vAlign=top><LABEL><INPUT type=radio value=6 name=icon> <IMG alt=Wink src="images/icons/wink.gif"></LABEL><LABEL><INPUT type=radio value=20 name=icon> <IMG alt=Video src="images/icons/video.gif"></LABEL><LABEL><INPUT type=radio value=8 name=icon> <IMG alt=Tongue src="images/icons/tongue.gif"></LABEL><LABEL><INPUT type=radio value=19 name=icon> <IMG alt="Thumbs Up" src="images/icons/thumbsup.gif"></LABEL><LABEL><INPUT type=radio value=18 name=icon> <IMG alt="Thumbs Down" src="images/icons/thumbsdown.gif"></LABEL><LABEL><INPUT type=radio value=17 name=icon> <IMG alt=Star src="images/icons/star.gif"></LABEL><LABEL><INPUT type=radio value=4 name=icon> <IMG alt=Smile src="images/icons/smile.gif"></LABEL><LABEL><INPUT type=radio value=16 name=icon> <IMG alt=Shocked src="images/icons/shocked.gif"></LABEL><LABEL><INPUT type=radio value=5 name=icon> <IMG alt=Sad src="images/icons/sad.gif"></LABEL><LABEL><INPUT type=radio value=15 name=icon> <IMG alt=Rainbow src="images/icons/rainbow.gif"></LABEL><BR><LABEL><INPUT type=radio value=3 name=icon> <IMG alt=Question src="images/icons/question.gif"></LABEL><LABEL><INPUT type=radio value=14 name=icon> <IMG alt=Photo src="images/icons/photo.gif"></LABEL><LABEL><INPUT type=radio value=13 name=icon> <IMG alt=Music src="images/icons/music.gif"></LABEL><LABEL><INPUT type=radio value=12 name=icon> <IMG alt=Lightbulb src="images/icons/lightbulb.gif"></LABEL><LABEL><INPUT type=radio value=11 name=icon> <IMG alt=Information src="images/icons/information.gif"></LABEL><LABEL><INPUT type=radio value=10 name=icon> <IMG alt=Heart src="images/icons/heart.gif"></LABEL><LABEL><INPUT type=radio value=2 name=icon> <IMG alt=Exclamation src="images/icons/exclamation.gif"></LABEL><LABEL><INPUT type=radio value=1 name=icon> <IMG alt=Bug src="images/icons/bug.gif"></LABEL><LABEL><INPUT type=radio value=9 name=icon> <IMG alt=Brick src="images/icons/brick.gif"></LABEL><LABEL><INPUT type=radio value=7 name=icon> <IMG alt="Big Grin" src="images/icons/biggrin.gif"></LABEL><BR></TD></TR><!-- end: posticons -->
<TR>
<TD class=trow2 vAlign=top><STRONG>Your Message:</STRONG><!-- start: smilieinsert --> 
<DIV style="MARGIN: 20px auto auto; WIDTH: 170px">
<TABLE class=tborder cellSpacing=1 cellPadding=6 width=150 border=0>
<TBODY>
<TR>
<TD class=thead><SPAN class=smalltext><STRONG>Smilies</STRONG></SPAN></TD></TR>
<TR>
<TD class=trow1>
<TABLE id=clickable_smilies cellSpacing=0 cellPadding=2 width="100%" align=center border=0>
<TBODY>
<TR>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:angel: src="images/smilies/angel.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:@ src="images/smilies/angry.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:blush: src="images/smilies/blush.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:s src="images/smilies/confused.gif" border=0></TD></TR>
<TR>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:dodgy: src="images/smilies/dodgy.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:exclamation: src="images/smilies/exclamation.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:heart: src="images/smilies/heart.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:huh: src="images/smilies/huh.gif" border=0></TD></TR>
<TR>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:idea: src="images/smilies/lightbulb.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:sleepy: src="images/smilies/sleepy.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:-/ src="images/smilies/undecided.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:) src="images/smilies/smile.gif" border=0></TD></TR>
<TR>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=;) src="images/smilies/wink.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:cool: src="images/smilies/cool.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:D src="images/smilies/biggrin.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:P src="images/smilies/tongue.gif" border=0></TD></TR>
<TR>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:rolleyes: src="images/smilies/rolleyes.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:shy: src="images/smilies/shy.gif" border=0></TD>
<TD style="TEXT-ALIGN: center"><IMG class=smilie style="CURSOR: pointer" alt=:( src="images/smilies/sad.gif" border=0></TD>
<TD>&nbsp;</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV><!-- end: smilieinsert --></TD>
<TD class=trow2>
<DIV class=messageEditor style="WIDTH: 443px; POSITION: relative; HEIGHT: 326px">
<DIV class=toolbar_container id=editor_toolbar_container_top>
<DIV class="toolbar float_right" id=editor_toolbar_closetags><SPAN class="toolbar_button toolbar_normal toolbar_button_close_tags toolbar_button_group_first toolbar_button_group_last" id=editor_item_close_tags style="VISIBILITY: hidden" itemType="button" insertText="zzzz" insertExtra><SPAN class="toolbar_sprite toolbar_sprite_close_tags"></SPAN><STRONG></STRONG></SPAN><BR style="CLEAR: both"></DIV>
<DIV class=toolbar id=editor_toolbar_topformatting>
<DIV class="toolbar_dropdown editor_dropdown toolbar_dropdown_font toolbar_dropdown_group_first" id=editor_item_font itemType="dropdown" insertText="font">
<DIV class=editor_dropdown_label>Font</DIV>
<DIV class=editor_dropdown_arrow></DIV>
<UL class=editor_dropdown_menu style="DISPLAY: none">
<LI class=editor_dropdown_menu_title>Font</LI>
<LI extra="Arial">Arial<SPAN></SPAN></LI>
<LI extra="Courier">Courier<SPAN></SPAN></LI>
<LI extra="Impact">Impact<SPAN></SPAN></LI>
<LI extra="Tahoma">Tahoma<SPAN></SPAN></LI>
<LI extra="Times New Roman">Times New Roman<SPAN></SPAN></LI>
<LI extra="Trebuchet MS">Trebuchet MS<SPAN></SPAN></LI>
<LI extra="Verdana">Verdana<SPAN></SPAN></LI></UL></DIV>
<DIV class="toolbar_dropdown editor_dropdown toolbar_dropdown_size" id=editor_item_size itemType="dropdown" insertText="size">
<DIV class=editor_dropdown_label>Text Size</DIV>
<DIV class=editor_dropdown_arrow></DIV>
<UL class=editor_dropdown_menu style="DISPLAY: none">
<LI class=editor_dropdown_menu_title>Text Size</LI>
<LI extra="xx-small">XX Small<SPAN></SPAN></LI>
<LI extra="x-small">X Small<SPAN></SPAN></LI>
<LI extra="small">Small<SPAN></SPAN></LI>
<LI extra="medium">Medium<SPAN></SPAN></LI>
<LI extra="large">Large<SPAN></SPAN></LI>
<LI extra="x-large">X Large<SPAN></SPAN></LI>
<LI extra="xx-large">XX Large<SPAN></SPAN></LI></UL></DIV><SPAN class="toolbar_button toolbar_normal toolbar_button_color toolbar_button_with_arrow toolbar_button_group_first toolbar_button_group_last" id=editor_item_color itemType="button" insertText="color" insertExtra dropdown="true"><IMG height=22 src="jscripts/editor_themes/default/images/color.gif" width=23><EM class=editor_button_color_selected></EM><U class=toolbar_button_arrow></U><STRONG></STRONG>
<UL class=editor_dropdown_menu style="DISPLAY: none">
<LI class=editor_dropdown_color_item extra="#800000"><A style="BACKGROUND-COLOR: #800000"></A></LI>
<LI class=editor_dropdown_color_item extra="#8B4513"><A style="BACKGROUND-COLOR: #8b4513"></A></LI>
<LI class=editor_dropdown_color_item extra="#006400"><A style="BACKGROUND-COLOR: #006400"></A></LI>
<LI class=editor_dropdown_color_item extra="#2F4F4F"><A style="BACKGROUND-COLOR: #2f4f4f"></A></LI>
<LI class=editor_dropdown_color_item extra="#000080"><A style="BACKGROUND-COLOR: #000080"></A></LI>
<LI class=editor_dropdown_color_item extra="#4B0082"><A style="BACKGROUND-COLOR: #4b0082"></A></LI>
<LI class=editor_dropdown_color_item extra="#800080"><A style="BACKGROUND-COLOR: #800080"></A></LI>
<LI class=editor_dropdown_color_item extra="#000000"><A style="BACKGROUND-COLOR: #000000"></A></LI>
<LI class=editor_dropdown_color_item extra="#FF0000"><A style="BACKGROUND-COLOR: #ff0000"></A></LI>
<LI class=editor_dropdown_color_item extra="#DAA520"><A style="BACKGROUND-COLOR: #daa520"></A></LI>
<LI class=editor_dropdown_color_item extra="#6B8E23"><A style="BACKGROUND-COLOR: #6b8e23"></A></LI>
<LI class=editor_dropdown_color_item extra="#708090"><A style="BACKGROUND-COLOR: #708090"></A></LI>
<LI class=editor_dropdown_color_item extra="#0000CD"><A style="BACKGROUND-COLOR: #0000cd"></A></LI>
<LI class=editor_dropdown_color_item extra="#483D8B"><A style="BACKGROUND-COLOR: #483d8b"></A></LI>
<LI class=editor_dropdown_color_item extra="#C71585"><A style="BACKGROUND-COLOR: #c71585"></A></LI>
<LI class=editor_dropdown_color_item extra="#696969"><A style="BACKGROUND-COLOR: #696969"></A></LI>
<LI class=editor_dropdown_color_item extra="#FF4500"><A style="BACKGROUND-COLOR: #ff4500"></A></LI>
<LI class=editor_dropdown_color_item extra="#FFA500"><A style="BACKGROUND-COLOR: #ffa500"></A></LI>
<LI class=editor_dropdown_color_item extra="#808000"><A style="BACKGROUND-COLOR: #808000"></A></LI>
<LI class=editor_dropdown_color_item extra="#4682B4"><A style="BACKGROUND-COLOR: #4682b4"></A></LI>
<LI class=editor_dropdown_color_item extra="#1E90FF"><A style="BACKGROUND-COLOR: #1e90ff"></A></LI>
<LI class=editor_dropdown_color_item extra="#9400D3"><A style="BACKGROUND-COLOR: #9400d3"></A></LI>
<LI class=editor_dropdown_color_item extra="#FF1493"><A style="BACKGROUND-COLOR: #ff1493"></A></LI>
<LI class=editor_dropdown_color_item extra="#A9A9A9"><A style="BACKGROUND-COLOR: #a9a9a9"></A></LI>
<LI class=editor_dropdown_color_item extra="#FF6347"><A style="BACKGROUND-COLOR: #ff6347"></A></LI>
<LI class=editor_dropdown_color_item extra="#FFD700"><A style="BACKGROUND-COLOR: #ffd700"></A></LI>
<LI class=editor_dropdown_color_item extra="#32CD32"><A style="BACKGROUND-COLOR: #32cd32"></A></LI>
<LI class=editor_dropdown_color_item extra="#87CEEB"><A style="BACKGROUND-COLOR: #87ceeb"></A></LI>
<LI class=editor_dropdown_color_item extra="#00BFFF"><A style="BACKGROUND-COLOR: #00bfff"></A></LI>
<LI class=editor_dropdown_color_item extra="#9370DB"><A style="BACKGROUND-COLOR: #9370db"></A></LI>
<LI class=editor_dropdown_color_item extra="#FF69B4"><A style="BACKGROUND-COLOR: #ff69b4"></A></LI>
<LI class=editor_dropdown_color_item extra="#DCDCDC"><A style="BACKGROUND-COLOR: #dcdcdc"></A></LI>
<LI class=editor_dropdown_color_item extra="#FFDAB9"><A style="BACKGROUND-COLOR: #ffdab9"></A></LI>
<LI class=editor_dropdown_color_item extra="#FFFFE0"><A style="BACKGROUND-COLOR: #ffffe0"></A></LI>
<LI class=editor_dropdown_color_item extra="#98FB98"><A style="BACKGROUND-COLOR: #98fb98"></A></LI>
<LI class=editor_dropdown_color_item extra="#E0FFFF"><A style="BACKGROUND-COLOR: #e0ffff"></A></LI>
<LI class=editor_dropdown_color_item extra="#87CEFA"><A style="BACKGROUND-COLOR: #87cefa"></A></LI>
<LI class=editor_dropdown_color_item extra="#E6E6FA"><A style="BACKGROUND-COLOR: #e6e6fa"></A></LI>
<LI class=editor_dropdown_color_item extra="#DDA0DD"><A style="BACKGROUND-COLOR: #dda0dd"></A></LI>
<LI class=editor_dropdown_color_item extra="#FFFFFF"><A style="BACKGROUND-COLOR: #ffffff"></A></LI></UL></SPAN><BR style="CLEAR: both"></DIV></DIV>
<DIV class=toolbar_container id=editor_toolbar_container_bottom>
<DIV class="toolbar float_right" id=editor_toolbar_insertables><SPAN class="toolbar_button toolbar_normal toolbar_button_list_num toolbar_button_group_first" id=editor_item_list_num title="Insert numbered list" itemType="button" insertText="list" insertExtra="1"><SPAN class="toolbar_sprite toolbar_sprite_list_num"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_list_bullet toolbar_button_group_last" id=editor_item_list_bullet title="Insert bulleted list" itemType="button" insertText="list" insertExtra><SPAN class="toolbar_sprite toolbar_sprite_list_bullet"></SPAN><STRONG></STRONG></SPAN><SPAN class=toolbar_sep itemType="separator"></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_img toolbar_button_group_first" id=editor_item_img title="Insert image" itemType="button" insertText="image" insertExtra="1"><SPAN class="toolbar_sprite toolbar_sprite_image"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_url" id=editor_item_url title="Insert hyperlink" itemType="button" insertText="url" insertExtra><SPAN class="toolbar_sprite toolbar_sprite_link"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_email toolbar_button_group_last" id=editor_item_email title="Insert email address" itemType="button" insertText="email" insertExtra="1"><SPAN class="toolbar_sprite toolbar_sprite_email"></SPAN><STRONG></STRONG></SPAN><SPAN class=toolbar_sep itemType="separator"></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_quote toolbar_button_group_first" id=editor_item_quote title="Insert quoted text" itemType="button" insertText="quote" insertExtra><SPAN class="toolbar_sprite toolbar_sprite_quote"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_code" id=editor_item_code title="Insert formatted code" itemType="button" insertText="code" insertExtra><SPAN class="toolbar_sprite toolbar_sprite_code"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_php toolbar_button_group_last" id=editor_item_php title="Insert formatted PHP code" itemType="button" insertText="php" insertExtra><SPAN class="toolbar_sprite toolbar_sprite_php"></SPAN><STRONG></STRONG></SPAN><BR style="CLEAR: both"></DIV>
<DIV class=toolbar id=editor_toolbar_formatting><SPAN class="toolbar_button toolbar_normal toolbar_button_b toolbar_button_group_first" id=editor_item_b title="Insert bold text" itemType="button" insertText="b" insertExtra><SPAN class="toolbar_sprite toolbar_sprite_bold"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_i" id=editor_item_i title="Insert italic text" itemType="button" insertText="i" insertExtra><SPAN class="toolbar_sprite toolbar_sprite_italic"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_u toolbar_button_group_last" id=editor_item_u title="Insert underlined text" itemType="button" insertText="u" insertExtra><SPAN class="toolbar_sprite toolbar_sprite_underline"></SPAN><STRONG></STRONG></SPAN><SPAN class=toolbar_sep itemType="separator"></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_align_left toolbar_button_group_first" id=editor_item_align_left title="Align text to the left" itemType="button" insertText="align" insertExtra="left"><SPAN class="toolbar_sprite toolbar_sprite_align_left"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_align_center" id=editor_item_align_center title="Align text to the center" itemType="button" insertText="align" insertExtra="center"><SPAN class="toolbar_sprite toolbar_sprite_align_center"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_align_right" id=editor_item_align_right title="Align text to the right" itemType="button" insertText="align" insertExtra="right"><SPAN class="toolbar_sprite toolbar_sprite_align_right"></SPAN><STRONG></STRONG></SPAN><SPAN class="toolbar_button toolbar_normal toolbar_button_align_justify toolbar_button_group_last" id=editor_item_align_justify title="Justify text" itemType="button" insertText="align" insertExtra="justify"><SPAN class="toolbar_sprite toolbar_sprite_align_justify"></SPAN><STRONG></STRONG></SPAN><BR style="CLEAR: both"></DIV></DIV>
<DIV style="CLEAR: both; WIDTH: 436px; HEIGHT: 255px"><TEXTAREA id=message_new style="WIDTH: 436px; HEIGHT: 255px" tabIndex=2 rows=20 cols=70></TEXTAREA></DIV></DIV><TEXTAREA id=message_old style="VISIBILITY: hidden; POSITION: absolute; TOP: -1000px" tabIndex=2 name=message rows=20 cols=70>Hello</TEXTAREA> <!-- start: codebuttons -->
<script src="jscripts/editor.js?ver=1400" type=text/javascript></SCRIPT>

<script type=text/javascript>
<!--
    var editor_language = {
    title_bold: "Insert bold text",
    title_italic: "Insert italic text",
    title_underline: "Insert underlined text",
    title_left: "Align text to the left",
    title_center: "Align text to the center",
    title_right: "Align text to the right",
    title_justify: "Justify text",
    title_numlist: "Insert numbered list",
    title_bulletlist: "Insert bulleted list",
    title_image: "Insert image",
    title_hyperlink: "Insert hyperlink",
    title_email: "Insert email address",
    title_quote: "Insert quoted text",
    title_code: "Insert formatted code",
    title_php: "Insert formatted PHP code",
    title_close_tags: "Close any open MyCode tags that you currently have open",
    enter_list_item: "Enter a list item. Click cancel or leave blank to end the list.",
    enter_url: "Please enter the URL of the website.",
    enter_url_title: "Optionally, you can also enter a title for the URL.",
    enter_email: "Please enter the email address you wish to insert.",
    enter_email_title: "Optionally, you may also enter a title for the email address.",
    enter_image: "Please enter the remote URL of the image you wish to insert.",
    size_xx_small: "XX Small",
    size_x_small: "X Small",
    size_small: "Small",
    size_medium: "Medium",
    size_large: "Large",
    size_x_large: "X Large",
    size_xx_large: "XX Large",
    font: "Font",
    size: "Text Size",
    color: "Text Color"
};
    var clickableEditor = new messageEditor("message", {lang: editor_language, rtl: 0, theme: "default"});
    if(clickableEditor)
    {
        clickableEditor.bindSmilieInserter("clickable_smilies");
    }
// -->
</SCRIPT>
<!-- end: codebuttons --></TD></TR>
<TR>
<TD class=trow1 vAlign=top><STRONG>Post Options:</STRONG></TD>
<TD class=trow1><SPAN class=smalltext><LABEL><INPUT class=checkbox tabIndex=7 type=checkbox value=1 name=postoptions[signature]> <B>Signature:</B> include your signature. (registered users only)</LABEL> <!-- start: newthread_disablesmilies --><BR><LABEL><INPUT class=checkbox tabIndex=9 type=checkbox value=1 name=postoptions[disablesmilies]> <B>Disable Smilies:</B> disable smilies from showing in this post.</LABEL> <!-- end: newthread_disablesmilies --></SPAN></TD></TR><!-- start: newreply_modoptions -->
<TR>
<TD class=trow2 vAlign=top><STRONG>Moderator Options:</STRONG></TD>
<TD class=trow2><SPAN class=smalltext><LABEL><INPUT class=checkbox type=checkbox value=1 name=modoptions[closethread]>&nbsp;<B>Close Thread</B>: prevent further posting in this thread.</LABEL><BR><LABEL><INPUT class=checkbox type=checkbox value=1 name=modoptions[stickthread]>&nbsp;<B>Stick Thread:</B> stick this thread to the top of the forum.</LABEL> </SPAN></TD></TR><!-- end: newreply_modoptions --><!-- start: post_subscription_method -->
<TR>
<TD class=trow1 vAlign=top><STRONG>Thread Subscription:</STRONG><BR><SPAN class=smalltext>Specify the type of email notification and thread subscription you'd like to have to this thread. (Registered users only)</SPAN></TD>
<TD class="trow1 smalltext"><LABEL><INPUT style="VERTICAL-ALIGN: middle" type=radio CHECKED value="" name=postoptions[subscriptionmethod]> Do not subscribe to this thread</LABEL><BR><LABEL><INPUT style="VERTICAL-ALIGN: middle" type=radio value=none name=postoptions[subscriptionmethod]> Subscribe without receiving email notification of new replies</LABEL><BR><LABEL><INPUT style="VERTICAL-ALIGN: middle" type=radio value=instant name=postoptions[subscriptionmethod]> Subscribe and receive email notification of new replies</LABEL><BR></TD></TR><!-- end: post_subscription_method --><!-- start: newthread_postpoll -->
<TR>
<TD class=trow2 vAlign=top><STRONG>Poll:</STRONG><BR><SPAN class=smalltext>Optionally you may attach a poll to this thread.</SPAN> </TD>
<TD class=trow2 vAlign=top><SPAN class=smalltext><LABEL><INPUT class=checkbox type=checkbox value=1 name=postpoll><STRONG>I want to post a poll</STRONG></LABEL><BR>Number of options: <INPUT class=textbox size=10 value=2 name=numpolloptions> (Maximum: 10)</SPAN> </TD></TR><!-- end: newthread_postpoll --></TBODY></TABLE><!-- start: post_attachments --><BR>
<TABLE class=tborder cellSpacing=1 cellPadding=6 border=0>
<TBODY>
<TR>
<TD class=thead colSpan=3><STRONG>Attachments</STRONG></TD></TR>
<TR>
<TD class="tcat smalltext" colSpan=3>You are currently using <STRONG>N/A</STRONG> of your allocated attachment usage (Unlimited) <A href="usercp.php?action=attachments">[View My Attachments]</A></TD></TR><!-- start: post_attachments_new -->
<TR>
<TD class=trow1 width=1><IMG alt="" src="images/sky/paperclip.gif"></TD>
<TD class=trow1 style="WHITE-SPACE: nowrap"><STRONG>New Attachment:</STRONG> <INPUT class=fileupload type=file size=30 name=attachment></TD>
<TD class=trow1 align=middle><INPUT class=button tabIndex=12 type=submit value="Add Attachment" name=newattachment> </TD></TR><!-- end: post_attachments_new --></TBODY></TABLE><!-- end: post_attachments --><BR>
<DIV style="TEXT-ALIGN: center"><INPUT class=button accessKey=s tabIndex=4 type=submit value="Post Thread" name=submit> <INPUT class=button tabIndex=5 type=submit value="Preview Post" name=previewpost>&nbsp;<INPUT class=button type=submit value="Save as Draft" name=savedraft></DIV><INPUT type=hidden value=do_newthread name=action> <INPUT type=hidden value=5edca7c979b043678a24ba4bcec3e7a1 name=posthash> <INPUT type=hidden name=attachmentaid> <INPUT type=hidden name=attachmentact> <INPUT type=hidden name=quoted_ids> <INPUT type=hidden name=tid> </FORM><!-- start: footer -->
<DIV style="OVERFLOW: hidden">
<DIV id=debug>Generated in 0.0599620 seconds (68.88% PHP / 31.12% MySQL)<BR>SQL Queries: 12 / Global Parsing Time: 0.0502741 / Memory Usage: 3.25 MB<BR>PHP version: 5.2.8 / Server Load: Unknown / GZip Compression: Disabled<BR>[<A href="/mybb/newthread.php?fid=2&amp;debug=1" target=_blank>advanced details</A>]<BR></DIV></DIV></DIV>
<DIV class=bottommenu>
<DIV class=float_right style="MARGIN-TOP: -4px"><!-- start: footer_languageselect -->
<FORM id=lang_select action=/mybb/newthread.php method=get><INPUT type=hidden value=2 name=fid> <SELECT onchange=MyBB.changeLanguage(); name=language> <OPTGROUP label="Quick Language Select"> <OPTION value=english selected>&nbsp;&nbsp;&nbsp;English (American)</OPTION> </OPTGROUP></SELECT> <!-- start: gobutton --><INPUT class=button type=submit value=Go> <!-- end: gobutton --></FORM><!-- end: footer_languageselect --></DIV>
<DIV><SPAN class=smalltext><A href="mailto:admin@localhost">Contact Us</A><A href="/">Sanalikaforum Tema Test</A><A href="#top">Return to Top</A><A href="#content">Return to Content</A><A href="http://127.0.0.1/mybb/archive/index.php">Lite (Archive) Mode</A><A href="http://127.0.0.1/mybb/misc.php?action=syndication">RSS Syndication</A></SPAN> </DIV></DIV>
<HR class=hidden>

<DIV id=copyright><SPAN class=float_right><STRONG>Current time:</STRONG> 09-17-2009, 03:03 PM</SPAN> <!-- You may NOT remove, modify or hinder the visibility of the MyBB copyright at any time.
                     It must contain the links to the MyBB website and be formatted appropriately.

                     Failure to comply with the above will result in prosecution to the full extent of the law.
                     This is free software, support us and we'll support you. --><SPAN>Powered By <A href="http://www.mybboard.net" target=_blank>MyBB</A>, © 2002-2009 <A href="http://www.mybboard.net" target=_blank>MyBB Group</A>.<!-- End copyright --> <!-- You may not remove, modify, or hinder the visibility of the following copyright.
                     Doing so will void your right to use the theme -->Theme created by <STRONG>Deimosx.</STRONG></A> <!-- End theme copyright --></SPAN></DIV>
<DIV class=bottommenu>
<DIV class=float_right style="MARGIN-TOP: -4px"><!-- start: footer_languageselect -->
<FORM id=lang_select action=/mybb/newthread.php method=get><INPUT type=hidden value=2 name=fid> <SELECT onchange=MyBB.changeLanguage(); name=language> <OPTGROUP label="Quick Language Select"> <OPTION value=english selected>&nbsp;&nbsp;&nbsp;English (American)</OPTION> </OPTGROUP></SELECT> <!-- start: gobutton --><INPUT class=button type=submit value=Go> <!-- end: gobutton --></FORM><!-- end: footer_languageselect --></DIV>
<DIV><SPAN class=smalltext><A href="mailto:admin@localhost">Contact Us</A><A href="/">Sanalikaforum Tema Test</A><A href="#top">Return to Top</A><A href="#content">Return to Content</A><A href="http://127.0.0.1/mybb/archive/index.php">Lite (Archive) Mode</A><A href="http://127.0.0.1/mybb/misc.php?action=syndication">RSS Syndication</A></SPAN> </DIV></DIV></DIV><!-- The following piece of code allows MyBB to run scheduled tasks. DO NOT REMOVE --><IMG height=1 alt="" src="http://127.0.0.1/mybb/task.php" width=1 border=0><!-- End task image code --> <!-- end: footer --><!-- end: newthread -->
+>18:05:32 AutoIT3.exe ended.rc:0
+>18:05:33 AutoIt3Wrapper Finished
>Exit code: 0    Time: 1.757
Edited by Sercankd

Share this post


Link to post
Share on other sites

Well, yes there is a text area... in fact there are two... one called message_new and one called message_old (the later is hidden).

Rework the code I gave you above to reflect the dynamic names.

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

modified like below and it worked thanks

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ButtonConstants.au3>
#include <IE.au3>
#include <Date.au3>
Opt("TrayMenuMode", 1)
Opt("GUIOnEventMode", 1) ; ON
TraySetIcon("Shell32.dll", 13)
HotKeySet("{END}", "Kapat")
Func Kapat()
    Exit 0;
EndFunc   ;==>Kapat

Global $oIE
Global $subject
Global $message
$i = 60
_IEErrorHandlerRegister ()

$oIE = _IECreateEmbedded ()
GUICreate("Gui", 1024, 768, _
        (@DesktopWidth - 640) / 2, (@DesktopHeight - 580) / 2, _
        $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS + $WS_CLIPCHILDREN)
$GUIActiveX = GUICtrlCreateObj($oIE, 10, 40, 1000, 750)
$GUI_Button_Home = GUICtrlCreateButton("Bekleniyor", 10, 10, 100, 20)


Func _countDown($Countdown)
    $seconds = _DateAdd('s', $Countdown / 1000, _NowCalc())
    Do
        Sleep(100)
        $sec = _DateDiff('s', _NowCalc(), $seconds)
        $string = StringFormat("%.02d" & ":" & "%.02d" & ":" & "%.02d", _
        Mod($sec / 3600, 24), Mod(($sec / 60), 60), Mod($sec, 60))
        GUICtrlSetData($GUI_Button_Home, "(" & $string & ")")
    Until $sec = 0
EndFunc


GUISetState()       ;Show GUI
$kategori = Random(2,2,1)
           _IENavigate ($oIE, "http://127.0.0.1/mybb/newthread.php?fid=2")
    _IEErrorHandlerRegister ()
$subject = "Hello (" & Random(100000, 999999, 1) & ")"
$message = "Hello"
    While 1 = 1
            $oForm = _IEFormGetObjByName($oIE, "input")

            $Usr1 = _IEFormElementGetObjByName($oForm, "subject")
            _IEFormElementSetValue($Usr1, $subject)

            $Usr2 = _IEFormElementGetObjByName($oForm, "message")
            _IEFormElementSetValue($Usr2, $subject)

            $Usr3 = _IEFormElementGetObjByName($oForm, "message_new")
            _IEFormElementSetValue($Usr3, $subject)

            $Usr4 = _IEFormElementGetObjByName($oForm, "message_old")
            _IEFormElementSetValue($Usr4, $subject)

            $Btn = _IEGetObjByName($oForm, "submit")
            _IEAction($Btn, "click")


            Sleep(3000)

            _countDown(60000)
            Sleep(60000)
            _IENavigate ($oIE, "http://127.0.0.1/mybb/newthread.php?fid=2")
            _IELoadWait ($oIE)
        WEnd

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