Jump to content

ie.au3 --> how long will it be supported by windows - (Moved)


 Share

Go to solution Solved by junkew,

Recommended Posts

Hi,

i want to use the following code for i project but wonder, if it will work in future versions of windows as internet explorer is discontinued (because of edge):
 

#include <GUIConstants.au3> ;Makes the gui possible

#Include <ie.au3> ;Makes browsing the internet possible

Global $ini = @ScriptDir & "\swb.ini" ;INI To Store Last WEBSITE Visited

$Form1 = GUICreate("Simple Web Browser MINI Version", 628, 436, 193, 115) ;Creates the GUI

$Obj1 = ObjCreate("Shell.Explorer.2") ;Creates the Internet Explorer Object

$Obj1_ctrl = GUICtrlCreateObj($Obj1, 0, 0, 626, 412) ;Set Object on the GUI

$Button1 = GUICtrlCreateButton("URL", 0, 416, 627, 17, 0) ;Makes the Browse URL Button

GUICtrlSetFont(-1, 10, 800, 0, "Arial Black") ;Sets the Font of the Button5

$iniread = iniread($ini, "URL", "LAST URL", "");Reads the ini so it can navigate to the last URL

If $iniread = "" Then ;If the ini doesnt have a previous saved url then write the default as google.com

iniwrite($ini, "URL", "LAST URL", "www.google.com") ;Writes google into the homepage

endif

$iniread1 = iniread($ini, "URL", "LAST URL", "");Reads the ini so it can navigate to the last URL

_IENavigate($Obj1, ""&$iniread1&"") ;Before the GUI is shown, browse to google. Sorta like a homepage

GUISetState(@SW_SHOW) ;Shows the GUI

While 1 ;Creates a loop to capture the GUI Messages like close and the url button

$update = _IEPropertyGet($Obj1, "locationurl") ;Gets the URL from internet explorer

IniWrite($ini, "URL", "LAST URL", $update) ;Writes the URL to the ini to navigate on startup

$nMsg = GUIGetMsg() ;Gets the Message

Switch $nMsg

Case $GUI_EVENT_CLOSE ;If you pressed the close button

Exit ;It will exit

Case $Button1 ;If you pressed the URL Button

$URL = InputBox("SWBmini", "Type in the url you wish to go to:") ;Asks what url you want to go to

_IENavigate($Obj1, $URL) ;Navigate to the URL. This is what requires the IE.au3 at the top

EndSwitch

WEnd ;This ends the loop

 

Will this stop working in the next windows release?

If yes: Is there a way to get something similar with edge or firefox?
I just want a browser in a separate, small window (not in the browser itself).

 

Best wishes

Daniel

Link to comment
Share on other sites

  • Developers

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

Moderation Team

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Solution

yes, most likely that will not work anymore

This comes closest I think but not sure if that was fully finished

But you can also look at the webdriver concept

https://github.com/Danp2/WebDriver/releases/tag/0.4.1.2

 

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...