GetDialogProperty not working for HTML

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 1024
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

GetDialogProperty not working for HTML

Post by Grovkillen » Fri Mar 08, 2024 7:36 am

As shown in this example. The GetDialogProperty>Dialog1,MSHTMLViewer1,HTML,TEMP_html will return an empty variable.

Code: Select all

Dialog>Dialog1
object Dialog1: TForm
  Left = 251
  Top = -1096
  HelpContext = 5000
  BorderIcons = [biSystemMenu]
  Caption = 'CustomDialog'
  ClientHeight = 211
  ClientWidth = 476
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'MS Sans Serif'
  Font.Style = []
  OldCreateOrder = True
  ShowHint = True
  OnTaskBar = False
  PixelsPerInch = 96
  TextHeight = 13
  object MSHTMLViewer1: tMSHTMLViewer
    Left = 27
    Top = 20
    Width = 414
    TabOrder = 8
    BorderStyle = htFocused
    DefFontName = 'Times New Roman'
    DefPreFontName = 'Courier New'
    HistoryMaxCount = 0
    NoSelect = False
    PrintMarginBottom = 2.000000000000000000
    PrintMarginLeft = 2.000000000000000000
    PrintMarginRight = 2.000000000000000000
    PrintMarginTop = 2.000000000000000000
    PrintScale = 1.000000000000000000
  end
end
EndDialog>Dialog1

SetDialogProperty>Dialog1,MSHTMLViewer1,HTML,<b>test</b>

Show>Dialog1

Wait>1
GetDialogProperty>Dialog1,MSHTMLViewer1,HTML,TEMP_html

MDL>TEMP_html
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1354
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: GetDialogProperty not working for HTML

Post by Dorian (MJT support) » Fri Mar 08, 2024 1:57 pm

Passed to dev, confirmed as bug, fixed in dev.
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 1024
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: GetDialogProperty not working for HTML

Post by Grovkillen » Fri Mar 08, 2024 1:58 pm

Thanks for the feedback.
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts