Ok so I have this script I did some time ago that was working perfectly fine 1-2 years ago on Internet Explorer however now I am on Windows 11 which has only Edge.
Every time I run this script, it hangs on Busy readystate for no reason. Has anything changed in the implementation? Because I am really confused.
Set IE = createobject("internetexplorer.application")
strURL = "http://www.website.com/"
IE.navigate strURL
IE.Visible = true
Do While (IE.Busy Or IE.ReadyState <> 4)
WScript.Sleep 100
Loop
Edit just to clarify: This script works just fine all the way to checking the ReadyState. It opens Edge, navigates to URL but then it throws an "Unspecified Error" on the line where it checks the ReadyState.
On Windows 10, it worked perfectly fine with IE.
The script presented in the question works correctly in Windows 11 build 22000.348 and above. According to this article, Microsoft "inadvertently broke" IE COM automation in Windows 11, but fixed it via an update released in November 2021. As per that same article: "IE COM objects have been restored to their original functionality and will continue to work after the IE11 desktop application is disabled".
Contrary to popular belief, Internet Explorer is still included in Windows 11 and is fully functional for any scripts that depend on it. All that has changed is that IE is not available as a default browser and running iexplore.exe in the usual ways, such as double-clicking, redirects to Edge. The following three line script will continue to launch IE in Windows 11 (and Windows 10 after June 15, 2022):
Set oIE = CreateObject("InternetExplorer.Application")
oIE.Visible = True
oIE.Navigate "duckduckgo.com" 'put your URL of choice here
Related
Operating System: Linux TLXOS
Available Browsers: Chromium and Microsoft Edge
I am trying to set up a terminal where my my colleagues can log in and browse in our intranet. The goal is to get a browser that opens in kiosk mode and closes itself if the user has not made any entries for a while.
Currently the browser successfully starts in kiosk and incognito mode and it opens our startpage. So far so good, but what I am missing is something like a timeout that just closes the browser after a certain amount of time, because this terminal shall be placed in a public area.
Actually I have to ways to edit the Command Line Args:
directly on the Intel Nuc in the browser properties
remotly in the TMS Management Software of TLXOS (opens the browser after it gets closed)
Besides Chromium I also tried Microsoft Edge, because I thought I had found a well solution (that was just for Edge), but in the end the output is the same, I still miss a timeout that closes the browser. These are my current Command Arguments/Switches:
(Chromium)
usr/bin/chromium --incognito --kiosk https://stackoverflow.com --user-response-timeout=1
(Microsoft Edge)
usr/bin/microsoft-edge --kiosk https://stackoverflow.com --edge-kiosk-type=fullscreen --kiosk-idle-timeout-minutes=1
I have a Windows 7 machine with IE11. For some reason the caching feature does not seem to be working. e.g. when I refresh pages I noticed that the js, css and other files are not being cached. In Internet Options - General - Settings, the 'Check for newer versions of stored pages' is set to 'Automatically'.
If I access the same (or any other application) on a Windows 10 machine with IE11 the caching works.
Any idea why caching is not working in IE11 on Windows 7?
Thanks.
I try to make a test with Windows 7 and IE 11.
I clear the temporary data first and then try to visit several sites in IE 11.
Open the folder which stores temporary data. You can see new files.
If that folder was already opened then refresh it.
It will show you a new files.
Try to make a test on your side and let us know about your testing result.
I've got what seems to be a small problem but am pretty stuck at the moment.
I have developed a tool a while ago, that is used to change settings of the Ewf on Win 7 embedded.
The main functionality of the tool was to run ewfmngr.exe (commandline) with different commands depending on what the user set in the programs GUI.
This works fine in Win 7, but for Win 10, nothing happens.
I do not get any errors, when debugging, all methods return values indicating, everything should have worked.
However the settings are not applied.
When I type the commands directly into the command line everything works as it should.
My application was always started with "run as administrator".
What did they change from Win10 to Win7, that causes this problems and what can I do against it?
For the last week or so I've been developing an application to programmatically maintain some stuff online, to do so I need to launch iMacros from Firefox via Python.
Currently I am doing that in Python with this code, it has worked fine for a week:
firefoxpath = '"C:/Program Files (x86)/Mozilla Firefox//firefox.exe"'
macroCommand = firefoxpath + " imacros://run/?m=" + path_to_macro
subprocess.Popen(macroCommand)
There is some other stuff that cleans up processes in there and listens for errors too, but all that really matters right now is launching the macros
Today, after this worked for several hours of coding. I started getting this popup when attempting to launch via Python. (It's the popup Firefox gives when it doesn't know how to handle a file or URL).
Launch Application Popup:
It would seem that Firefox no longer thinks it can launch imacros files directly. However, the files play just find if you click "play" in the iMacros panel.
I've been troubleshooting for an hour and it doesn't seem like anyone online has had this problem before. Any ideas?
UPDATE:
I managed to get this working by completely reinstalling windows on the problem machine. Before doing that, I reinstalled firefox a number of times, tried a portable copy of firefox, deleted firefox's registry entries, disabled multi-process windows in FF, uninstalled all plugins one by one, and tried the same thing as a different user (both with and without admin).
None of that worked, if anyone in the future encounters this bug I recommend just reinstalling windows on the problem machine.
I was using
Windows 10
Firefox 54
iMacros for FF 9.0.3
Python 2.7
God speed to anyone else who encounters this.
I need to open and IE page from a VBScript that is run by a batch file in Windows 8 app mode, not desktop mode. This is so that users can use the swipe feature between IE and the desktop on a tablet. Any suggestions on how to do this?
This is a bit of code that will open IE and go to the URL:
Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
urlLine = "https://www.google.com/"
IE.Navigate urlLine
IE.Visible = True
I have tried setting the default browser and settings to Metro mode, but it still opens in desktop mode.
You can read IE Command-Line Options, then you can use:
Set oWSH = CreateObject("WScript.Shell")
oWSH.Run "iexplore.exe -k http://www.myweb.com"