ฟอรั่ม PSsix

Would you like to react to this message? Create an account in a few clicks or log in to continue.

ฟอรั่มของบล็อก http://pssix.blogspot.com


    ช่วยดูโค้ดหน่อยครับ

    Arm
    Arm
    PSsix Member Super Class III
    PSsix Member Super Class III


    PSsix Master PSsix Program Coder
    จำนวนข้อความ : 268
    ความนิยม : 54
    เข้าร่วมเมื่อ : 31/03/2011
    อายุ : 27

    ช่วยดูโค้ดหน่อยครับ Empty ช่วยดูโค้ดหน่อยครับ

    ตั้งหัวข้อ by Arm 22/04/13, 09:41 pm

    Code:
    #include <IE.au3>
    $IE = _IECreate("http://www.mbooks-shop.com/")
    $Form = _IEFormGetObjByName($IE, "frm1")
    $Query = _IEFormElementGetObjByName($Form, "keyword")
    _IEFormElementSetValue($Query, "โทระโดระ") ;GUICtrlRead($BookName)
    _IEFormSubmit($Form)

    IE9 Windows 7 x64 ครับ

    EDIT: 555 ได้แล้วครับ
    ไปเจอพอดีว่าใช้ <frameset> ในการดึงหน้า [You must be registered and logged in to see this link.] มาแสดง
    แก้โค้ดๆ :P

    Code:
    #include <IE.au3>
    $Book = InputBox("หนังสือ", "พิมพ์ชื่อหนังสือที่ต้องการหา")
    If $Book <> "" Then
       $IE = _IECreate("http://www.weloveshopping.com/template/e5/shop.php?shopid=299339")
       _IELoadWait($IE)
       $Form = _IEFormGetObjByName($IE, "frm1")
       $Query = _IEFormElementGetObjByName($Form, "keyword")
       _IEFormElementSetValue($Query, $Book)
       _IEFormSubmit($Form)
    EndIf
    em233 ชินจัง ช่วยดูโค้ดหน่อยครับ 2432060446

      เวลาขณะนี้ 19/05/24, 09:33 pm