[已解决]网页中的图片大小怎么测出来
本帖最后由 yinbinly 于 2011-2-7 16:10 编辑这个图片的大小尺寸怎么测出大小啊 用spx,抓图可以显示尺寸。或者直接截图,用windos画板裁剪后,查看文件的尺寸。
很多方法啊。
你这个图片大约是259x194 ,不包括地址栏,只有天气那一块儿。 不错,支持了。 #include <IE.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>
Opt("GUIOnEventMode", 1)
Opt("MouseCoordMode",2)
Global $oIE = _IECreateEmbedded()
Global $Form = GUICreate("测试", 700, 600, -1, -1, BitOR($GUI_SS_DEFAULT_GUI, $WS_MAXIMIZEBOX, $WS_MAXIMIZE, $WS_SIZEBOX))
GUISetOnEvent($GUI_EVENT_CLOSE, "_DeleteWin")
GUICtrlCreateObj($oIE, 0, 0, @DesktopWidth, @DesktopHeight - 35)
_IENavigate($oIE,"http://www.soso.com/tb.q")
GUISetState()
$Div = _IETagNameGetCollection($oIE,"div",0)
$Left = _IEPropertyGet($Div,"browserx")
$Top = _IEPropertyGet($Div,"browsery")
$Width = _IEPropertyGet($Div,"width")
$Height = _IEPropertyGet($Div,"height")
MouseMove($Left, $Top)
MouseMove($Left + $Width, $Top)
MouseMove($Left+ $Width, $Top + $Height)
MouseMove($Left, $Top + $Height)
MouseMove($Left, $Top)
MouseMove($Left + $Width/2, $Top + $Height/2)
While 1
Sleep(10)
WEnd
Func _DeleteWin()
Exit
EndFunc ;==>_DeleteWin
页:
[1]