Hi,
Just when I thought I could go away and stop bothering people again, I came across an old problem with my browser program.
The problem is that when I go to open a link to another site (pop up window) - my browser tries to display it in IE.
I can work around this by detecting if IE is running and then close it, I then tell my browser to open a second copy of itself and display the new page.
It's obviously a problem in my browser.
Interestingly enough, the Browser_test example does the same thing - opens IE
However, the Browser_test2 example does what it supposed to do work perfectly.
Now, I have used the Browser_test2 example for the basis of my browser and yet it behaves like the Browser_test example, tries to open IE.
Firefox is set as my default browser, and my browser also does this on my laptop as well.
So I have to currently use:
CASE @IDNEWWINDOW3
nw = nw + 1
IF nw > 1
STARTTIMER *pFirstWindow.win,250,9902 'Stop IE from loading
result = RegSetValue("HKEY_CURRENT_USER\Software\KMSbrowser", link,"secondsite")
wpath = ""
wpath = RegGetValue("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies", "wpath")
wpath = wpath + "kmsbrowser.exe"
SYSTEM wpath
RETURN 0
ENDIF
If I use:
CASE @IDNEWWINDOW3
' @WPARAM=@NWMF_** flags
' @LPARAM=&IDispatch
' to cancel this "popup", execute BROWSECMD .cont, @CANCELNAV
' to continue in a custom window, use the following:
if ((@WPARAM & @NWMF_OVERRIDEKEY) _
or ((@WPARAM & (@NWMF_FIRST_USERINITED|@NWMF_USERINITED)) == (@NWMF_FIRST_USERINITED|@NWMF_USERINITED)))
' allow
p = CreateBrowserWindow()
browser = GETBROWSERINTERFACE(.cont)
browser->AddRef()
*<COMREF>@LPARAM = browser
else
' deny
BROWSECMD (.cont, @CANCELNAV)
' play a sound: "popup blocked"
endif
ENDSELECT
ENDWITH
RETURN 0
ENDSUB
The program stops responding with the following details:
Problem signature:
Problem Event Name: APPCRASH
Application Name: KMSbrowser.exe
Application Version: 0.0.0.0
Application Timestamp: 51e8fd3d
Fault Module Name: OLE32.DLL
Fault Module Version: 6.1.7600.16385
Fault Module Timestamp: 4a5bdac7
Exception Code: c00000fd
Exception Offset: 000be4a1
OS Version: 6.1.7600.2.0.0.256.1
Locale ID: 2057
Additional Information 1: c2e9
Additional Information 2: c2e9598839d74b320c6a443b57ae9f98
Additional Information 3: 68e4
Additional Information 4: 68e498e34f06cbb9e58172c7ad1f4ab1
Has anyone any ideas? - I have the work around but would like to fix this if I can.
Sorry to bother again!
Andy.
Don't have a clue.
All I know is that the IWB browser commands were built for IE
Andy,
Appears you can do it programmatically - http://support.microsoft.com/kb/174156
Brian
Brian,
Thanks I will look at that this weekend, sorry about the arthritic hips and knees - hope i'm not adding to any discomfort :)
I removed (not uninstalled) IE via "Programs and Features" option in control panel.
Now my browser works correctly!
So, I have enabled IE again and took a snapshot of the registry changes which I will look through.
So far, all I can say it's something to do with "HKEY_CLASSES_ROOT" in the registry, and the file associations i.e. for some reason on links / pop ups IE wants to open and display them.
Will keep everyone posted.
Thanks,
Andy.