I'm making yet another web-based desktop client, and I was curious if the StatusBar could be hidden. The StatusBar is the tooltip-like notification that shows up on the bottom-[left/right] of the browsing window that shows URL's when you hover over links. Most browsers also show loading info there, not sure if IE does or not. I'd prefer it to not be a global effect, or at least something that can be changed back easily enough if it has to be. Preferably, it could be set to affect only the COM obj, either directly through the object, hwnd, or whatever ID it needs. IE_Object.StatusBar:=0 won't work, as explicitly stated by MSDN: "The WebBrowser object saves the value of this property, but otherwise ignores it." IE_Object.StatusText also isn't valid: "The WebBrowser object returns an error from this property." Based on that.. why is it even a property?
I'm also aware this use to be an option to set via JavaScript, but was removed due to security issues, which led to it's current implementation. I'm not trying to hide it per-page, but just in the whole browser, and just for the one window/parent process.
Anyone have any ideas or solutions?
Hide IE COM StatusBar
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: Hide IE COM StatusBar
I am sure i got statusbar to work in the past are you sure?
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: Hide IE COM StatusBar
Quite sure. How long in the past was it? Because I do believe it did use to work, but then I think they removed it. I can't post the code due to the address being unavailable to you (local), but I can make an example.
I'm aware my class is a little messy.. I should really clean it up a bit.
Code: Select all
#singleInstance force
#persistent
#include *i <Lib_1>
#include <IEObj> ; https://github.com/Masonjar13/AHK-Library/blob/master/Lib/IEObj.ahk
url:="https://google.com"
setWinDelay,0,0
tooltip,Loading..
wb:=new IEObj
wb.init2()
gui,+hwndghwnd +resize
xhwnd:=wb.wb.hwnd
setParentByHwnd(xhwnd,ghwnd)
wb.wb.fullscreen:=1
wb.wb.statusBar:=0 ; <=
wb.navToUrl(url)
winMove,% "ahk_id " . xhwnd,,0,0,500,500
tooltip
wb.wb.visible:=1
gui,show,w500 h500
return
guiClose:
gui,cancel
exitApp
guiSize:
winMove,% "ahk_id " . xhwnd,,0,0,a_guiWidth,a_guiHeight
return
setParentByHwnd(child,parent){
dllCall("SetParent","ptr",child,"ptr",parent)
}
Re: Hide IE COM StatusBar
why wb.wb? that wouldnt work that way anyway?
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: Hide IE COM StatusBar
It's how I have IEObj set up. this.wb is the actual COM object, therefore wb.wb is direct access to the object externally.
Re: Hide IE COM StatusBar
I know absolutely nothing about IE and the myriad of COM-accessible interfaces it has, but apparently, if you show a webpage through Shell.Explorer, it doesn't do what you're talking about:
Code: Select all
Gui Add, ActiveX, w640 h480 vwb, Shell.Explorer
wb.Navigate("www.google.com")
Gui Show, w640 h480
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: Hide IE COM StatusBar
That is true, it doesn't. But it also doesn't have a complete webkit, so many features (not sure which exactly) don't work. In this specific case, it doesn't work. Not sure which feature is being relied upon that isn't there, however, I don't believe it matters; I don't believe you can inject the missing features.
Re: Hide IE COM StatusBar
Still works in windows 10
wait are you doing this in IE or a gui?
wait are you doing this in IE or a gui?
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
Re: Hide IE COM StatusBar
then why isnt navigate wb.wb
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: Hide IE COM StatusBar
It is, kind of. I don't directly reference the navigation, I built a method for navigating and waiting for it to finish loading.
It's an instance of IE that's parented by a GUI.
What version is IE on W10? I'm working with 11.0.9600.18697.
It's an instance of IE that's parented by a GUI.
What version is IE on W10? I'm working with 11.0.9600.18697.
Re: Hide IE COM StatusBar
From what I recall reading from posts in the past, you're meant to add some stuff for the full functionality: https://autohotkey.com/boards/viewtopic ... 409#p67409Masonjar13 wrote:That is true, it doesn't. But it also doesn't have a complete webkit, so many features (not sure which exactly) don't work. In this specific case, it doesn't work. Not sure which feature is being relied upon that isn't there, however, I don't believe it matters; I don't believe you can inject the missing features.
But I do have to say that with your way, IE obeys its protected mode setting: IE itself scares me. IE without even the basic protections it has me shivering. Anyway.
The only way I found to do what you were asking for was to close all windows of ahk_class tooltips_class32 inside the iexplore.exe instance your code starts up. (This is on Windows 10.) Not ideal, but judging from the text you quoted from MSDN, it seems Microsoft intentionally broke the ability to do it properly. But given my limited knowledge on this topic, the tooltips class hack is the best I can suggest, sorry.
Re: Hide IE COM StatusBar
11.483.15063.0
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: Hide IE COM StatusBar
I don't see any updates for IE, so I'm going to assume I can't update to that version from W7. But you're saying that simply setting StatusBar:=0 works for you?
@qwerty12, well I'll be.. The closure of the class windows didn't work, but I grabbed FixIE() from that thread, works like a charm! Quite better, in fact, than anything else I've been doing. Based on how these clients work, protection isn't something I'm concerned about.
But, are add-ons loaded? Or, can they be loaded in manually? This is quite important for most of my clients.
Edit: tested, and they certainly don't load by default.
@qwerty12, well I'll be.. The closure of the class windows didn't work, but I grabbed FixIE() from that thread, works like a charm! Quite better, in fact, than anything else I've been doing. Based on how these clients work, protection isn't something I'm concerned about.
But, are add-ons loaded? Or, can they be loaded in manually? This is quite important for most of my clients.
Edit: tested, and they certainly don't load by default.
Re: Hide IE COM StatusBar
well i use the word FALSE but yea. directly setting it alters if the statusbar is visible. back when i did it before was all windows 7 devices so it should work fine.
We are troubled on every side‚ yet not distressed; we are perplexed‚
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
but not in despair; Persecuted‚ but not forsaken; cast down‚ but not destroyed;
Telegram is the best way to reach me
https://t.me/ttnnkkrr
If you have forum suggestions please submit a
Check Out WebWriter
Re: Hide IE COM StatusBar
Sorry, I didn't actually test doing that from AutoHotkey; rather, I just used Process Hacker's window thingy to do it. (Also, come to think of it, I think DetectHiddenWindows needs to be on.)Masonjar13 wrote:@qwerty12, well I'll be.. The closure of the class windows didn't work
With Shell.Explorer? Probably not, if this needs to be done to ensure scripts can be ran...But, are add-ons loaded? Or, can they be loaded in manually? This is quite important for most of my clients.
Though, I do know CWebView which uses SE, and does the same as Installer.ahk, does appear to load ActiveX plugins.
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: Hide IE COM StatusBar
@tank, not sure then. It's certainly not working on my machine.
@qwerty12, SE? I had to clean several errors, but it seems to be running now (CWebView, that is). Though.. How do I even use it? I don't see any documentation, and it's certainly not straight-forward. Specifically, I have Adblock Plus for IE, and I want that to run for the implementation.
@qwerty12, SE? I had to clean several errors, but it seems to be running now (CWebView, that is). Though.. How do I even use it? I don't see any documentation, and it's certainly not straight-forward. Specifically, I have Adblock Plus for IE, and I want that to run for the implementation.
Re: Hide IE COM StatusBar
I was too lazy to type out "Shell.Explorer" again.
And as for how to use it:
And, no, I don't think BHOs load with CWebView.
And as for how to use it:
Best I got is:qwerty12 wrote:I know absolutely nothing about IE
Code: Select all
Gui, webHost: New
cwv := new CWebView("webHost", "w640 h480")
cwv.SetURL("www.google.com")
Gui, webHost: Show
Re: Hide IE COM StatusBar
Well, that was easy.qwerty12 wrote:And, no, I don't think BHOs load with CWebView.
Code: Select all
Gui, webHost: New
cwv := new CWebView("webHost", "w640 h480")
try if ((BhoAbp := ComObjCreate("{FFCB3198-32F3-4E8B-9539-4324694ED664}", "{FC4801A3-2BA9-11CF-A229-00AA003D7352}"))) {
DllCall(NumGet(NumGet(BhoAbp+0)+3*A_PtrSize), "Ptr", BhoAbp, "Ptr", ComObjValue(cwv.__Ptr))
; For releasing, do the above DllCall again, but pass 0 as the second argument. And then ObjRelease(BhoAbp)
}
cwv.SetURL("http://www.addic7ed.com/")
Gui, webHost: Show
Re: Hide IE COM StatusBar
setting it directly works for me on Win10 with IE version 11.540.15063.0. Though, my statusbar appears to be hidden by default.
Code: Select all
ie := ComObjCreate("InternetExplorer.Application")
ie.visible := True
ie.navigate("www.google.com")
while ie.busy
sleep 50
sleep, 3000
ie.statusbar := false
- Masonjar13
- Posts: 1555
- Joined: 20 Jul 2014, 10:16
- Location: Не Россия
- Contact:
Re: Hide IE COM StatusBar
I came up with a kind of hybrid solution, I'll post it when I can actually write it (no time :/).
Who is online
Users browsing this forum: Xtra and 146 guests