Sign in to follow this  
Followers 0
lovelace2101

Can you help me? Input text on website

5 posts in this topic




My basic script :

 

$oIE = ObjCreate("InternetExplorer.Application")
$oIE.visible = True
$oIE.Navigate("http://imiss.hoakhoi.vn/picture/-le-thi-kieu-oanh.aspx#.U761BPmSwSw")
Sleep(5000)
$oIE.document.getElementById("ctl00_ctl00_Content_Content_txtEmail").value= "name@gmail.com"
$oIE.document.getElementByName("ctl00$ctl00$Content$Content$btnSubmit").click ;

 

:)

Can you help me edit ?

Thanks,

Share this post


Link to post
Share on other sites

lovelace2101,

Google tells me that "Bình Chọn" is "Vote" - are you trying to spam a competition? :huh:

M23


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______My UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Share this post


Link to post
Share on other sites

Hi Mod, 

This is not spam. I only want input email of friend to vote . 

And Can't spam vote.

thanks

Share this post


Link to post
Share on other sites

#include <GUIConstantsEx.au3>

#include <WindowsConstants.au3>

#include <IE.au3>

#include <MsgBoxConstants.au3>

GUICreate("Imiss - by Đạt đẹp trai",300,200,-1,-1)

GUICtrlCreateLabel("Vui lòng nhập Email bình chọn:",20,32,200,25)

$UserNameCON = GUICtrlCreateInput("",20,50,260,22)

$loginBtn = GUICtrlCreateButton("Bình Chọn",105,160,100,25)

GUISetState(@SW_SHOW) ; will display an empty dialog box

    ; Run the GUI until the dialog is closed

    While 1

        $msg = GUIGetMsg()

  Switch $msg

   Case $loginBtn

    $UserName = GUICtrlRead($UserNameCON)

    $oIE = _IECreate ("http://imiss.hoakhoi.vn/picture/-le-thi-kieu-oanh.aspx#.U78jQvmSwSw")

    $divs = _IETagNameGetCollection($oIE, "p")

    $oIE.document.getElementById("ctl00_ctl00_Content_Content_txtEmail").value=$UserName

    $oSubmit = _IEGetObjByName ($oIE, "ctl00$ctl00$Content$Content$btnSubmit")

    $oIE = _IEAction ($oSubmit, "click")

For $p In $divs

    If $p.className == "vote_mess" Then

        MsgBox(0, "Thông báo", $p.innerText)

  EndIf

  Next

    ExitLoop

Case $GUI_EVENT_CLOSE

    ExitLoop

EndSwitch

    WEnd

    GUIDelete()

 

Fail . Can you help me ?

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0