1. Tải bản cài đặt AutoIT mới nhất

    Chào Khách. Nếu bạn mới tham gia và chưa cài đặt AutoIT.
    Vui lòng vào topic trên để tải bản AutoIT mới nhất nhé
    Dismiss Notice
  2. Quy định và nội quy

    Chào Khách. Vui lòng đọc kỹ nội quy và quy định của diễn đàn
    Để tránh bị ban một cách đáng tiếc nhé!
    Dismiss Notice
  3. Hướng dẫn chèn mã AutoIT trong diễn đàn

    Chào Khách. Vui lòng xem qua bài viết này
    Để biết cách chèn mã AutoIT trong diễn đàn bạn nhé :)
    Dismiss Notice

Hỏi đáp Xin giúp đỡ hàm _IEFormElementSetValue không chạy được

Thảo luận trong 'Thảo luận chung - Hỏi đáp' bắt đầu bởi Hade123, 22/2/19.

  1. Hade123

    Hade123 Thành viên
    • 8/11

    Tham gia ngày:
    14/12/18
    Bài viết:
    44
    Đã được thích:
    2
    code mình sai chỗ nào vậy mấy bác @@ mình nghĩ là do phần
    _IEFormElementSetValue ($UID,"GUICtrlRead($Input1)
    các bác giúp với ạ

    Mã (AutoIt):
    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <IE.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 325, 306, 192, 124)
    $Input1 = GUICtrlCreateInput("Điền ID hoặc Link Video", 8, 40, 225, 21)
    $Label1 = GUICtrlCreateLabel("ID", 8, 16, 21, 21)
    GUICtrlSetFont(-1, 11, 800, 0, "Times New Roman")
    $Button1 = GUICtrlCreateButton("Chạy VipTim", 8, 96, 75, 25)
    $Button2 = GUICtrlCreateButton("Chạy TimV", 104, 96, 75, 25)
    $Label2 = GUICtrlCreateLabel("CTV: NGUYEN ANH", 24, 280, 190, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
    $Label3 = GUICtrlCreateLabel("Tim", 8, 72, 30, 23)
    GUICtrlSetFont(-1, 12, 800, 0, "Times New Roman")
    $Label4 = GUICtrlCreateLabel("Share", 8, 136, 43, 23)
    GUICtrlSetFont(-1, 12, 800, 0, "Times New Roman")
    $Button3 = GUICtrlCreateButton("Chạy Vipshare", 8, 168, 75, 25)
    $Button4 = GUICtrlCreateButton("Chạy ShareV", 104, 168, 75, 25)
    $Label5 = GUICtrlCreateLabel("View", 8, 208, 37, 23)
    GUICtrlSetFont(-1, 12, 800, 0, "Times New Roman")
    $Button5 = GUICtrlCreateButton("Chạy View", 8, 240, 75, 25)
    $Label6 = GUICtrlCreateLabel("Tiktok AUTO - BOT", 128, 216, 178, 27)
    GUICtrlSetFont(-1, 16, 400, 0, "Times New Roman")
    GUICtrlSetColor(-1, 0xFF0000)
    $Label7 = GUICtrlCreateLabel("CTV Chú ý giá cả", 168, 256, 87, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
            Case $GUI_EVENT_CLOSE
                Exit
                Case $Button1
    Global $oIE = _IECreate ("https://curllikefb2018.000webhostapp.com")

        Local $UID = _IEGetObjByName ($oIE,"access_token")
        Local $button10 = _IEGetObjByName ($oIE,"submit")
        _IEFormElementSetValue ($UID,"GUICtrlRead($Input1)
        _IEAction ($button10,"
    Click")

    MsgBox(0,"
    Thông Báo","Thêm Thành Công")
    MsgBox(1,"
    Thông Báo","Delay Lên 5p")

        EndSwitch
    WEnd
     
  2. masterugx123

    masterugx123 Thành viên mới
    • 3/6

    Tham gia ngày:
    31/1/19
    Bài viết:
    4
    Đã được thích:
    1
    Dòng _IEFormElementSetValue Dư dấu " và thiếu ) ở cuối kìa bro


    Mã (AutoIt):
    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <IE.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1 = GUICreate("Form1", 325, 306, 192, 124)
    $Input1 = GUICtrlCreateInput("Điền ID hoặc Link Video", 8, 40, 225, 21)
    $Label1 = GUICtrlCreateLabel("ID", 8, 16, 21, 21)
    GUICtrlSetFont(-1, 11, 800, 0, "Times New Roman")
    $Button1 = GUICtrlCreateButton("Chạy VipTim", 8, 96, 75, 25)
    $Button2 = GUICtrlCreateButton("Chạy TimV", 104, 96, 75, 25)
    $Label2 = GUICtrlCreateLabel("CTV: NGUYEN ANH", 24, 280, 190, 20)
    GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
    $Label3 = GUICtrlCreateLabel("Tim", 8, 72, 30, 23)
    GUICtrlSetFont(-1, 12, 800, 0, "Times New Roman")
    $Label4 = GUICtrlCreateLabel("Share", 8, 136, 43, 23)
    GUICtrlSetFont(-1, 12, 800, 0, "Times New Roman")
    $Button3 = GUICtrlCreateButton("Chạy Vipshare", 8, 168, 75, 25)
    $Button4 = GUICtrlCreateButton("Chạy ShareV", 104, 168, 75, 25)
    $Label5 = GUICtrlCreateLabel("View", 8, 208, 37, 23)
    GUICtrlSetFont(-1, 12, 800, 0, "Times New Roman")
    $Button5 = GUICtrlCreateButton("Chạy View", 8, 240, 75, 25)
    $Label6 = GUICtrlCreateLabel("Tiktok AUTO - BOT", 128, 216, 178, 27)
    GUICtrlSetFont(-1, 16, 400, 0, "Times New Roman")
    GUICtrlSetColor(-1, 0xFF0000)
    $Label7 = GUICtrlCreateLabel("CTV Chú ý giá cả", 168, 256, 87, 17)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    While 1
        $nMsg = GUIGetMsg()
        Switch $nMsg
            Case $GUI_EVENT_CLOSE
                Exit
                Case $Button1
    Global $oIE = _IECreate ("https://curllikefb2018.000webhostapp.com")

        Local $UID = _IEGetObjByName ($oIE,"access_token")
        Local $button10 = _IEGetObjByName ($oIE,"submit")
        _IEFormElementSetValue ($UID,GUICtrlRead($Input1))
        _IEAction ($button10,"Click")

    MsgBox(0,"Thông Báo","Thêm Thành Công")
    MsgBox(1,"Thông Báo","Delay Lên 5p")

        EndSwitch
    WEnd
     
    Tungtata thích bài này.
  3. Hade123

    Hade123 Thành viên
    • 8/11

    Tham gia ngày:
    14/12/18
    Bài viết:
    44
    Đã được thích:
    2
    oke thanks ban
     

Chia sẻ trang này

Đang tải...