AutoHotkey Community

It is currently May 25th, 2012, 5:03 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 309 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 21  Next
Author Message
 Post subject:
PostPosted: May 15th, 2007, 1:14 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Titan wrote:
The about: URI scheme is an unofficial feature in IE, which ironically dropped support for the more advanced data: standard in v7.

Thanks for the link.
Actually I had hit the page too, but I didn't read it carefully, just scanned the tables about the mention of (Raw) HTML...


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 7:49 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
2freakkk
Yes, that was my thought too. I already told AGU that it can be done on keypress now. About easines, wrappers provide the same easines as integrated controls, at least for me.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 8:34 am 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
Great stuff, but haven't been able to read thru the new posts yet.

I tried adding multiple controls to an AHK-Gui, and succeeded in adding multiple Internet Explorer controls (great for a tabbed-browser), but cannot get the Mozilla ActiveX control to work anymore...

Anybody?

Download (includes Mozilla ActiveX) (~ 6MB zipped)

Run registerMozAx.ahk once, to register the Mozilla ActiveX, then try MultipleBrowserControlTest.ahk.

Image

The first control should be a Mozilla control, the second an Internet Explorer control. But apparently they are both Internet Explorer.

I modified the #include file (Gui_BrwsControl.ahk) to feed it the instance of the control and did some other changes.

Please check what goes wrong.

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Last edited by daonlyfreez on November 2nd, 2008, 2:48 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 1:55 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
daonlyfreez wrote:
The first control should be a Mozilla control, the second an Internet Explorer control. But apparently they are both Internet Explorer.

I don't really want to install ActiveX for Mozilla/Firefox.
Fortunately, however, there is a way to peek into it without actually installing it, thanks to oleview/tlb.
The TypeLib is resident in mozctl.dll, and to my surprise, it just implemented WebBrowser controls provided by MS, i.e., identical to that of IE.
So, there seems to be no reason/benefit to use it over that of IE.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 2:15 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Sean wrote:
Chris, would you split this thread as you suggested?
It has been split. Feel free to edit this new topic's title.

Edit: For reference, the old topic is http://www.autohotkey.com/forum/viewtopic.php?t=15885.


Last edited by Chris on May 15th, 2007, 5:58 pm, edited 1 time in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 2:27 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
Chris wrote:
It has been split. Feel free to edit this new topic's title.

Thanks. BTW, I like the title, very comprehensive.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 2:44 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
I changed the prefix from Gui_IE to IE_.
And, I dropped the last (url) parameter from IE_Add().

BTW, I'd like to hear opinions about whether the variable pwb should be kept as Global or not.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 2:49 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
Quote:
BTW, I'd like to hear opinions about whether the variable pwb should be kept as Global or not.


If possible, it would be good to have as little Global variables as possible. Did you check the code from my multiple browser controls script? I added an index to be able to differentiate between multiple controls. This meant I had to add extra Global vars (pwb1, pwb2, hCtrl1, hCtrl2), which is cumbersome, since adding more controls would require an extra pair of Global vars.

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 2:56 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Sean, drop the global.
You should use handle as a parameter to each function as I did with HiEdit. This allows multiple controls to be created and manipualted.

Quote:
I changed the prefix from Gui_IE to IE_.
And, I dropped the last (url) parameter from IE_Add().

This is good.

I think you should not support Mozilla. FF fans can do it themselves. IE control is not ment to be used as a browser anyway, but as a handy way to represent data using html or visit hardoced pages for script news etc..


Other notes
- Post your control at autothotkey.net and link to it. That way filename will be suggested and you will easier maintain thread starter.

- Instad wrapper, just post current API as I did in the wiki. This allows users to see what's in in consize way, not by reading the control source.

- You can post short example of usage, again, you have it at wiki or you can post more advanced one (or anybody else wiling to do it).

_________________
Image


Last edited by majkinetor on May 15th, 2007, 3:01 pm, edited 3 times in total.

Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 2:59 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
daonlyfreez wrote:
If possible, it would be good to have as little Global variables as possible. Did you check the code from my multiple browser controls script? I added an index to be able to differentiate between multiple controls. This meant I had to add extra Global vars (pwb1, pwb2, hCtrl1, hCtrl2), which is cumbersome, since adding more controls would require an extra pair of Global vars.

Yes, that was the main reason why I was asking. It's cumbersome to use with multiple instances.
And, personally I don't like to have it as global.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 3:04 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
Quote:
I think you should not support Mozilla. FF fans can do it themselves.


Since the Mozilla ActiveX control requires almost if not exactly the same COM code, it would be nice and easy to create the BrowserControlLib to support both. That would prevent reusing existing code for both possibilities (Internet Explorer or Mozilla ActiveX).

I'll continue trying controlling the Mozilla ActiveX. Maybe dealing with multiple controls and prevent the use of Global vars could be handled in the meantime.

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 3:21 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
daonlyfreez wrote:
I'll continue trying controlling the Mozilla ActiveX. Maybe dealing with multiple controls and prevent the use of Global vars could be handled in the meantime.

I can't really tell if it'll solve the issue, but, would you try after replacing

Code:
GUID4String(CLSID_WebBrowser, "{1339B54C-3453-11D2-93B9-000000000000}")
GUID4String(CLSID_WebBrowser, "{8856F961-340A-11D0-A96B-00C04FD705A2}")

to

Code:
CLSID_WebBrowser := "{1339B54C-3453-11D2-93B9-000000000000}"
CLSID_WebBrowser := "{8856F961-340A-11D0-A96B-00C04FD705A2}"


You may replace IID_IWebBrowser2 too like

Code:
IID_IWebBrowser2 := "{D30C1661-CDAF-11D0-8A3E-00C04FC9E26E}"


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 15th, 2007, 6:02 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
daonlyfreez wrote:
Chris, could you move my last comment from the previous thread to the new one too?
I can't move it directly, but I can just quote it here:
daonlyfreez @15 May 2007 09:24 am wrote:
True, the developer created an interface that equals the calling scheme of that of the Internet Explorer control, therefore it should be trivial to use as a possible replacement for Internet Explorer.

The Mozilla ActiveX was only supposed to be an alternative if Internet Explorer is not installed, not as a required download. Yet, still I would like to be able to get it to work :P


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 5:57 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
I updated IEControl.ahk (:this thread) and CoHelper.ahk.
As they're not thoroughly tested, please report back if meets a problem.
Thanks.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 16th, 2007, 8:28 am 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
Great!

Thanks to your instructions, I could get the Mozilla ActiveX to work in the meantime 8)

Will check out your updated code, and adapt mine.

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 309 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 21  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: mrhobbeys and 12 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group