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 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
daonlyfreez



Joined: 16 Mar 2005
Posts: 745
Location: Berlin

PostPosted: Fri Jan 19, 2007 1:28 pm    Post subject: Embed an Internet Explorer control in your AHK Gui Reply with quote

Deprecated! Use this instead: Embed an Internet Explorer control in your AHK Gui via COM

My homesite is offline atm, sorry.

--------------------------------------------------------------------------------------

Moved from the original thread Embed an HTML control in your own window ... [Dll] on request...

Embed an Internet Explorer control in your AHK Gui

Uses lbbrowse3.dll instead of cwebpage.dll. Download from here (contains all you need).

Thanks:

- Chris for AutoHotkey Cool ++, and the script snippets used
- Alyce Watson for lbbrowse3.dll Cool
- PhiLho, corrupt and majkinetor for their respective snippets


History:

2007-01-21 Maintenance, About
- Second incomplete version
- Updated screenshot
- (Hopefully) fixed all ©®™ legalese...
- Added the first version of the About file
- Added new About menu items

2007-01-19 Maintenance
- Copied the posting in the original thread to a new thread in the AutoHotkey Scripts & Functions forum. requested by Skan

2007-01-18 First release
- First incomplete version
- Used a lot of eye-candy for the Gui (just for looks). This is ofcourse all optional (avi, menu icons, tab icons, button icons).
- Created a custom resize routine to simulate how a browser would resize
- Added tabs, their visibility can be toggled (resize adapts)
- Most lbbrowse3.dll commands added

Wishlist/To do:

- Get element data from page
- Cut/Copy/Paste/SelectAll from menu
- Favorites edit in Tab
- History edit in Tab
- Custom settings in Tab
- etc. etc.




---

More information: (some of the info from about.htm, on request)

- IE4AHK.ahk + inc\Gui_IE.ahk + inc\Gui_IEJS.ahk + res\*.*
These scripts and the resources were created by myself. The graphics are quite ugly, I'm no graphics artist.

I did use some system icons and the four-leaf clover avi I found somewhere, cannot find the source. If you oppose this, please contact me. If MS opposes, I do promote your browser with this project Wink, though I must admit I would trade using it for an alternative at any time.

- lbbrowse3.dll
http://www.alycesrestaurant.com/lbbrowse.htm by Alyce Watson.

Legalese:
"lbbrowse3.dll is copyright Alyce Watson, 2005.

lbbrowse3.dll is freeware. You may use it in any application, including commercial products. A credit to the author and a link to the website must be included in your program's documentation or readme file, and in any source code released to the public.

Use this dll at your own risk. The author bears no responsibility for errors that may occur as the result of its use. You may not reverse-engineer this dll. You may not claim it as your own work.

lbbrowse3.dll requires Internet Explorer version 4 or better."

- inc\Data_Integer.ahk
AutoHotkey Documentation: DLLCall() by Chris.

- inc\Gui_Avi.ahk
http://www.autohotkey.com/forum/topic13588.html by daonlyfreez & PhiLho.
http://www.autohotkey.com/forum/viewtopic.php?p=89418#89418 by PhiLho.

Legalese:
http://en.wikipedia.org/wiki/License_of_zlib/libpng

"Parts by Philippe Lhoste <PhiLho(a)GMX.net> http://Phi.Lho.free.fr
File/Project history:
1.00.000 -- 2006/11/13 (PL) -- Creation.
Copyright notice: For details, see the following file:
http://Phi.Lho.free.fr/softwares/PhiLhoSoft/PhiLhoSoftLicence.txt
This program is distributed under the zlib/libpng license.
Copyright (c) 2006 Philippe Lhoste / PhiLhoSoft"

- inc\Gui_GraphicButton.ahk
http://www.autohotkey.com/forum/topic4047.html by corrupt.

- inc\Gui_GraphicMenu.ahk
http://www.autohotkey.com/forum/topic12412.html by majkinetor.

- inc\Gui_GraphicTab.ahk
http://www.autohotkey.com/forum/topic6060.html by Chris.

- inc\Gui_Tooltip4Controls.ahk
http://www.autohotkey.com/forum/topic10317.html by Chris.

---

IE4AHK was coded by daonlyfreez

... but would not have been possible without the enormous efforts of all involved! A big thanks to you all!

And even better:

Unless otherwise stated, all software contained and mentioned and all scripts are free - open source, freeware or free for personal use...
Why pay? ... Enjoy!
_________________
(sorry, homesite offline atm)


Last edited by daonlyfreez on Sat Jun 07, 2008 6:09 pm; edited 9 times in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Fri Jan 19, 2007 2:00 pm    Post subject: Reply with quote

Very nice.

Excellent programming style, the code is easy to follow.
Thank you for work, I imagine it will be very useful.


btw, where did you find this lib ? Smile
_________________
Back to top
View user's profile Send private message MSN Messenger
daonlyfreez



Joined: 16 Mar 2005
Posts: 745
Location: Berlin

PostPosted: Fri Jan 19, 2007 2:10 pm    Post subject: Reply with quote

Thanks! Cool

majkinetor wrote:
btw, where did you find this lib ? Smile


PhiLho mentioned it in the original thread somewhere. I overlooked it at first too...

Oh, and thank you for the graphic-menu code Wink
_________________
(sorry, homesite offline atm)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Jan 19, 2007 2:12 pm    Post subject: Reply with quote

Google doesn't give so much pages for lbbrowse3 search...
LBBROWSE DLL
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Jan 19, 2007 2:13 pm    Post subject: Reply with quote

daonlyfreez wrote:
PhiLho mentioned it in the original thread somewhere.
Who, me? I completely forgot about it, I suppose I found it with some searches...
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
daonlyfreez



Joined: 16 Mar 2005
Posts: 745
Location: Berlin

PostPosted: Fri Jan 19, 2007 2:23 pm    Post subject: Reply with quote

Yes, you Razz

Found it, it was in another thread, ok: Add an AVI to your AHK Gui - CreateWindow_AVI.ahk [LIB]

Wink
_________________
(sorry, homesite offline atm)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
PhiLho



Joined: 27 Dec 2005
Posts: 6721
Location: France (near Paris)

PostPosted: Fri Jan 19, 2007 2:23 pm    Post subject: Reply with quote

I tested and I am impressed! Small control, good capabilities, the answer to many requests...
The code is small, it is a good demonstration that you can do great things in AHK in a few lines. Good GUI.

I see: All files were stripped of their comments, and variable names were replaced with small names, for speed.
You are free to code the way you want, but frankly I doubt this will gain you anything. After the initial loading and parsing time (which is very small in all cases), AHK will have forgotten all comments, and length of variable names is probably irrelevant to speed.
_________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")
Back to top
View user's profile Send private message Visit poster's website
daonlyfreez



Joined: 16 Mar 2005
Posts: 745
Location: Berlin

PostPosted: Fri Jan 19, 2007 2:27 pm    Post subject: Reply with quote

PhiLho wrote:
I see: All files were stripped of their comments, and variable names were replaced with small names, for speed.
You are free to code the way you want, but frankly I doubt this will gain you anything. After the initial loading and parsing time (which is very small in all cases), AHK will have forgotten all comments, and length of variable names is probably irrelevant to speed.


I see. I didn't know that, I simply assumed less code -> more speed...
_________________
(sorry, homesite offline atm)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
majkinetor !
Guest





PostPosted: Fri Jan 19, 2007 8:28 pm    Post subject: Reply with quote

I sense short code camp again in the background Smile Smile Very Happy
Back to top
jballi



Joined: 01 Oct 2005
Posts: 349
Location: Texas, USA

PostPosted: Sat Jan 20, 2007 2:01 am    Post subject: Reply with quote

This code will serve as an excellent catalyst of ideas for a few minor projects I've been working on. Thanks to all who contributed. Very Happy

Now if we could only put in support for tabbed browsing...
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2397

PostPosted: Sat Jan 20, 2007 8:40 am    Post subject: Reply with quote

Great start and useful code Smile . Thanks for sharing.
Back to top
View user's profile Send private message Visit poster's website
daonlyfreez



Joined: 16 Mar 2005
Posts: 745
Location: Berlin

PostPosted: Sun Jan 21, 2007 12:44 am    Post subject: Reply with quote

Edited, see first posting...
_________________
(sorry, homesite offline atm)
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Jero3n



Joined: 19 Jan 2007
Posts: 151

PostPosted: Sun Jan 21, 2007 9:24 am    Post subject: Reply with quote

nice program daonlyfreez Razz
Back to top
View user's profile Send private message
David Andersen



Joined: 15 Jul 2005
Posts: 85
Location: Denmark

PostPosted: Fri Jan 26, 2007 9:32 am    Post subject: Reply with quote

Very nice daonlyfreez!

I have a small bug to report. The program sometimes does not show the full webpage. This for example happens after I have searched for something on google, I push next 10 results and get to a page like:
http://www.google.dk/search?q=autohotkey&hl=da&pwst=1&start=10&sa=N

What happens is that I can only scroll down a part of the page using the scroll-wheel or the scrollbar. What I have to do to get down to the bottom of the page is to mark the text and move the mouse down to the bottom of the screen while holding down the mouse button, then it suddenly scrolls down the whole length of the page. To push refresh on the page is another work-around...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Thalon



Joined: 12 Jul 2005
Posts: 640

PostPosted: Fri Jan 26, 2007 1:25 pm    Post subject: Reply with quote

I have just started it, but it's very impressive!
Thank you for it!

Thalon
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
SacredVault
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 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