| View previous topic :: View next topic |
| Author |
Message |
daonlyfreez
Joined: 16 Mar 2005 Posts: 821 Location: Berlin
|
Posted: Fri Jan 19, 2007 1:28 pm Post subject: Embed an Internet Explorer control in your AHK Gui |
|
|
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 ++, and the script snippets used
- Alyce Watson for lbbrowse3.dll
- 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 , 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! _________________
My AHK stuff on ahk.net / on DropBox (mirror) / @home (if online)
Last edited by daonlyfreez on Sat Jun 07, 2008 6:09 pm; edited 9 times in total |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3716 Location: Belgrade
|
Posted: Fri Jan 19, 2007 2:00 pm Post subject: |
|
|
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 ?  _________________
 |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 821 Location: Berlin
|
Posted: Fri Jan 19, 2007 2:10 pm Post subject: |
|
|
Thanks!
| majkinetor wrote: | btw, where did you find this lib ? |
PhiLho mentioned it in the original thread somewhere. I overlooked it at first too...
Oh, and thank you for the graphic-menu code  _________________
My AHK stuff on ahk.net / on DropBox (mirror) / @home (if online) |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6719 Location: France (near Paris)
|
Posted: Fri Jan 19, 2007 2:12 pm Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6719 Location: France (near Paris)
|
Posted: Fri Jan 19, 2007 2:13 pm Post subject: |
|
|
| 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 |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 821 Location: Berlin
|
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6719 Location: France (near Paris)
|
Posted: Fri Jan 19, 2007 2:23 pm Post subject: |
|
|
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 |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 821 Location: Berlin
|
Posted: Fri Jan 19, 2007 2:27 pm Post subject: |
|
|
| 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... _________________
My AHK stuff on ahk.net / on DropBox (mirror) / @home (if online) |
|
| Back to top |
|
 |
majkinetor ! Guest
|
Posted: Fri Jan 19, 2007 8:28 pm Post subject: |
|
|
I sense short code camp again in the background  |
|
| Back to top |
|
 |
jballi
Joined: 01 Oct 2005 Posts: 446 Location: Texas, USA
|
Posted: Sat Jan 20, 2007 2:01 am Post subject: |
|
|
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.
Now if we could only put in support for tabbed browsing... |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2469
|
Posted: Sat Jan 20, 2007 8:40 am Post subject: |
|
|
Great start and useful code . Thanks for sharing. |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 821 Location: Berlin
|
Posted: Sun Jan 21, 2007 12:44 am Post subject: |
|
|
Edited, see first posting... _________________
My AHK stuff on ahk.net / on DropBox (mirror) / @home (if online) |
|
| Back to top |
|
 |
Jero3n
Joined: 19 Jan 2007 Posts: 151
|
Posted: Sun Jan 21, 2007 9:24 am Post subject: |
|
|
nice program daonlyfreez  |
|
| Back to top |
|
 |
David Andersen
Joined: 15 Jul 2005 Posts: 110 Location: Denmark
|
Posted: Fri Jan 26, 2007 9:32 am Post subject: |
|
|
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 |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 643
|
|
| Back to top |
|
 |
|