xsjtxy 发表于 2024-11-12 12:53:10

求教,为什么我的网页显示不完整[已解决]

本帖最后由 xsjtxy 于 2024-11-13 17:48 编辑

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <IE.au3>



Local $oIE = _IECreateEmbedded()
GUICreate("", 840, 600)
GUICtrlCreateObj($oIE, 10, 40, 820, 500)


GUISetState() ;显示GUI

_IENavigate($oIE, "https://gushitong.baidu.com/index/ab-000001")

; 等待用户关闭窗口
While 1
    Local $msg = GUIGetMsg()
    Select
      Case $msg = $GUI_EVENT_CLOSE
            ExitLoop

    EndSelect
WEnd

GUIDelete()

Exit

风过无痕 发表于 2024-11-12 17:25:18

你这是什么系统?XP,WIN7,WIN10,win11?

rdw167 发表于 2024-11-12 22:31:32

用python吧,直接调用api接口      data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEEAAAOOCAIAAADQw+juAAAcOUlEQVR4Ae1dT8slRXfvz5BsA9m93yBZ9CLLfAL3yao/xsuA8AoxOu0wzEgks3Ejyiw00NmELAajIEEkkIdAo650MzqjPowPvJsbT/05fepPd1dXV52+LecyeKurTlX9/pyqvs/1dndzd/fxa03T/OG1j//vrtLr119/vbu7+/bbbz/55JOHDx++8847b7755vvvv//ll1/unPHnn3/+5Zdfmp2jrHbXBL744ot33333yZMnDx8+fPLkyaNHj+7fv//2229/9NFHr1690jGrQ4UBhkNDX3/4pzBuT82rV6/u7u6+/vrrR48ePXjw4NNPP33x4sXd3d3t7e1XX311//79t956axiGu7u7PBocPmhkH3744XvvvffZZ595cnzzzTdvvPHGvXv3vv/++zwa1ofXPvaGLnv4448/Pnjw4NGjR7e3t7+qlx5fW/TBBx+8/vrrn3/++S4OekmnE7lc08vJJbU3NU0ClWuicHE4pOePcCisgPhQWNDM4cSHTOGgW9M0O3o7XQ/zQTiID/o86OiQdSC55Mhm1vSrtBd+5HTGyDqgf7BgOWsk+3np+eLrhx9+ePHixcuXL3/66afb29tXr17lTUZ7lc+lv/ibPy3/+6u/e/Pv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EhT7fSvcSH0ormjSc+5OlWupf4UFrRvPHEhzzdSvcSH7Yoav98WHrfMt4Ue5gP2U/dmLDbknCwSmS8iw+OaEy5tLSQ3TYHXdoBEwcPTMFEqvD7Vg/szKHmUIrJkT6cmANCx8KMW6nVB/iA0LGQCnYmjpsDxU3LGl5YMwPbqebjoLdQOnmIOKyh8XNlDg4hekTjnhvgCJvSCxwc0tHkRQqHPN1K9xIfSiuaN574kKdb6V7iQ2lF88YTH/J0K91LfCitaN54xoe8zlfSSzhchxHig/hQSgHJpVJK7htHfNinX6ne4kMpJfeNIz7s069Ub/GhlJL7xhEf9ulXqrf4UErJfeOID/v0K9V7rw/ffffd7e3t3aEv4XC5iA9lUlBy6fedS/9T4TWXeTqX/h9eljvOLNn6pwAAAABJRU5ErkJggg==    我设置的竖屏显示.   ,实时更新的 ,exe 文件 超过20M上传不上来,自己下载源码.

rdw167 发表于 2024-11-12 22:49:32


#include <WinAPI.au3>
#include <WindowsConstants.au3>
#include <GUIConstantsEx.au3>

; 创建 GUI 窗口
$hGUI = GUICreate("嵌入 Edge 浏览器窗口", 1024, 768, -1, -1, BitOR($WS_OVERLAPPEDWINDOW, $WS_VISIBLE))

; Edge 浏览器路径
Local $sEdgePath = '"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"'

; 启动 Edge 浏览器,打开指定网页,以应用模式启动,窗口最小化
Run($sEdgePath & ' --app="https://gushitong.baidu.com/index/ab-000001"', "", @SW_HIDE)

; 等待浏览器进程启动
Sleep(2000)

; 获取 Edge 浏览器窗口句柄
Local $hEdge
For $i = 1 To 50
    $hEdge = WinGetHandle("", "")
    If $hEdge Then ExitLoop
    Sleep(100)
Next

If Not $hEdge Then
    MsgBox(16, "错误", "未能获取 Edge 浏览器窗口句柄")
    Exit
EndIf

; 隐藏浏览器窗口,确保在嵌入前不显示
WinSetState($hEdge, "", @SW_HIDE)

; 将浏览器窗口嵌入到 GUI 窗口中
_WinAPI_SetParent($hEdge, $hGUI)

; 去掉浏览器窗口的边框和标题栏
Local $iStyle = _WinAPI_GetWindowLong($hEdge, $GWL_STYLE)
_WinAPI_SetWindowLong($hEdge, $GWL_STYLE, BitAND($iStyle, BitNOT($WS_CAPTION + $WS_THICKFRAME)))

; 调整浏览器窗口大小
WinMove($hEdge, "", 0, 0, 1024, 768)

; 显示嵌入后的浏览器窗口
WinSetState($hEdge, "", @SW_SHOW)

; 显示 GUI 窗口
GUISetState(@SW_SHOW, $hGUI)

; 主事件循环
While True
    Switch GUIGetMsg()
      Case $GUI_EVENT_CLOSE
            ExitLoop
      Case $GUI_EVENT_RESIZED
            ; 调整浏览器窗口大小
            Local $aSize = WinGetClientSize($hGUI)
            WinMove($hEdge, "", 0, 0, $aSize, $aSize)
    EndSwitch
WEnd

; 关闭浏览器窗口
WinClose($hEdge)

; 关闭 GUI 窗口
GUIDelete($hGUI)



Exit

xsjtxy 发表于 2024-11-13 17:42:58

rdw167 发表于 2024-11-12 22:49
#include
#include
#include


66666666666666666666
页: [1]
查看完整版本: 求教,为什么我的网页显示不完整[已解决]