Jump to content

Can't open/load this website properly using ObjCreate("Shell.Explorer.2") command - (Moved)


sifatoni
 Share

Recommended Posts

Hi,
I'm new to this forum as well as in this community. I don't know a lot about programming, So I wanted to make a simple script that can run this website (https://jeanropke.github.io/RDR2CollectorsMap/) in ObjCreate("Shell.Explorer.2"). But unfortunately this page can't load properly. Can anyone help me please? Here's my script
 

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

Opt('MustDeclareVars', 1)

Example()

Func Example()
    Local $oIE, $GUIActiveX
    Local $msg

    $oIE = ObjCreate("Shell.Explorer.2")


    GUICreate("Red Dead Online Map", @DesktopWidth, @DesktopHeight, 0, 0, BitOR($WS_POPUP, $WS_EX_TOPMOST, $WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS, $WS_CLIPCHILDREN))
    $GUIActiveX = GUICtrlCreateObj ($oIE, 0, 0, @DesktopWidth, @DesktopHeight)


    GUISetState()

    $oIE.navigate("https://jeanropke.github.io/RDR2CollectorsMap/")


    While 1
        $msg = GUIGetMsg()

        Select
            Case $msg = $GUI_EVENT_CLOSE
                ExitLoop

        EndSelect

    WEnd

    GUIDelete()
EndFunc

 

Link to comment
Share on other sites

I would suggest using the IE.au3 include file and _IECreateEmbedded() instead of ObjCreate("Shell.Explorer.2"). Shell.Explorer.2 creates an older version of IE if I understand correctly :)

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

Oh. So I see. Ignore me slinking off then :D

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

Spoiler

My Humble Contributions:
Personal Function Documentation - A personal HelpFile for your functions
Acro.au3 UDF - Automating Acrobat Pro
ToDo Finder - Find #ToDo: lines in your scripts
UI-SimpleWrappers UDF - Use UI Automation more Simply-er
KeePass UDF - Automate KeePass, a password manager
InputBoxes - Simple Input boxes for various variable types

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...