AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Embed an Internet Explorer control in your AHK Gui
Goto page Previous  1, 2
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
i3egohan



Joined: 18 Jul 2006
Posts: 401

PostPosted: Sun Jan 28, 2007 6:51 pm    Post subject: Reply with quote

Thanks Very much, Keep it up

im about to use it now but by looking at previous posts i can rely on this being perfect
Back to top
View user's profile Send private message
BoBo
Guest





PostPosted: Sun Jan 28, 2007 11:47 pm    Post subject: Reply with quote

[Flash Video Player]+[Flash MP3 Player]=[Flash Media Player] Very Happy
Just in case somebody wants to play ... [Samples]
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10667

PostPosted: Tue Jan 30, 2007 10:22 pm    Post subject: Reply with quote

Great work on this.

A minor suggestion: It might attract more attention if you copy some of the material from your "about.htm" file into the top post of this topic. Otherwise, people have to download the package, extract it, and locate the about.htm file to get a good introduction.

Also, if/when you get to the point where you think it would be useful enough for the general public, I can link to it from the GUI section of the documentation.

Thanks.
Back to top
View user's profile Send private message Send e-mail
daonlyfreez



Joined: 16 Mar 2005
Posts: 841
Location: Berlin

PostPosted: Tue Jan 30, 2007 10:44 pm    Post subject: Reply with quote

Thanks!

I'll try to 'finish' it off soon. I'll edit the first post to include some of the about file, not all, that would be too much.
_________________
My AHK stuff on ahk.net / on DropBox (mirror) / @home (if online)
Back to top
View user's profile Send private message
NiJo



Joined: 12 Nov 2005
Posts: 73

PostPosted: Fri Feb 02, 2007 2:12 am    Post subject: Reply with quote

Great Script. Right what I need!

daonlyfreez, I think the " Gui_IEGetStatusText() " function is not working correctly.
It's allways geting the same as Gui_IEGetTitle(), and not the Status Text.

I tried some things, and I saw no way of getting the status. ( It is the best way to see if a page already finished loading, right? )

And another thing, I was interested in parcing the html Source of the page, searching for Strings I need. What is the best and quickest way? Will exist a function for it, or I have to save the page and parse it as text?

And another thing, Deactivating the "Show Images" in IE Options, Makes the IE not to Download them? I just want the browser to load faster.

Thanks a lot Wink
Back to top
View user's profile Send private message
n-l-i-d
Guest





PostPosted: Wed Feb 14, 2007 12:37 am    Post subject: Reply with quote

Sorry it took so long to reply.

You found the same problems I encountered. Maybe I'm doing something wrong with the DLLCall...

The source could be obtained via JavaScript, the StatusText too.

The "Show Images" option. I'm quite sure IE downloads them regardless of that setting. You could take a look yourself. Set IE to hide the images, close IE, open the Temporary Files folder of your IE instance, sort on Modified Date, open IE again, open a page with images, check the folder for new images...

Wink
Back to top
daonlyfreez



Joined: 16 Mar 2005
Posts: 841
Location: Berlin

PostPosted: Sat Feb 17, 2007 11:24 pm    Post subject: Reply with quote

I almost missed this posting, where Sean (our new Shimanov?) demonstrates incorporating an IE control with COM/OLE, no cwebpage.dll/lbbrowse3.dll needed! Cool

This is definately a step forward, but also a step into a level of coding I cannot hold up with anymore Razz

I found these links on the subject:

PowerBasic forum - Code and constants

MSHTML Hosting - Odds & Ends Cool

Quote:
In this post I wanted to cover some miscellaneous things you may want to do with your embedded WebBrowser. On its own, the IWebBrowser2 interface does not support doing much more than we already covered in previous posts. However, if you start using the MSHTML DOM interfaces, much more functionality is available. Here is a list of simple things you can implement without too much difficulty:

Retrieving HTML from the WebBrowser.
Retrieving the HTML of the current selection.
Finding text in the HTML and selecting it.
Creating an image of the current HTML.


He has more code on his blog...

French PureBasic forum - Google Cache (make it transparent, so it could be used to add animated gif or flash to an AHK Gui seamlessly)

Flash GUI for your exe using minimalistic approach
Transparent Flash Control in plain C++
PureBasic forum - Embedded Flash ActiveX

But, ok, the Internet Explorer container first. Sofar, I could not improve Sean's code any more than adding a few constants, for GoSearch and GoHome Confused

So, I hope Sean finds time, or others might be able to implement more control over the IEcontrol, and - hopefully - full interaction with the DOM.
_________________
My AHK stuff on ahk.net / on DropBox (mirror) / @home (if online)
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2222

PostPosted: Sun Feb 18, 2007 1:11 pm    Post subject: Reply with quote

I think your script is just great as it is. So, the only things to be done may be replacing the functions dependent on lbbrowse3.dll with COM methods as possible as we can. I may try it myself next weekend, or assist you to do it.
Back to top
View user's profile Send private message
daonlyfreez



Joined: 16 Mar 2005
Posts: 841
Location: Berlin

PostPosted: Thu Feb 22, 2007 10:09 pm    Post subject: Reply with quote

Great! Tho I haven't found the time yet to experiment more...

I found this: Greenbrowser (Source at SourceForge), an IE-based browser (like Maxthon, Avant Browser, Crazy Browser etcet.), with source Cool

The source reveils a lot about the COM/OLE internals, and seems very suited to learn how to create a library for use with AHK. Cool

However, I did started thinking about alternatives, also because of these new COM/OLE possibilities...

Summary:

Quote:
Portable browsers and possible browser controls for AHK Gui's

Wikipedia - List of web browsers

*** Internet Explorer 4+

Pro's:
+ Is already installed on most Windows OSs.
+ Is already required for many functions of AHK (IE 3+/4+).
+ Can already be added to AHK Gui with cwebpage.dll/lbbrowse3.dll or OLE/COM

Contra's:
- Using Internet Explorer means being vulnerable to exploits.
- Not portable, not everybody has Internet Explorer installed.
- Not portable, user settings can only be fully changed with Administrator priviledges.
- Not portable, user traces can only be fully erased with Administrator priviledges.

*** Mozilla ActiveX Control - 12,5 MB

Pro's:
+ Portable
+ Should be possible to add to AHK Gui with OLE/COM

Contra's:
- Unknown

*** QHTM Control - Non-commercial - 500 k

Pro's:
+ Tiny
+ Portable
+ Can be added to AHK Gui

Contra's:

- Limited to simple HTML or own syntax, more like an advanced RichEdit control

*** Opera Portable - 8 MB (Including Flash 9, 6 MB without)

Pro's:

+ Small
+ Portable

Contra's:
- Cannot directly be added to an AHK Gui as control

*** Firefox Portable - 29 MB

Pro's:

+ Portable

Contra's:
- Huge
- Cannot directly be added to an AHK Gui as control


What do y'all think?

What should become the preferred way of adding a browser control to an AHK Gui?

Are there possibilities I missed?

Smile
_________________
My AHK stuff on ahk.net / on DropBox (mirror) / @home (if online)
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 4116
Location: Belgrade

PostPosted: Thu Feb 22, 2007 11:19 pm    Post subject: Reply with quote

Either QHTM Control but this one maybe be harder to use cuz it is done using MFC, or IE, I don't see other possibilities...

QHTM is very small and nice and can not be exploited, on the other hand...
_________________
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 2222

PostPosted: Fri Feb 23, 2007 2:22 am    Post subject: Reply with quote

daonlyfreez wrote:
However, I did started thinking about alternatives, also because of these new COM/OLE possibilities...

Summary:

Let me take a look at them a while. Thanks.

Note from moderator: At Sean's request, his COM version of the Internet Explorer control has been moved to a new topic: http://www.autohotkey.com/forum/viewtopic.php?t=19225
Back to top
View user's profile Send private message
Guest






PostPosted: Sun May 18, 2008 2:06 am    Post subject: Reply with quote

hi guys,

I can't download the file(http://www.daonlyfreez.net/scripting/IE4AHK.zip).

could anyone can upload it to easy-share.com for me?

thx
Back to top
n-l-i-d
Guest





PostPosted: Sun May 18, 2008 12:29 pm    Post subject: Reply with quote

Yes, I'm down Crying or Very sad

But, this is deprecated anyway, use the mentioned script here instead: Embed an Internet Explorer control in your AHK Gui via COM
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group