I couldn't figure this out, so I thought I'd ask chatGPT about it.
While it does not work, I was impressed that it gave it a shot!
----------------------------
Me:> in winbatch how would you load an iframe into a dialogbox
----------------------------
In WinBatch, you can load an iframe into a dialog box using the CreateDialog function to create the dialog box, and the HtmlControlLoad function to load the iframe into an HTML control. Here's an example code:
; Define the dimensions of the iframe
nWidth = 500
nHeight = 300
; Create the dialog box
hDlg = CreateDialog(0, "Sample Dialog", 0, 0, nWidth, nHeight)
; Create an HTML control for the iframe
hHtml = HtmlControlCreate(hDlg, "Iframe", "", 10, 10, nWidth-20, nHeight-20)
; Load the iframe URL into the HTML control
HtmlControlLoad(hHtml, "https://www.example.com")
; Show the dialog box
DialogShow(hDlg)
-----
In this example, the CreateDialog function creates a dialog box with a title of "Sample Dialog" and the dimensions specified by nWidth and nHeight.
The HtmlControlCreate function creates an HTML control within the dialog box at the specified coordinates (10, 10) and with the dimensions specified by nWidth-20 and nHeight-20 (to leave a margin of 10 pixels on each side).
Finally, the HtmlControlLoad function loads the URL of the iframe into the HTML control, and the DialogShow function shows the dialog box with the loaded iframe.
You can save this code in a file with the extension ".wbt" (for example, "iframe.wbt"), and then run it by double-clicking on the file. This will open a dialog box with the specified iframe URL loaded inside.