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"
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
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
I've tried a lot of variations on windows shortcuts for Chrome to launch fullscreen kiosk mode in a specific monitor for desktops with none of them working with all the options at once.
Variations attempted:
"local path\Google\Chrome\Application\chrome.exe" --window-position=0,0 -kiosk -new-window url
"local path\Google\Chrome\Application\chrome.exe" --start-fullscreen -new-window --window-position=0,0 url
chrome -kiosk -new-window --window-position=0,0 --app=url
chrome --start-fullscreen -new-window --windowposition=0,0 --app=url
just to help out any new users trying to replicate replace "local path" in the above with the directory path that gets you to the google chrome.exe application in your system. Also replace "url" with the full link to the page you want to load in chrome at launch. Right now all of the attempts have either kiosk fullscreen or location but not all in one working.
With some other help found a solution that works for me on all aspects in windows 10.
"local path\Google\Chrome\Application\chrome.exe" --app="url" --window-position=1024,0 --kiosk --user-data-dir=c:/monitor2
Just use the maximum display area of your monitor to set window position. In this case Im launching on second monitor and primary is 1024 resolution.
I want to open the Camera Roll folder when I plug in my Windows 8 Phone to my Windows 7 Pro 64bit desktop PC. I can drill down to the folder but 5 folders deep its annoying each time. I am hoping to use this script to do that but it does not work. I am not referring to the Phone correctly or something.
dim objShell
set objShell = CreateObject("shell.application")
objShell.Open("C:\Users\Doug\Desktop\Camera Dump")
objShell.Open("DougWin8Phone\Phone\Pictures\Camera Roll")
objshell.TileVertically
set objShell = nothing
we have requirement of always opening website in IE8 browser mode (not IE8 document mode) i.e if default browser is IE10 our site should open in IE78 browser mode. I tried this code;
Response.AddHeader("X-UA-Compatible", "IE=8");
in global.asax file but it seems to change browser document mode and not browser mode. Can we change it using vbscript because we have a plugin written in vbscript that changes some of the settings of IE ?
Thanks
Here is the relationship:
Creator Created
server document
users browser
Servers can control the document mode via scripts, because they host documents.
Users can control the browser mode via the registry, because they install the browser.
References
How to enable Developer Tools always ON in IE
Is there a way to set Quirks Mode by default in IE10 running 64bit
Can I force IE9 *from the user side* to operate in quirks/standards mode?