Jump to content

Recommended Posts

Posted (edited)

Hello! _IENavigate is outputting "Vector smash protection is enabled." when I run this script:

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

Global $g_hMainGUI = GUICreate("Test GUI", 500, 300, -1, -1, BitOR($WS_MINIMIZEBOX, $WS_CAPTION, $WS_POPUP, $WS_SYSMENU, $WS_MAXIMIZEBOX, $WS_SIZEBOX))
Global $g_oIE = _IECreateEmbedded()
Global $g_idIE = GUICtrlCreateObj($g_oIE, 0, 0, 500, 300)
GUICtrlSetResizing(-1, $GUI_DOCKAUTO)

_IENavigate($g_oIE, "http://www.coolwidgetsgadgets.com/widgets/elastic-man.swf")
GUISetState()

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
WEnd

_IEQuit($g_oIE)
GUIDelete($g_hMainGUI)
Exit

Is there a way to prevent this? or do I have to do it the hard way (I can't find the code to which does ConsoleWrite())

 

Thanks in Advance! TD :D

Edit: You cannot replicate this in other websites like google.com

Edited by TheDcoder

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted
  On 2/9/2016 at 8:28 AM, JohnOne said:

Probably coming from IE7 embedded object. Does not occur in IE.

Expand  

??? I don't understand :unsure:

Isn't a embedded object same as a tab in IE?

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted

@JohnOne GUI Apps can still output to the StdOut stream:

StdOut Viewer:

#include "ProcessEx.au3"

Global Const $AU3 = @ProgramFilesDir & '\AutoIt3\AutoIt3.exe'

_Process_RunCommand($PROCESS_RUN + $PROCESS_DEBUG, $AU3 & ' "' & @ScriptDir & "\GUI.au3" & '"')

GUI script which outputs to the StdOut stream:

#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_Outfile=GUI.exe
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>

Global $g_hGUI = GUICreate("Test")

Global $g_i = 0

GUISetState()

While 1
    $g_i += 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            ExitLoop
    EndSwitch
    ConsoleWrite($g_i & @CRLF)
WEnd

The StdOut Capture script requires my Process UDF (link in my sig)... It works with GUI script complied as GUI application too!

EasyCodeIt - A cross-platform AutoIt implementation - Fund the development! (GitHub will double your donations for a limited time)

DcodingTheWeb Forum - Follow for updates and Join for discussion

Posted
  On 2/9/2016 at 8:34 AM, TheDcoder said:

I just commented out all the ConsoleWrites in IE.au3 but it is still outputting it :shocked:

Expand  

Such action is pointless. This is not UDF returns this message.


This is the message of an ActiveX control, which transmits the output to the parent process in this case AutoIt.exe
If you run script from SciTE, so  AutoIt forwards the information to the SciTE.

As I understand you would like to lock the AutoIt operation in this regards.

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...