- 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