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 via COM
Goto page Previous  1, 2, 3, 4 ... 11, 12, 13  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Fri Apr 27, 2007 3:17 pm    Post subject: Reply with quote

There is a sample at the wiki, I already made it long time ago and its quite simple.

Its another story why nobody show any interest in visiting wiki space, together authors of modules and users. Jonny was forcing ppl to use wiki (one of the rare good things he did Very Happy ) but nobody did anything. I thought that if I make initial organisation and update it some time, that ppl will start to be aware of it, but I was wrong.

So, basicly, there are things around, for most of the hard or new stuff but ppl are lazy and want from us to write scripts for them.

http://www.autohotkey.com/wiki/index.php?title=Internet_Explorer_Control
_________________
Back to top
View user's profile Send private message MSN Messenger
Sean



Joined: 12 Feb 2007
Posts: 1359

PostPosted: Fri Apr 27, 2007 3:45 pm    Post subject: Reply with quote

Chris wrote:
Sean, if you think your work would benefit from being in a new topic, I can split this topic starting at your post http://www.autohotkey.com/forum/viewtopic.php?p=107952#107952

Thanks for the suggestion.
As I created this script based on the work of daonlyfreez, I'd like to hear his opinion on the splitting first.
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Fri Apr 27, 2007 5:21 pm    Post subject: Reply with quote

Majkinetor, I've linked the GUI pages to your Wiki page that demonstrates this MSIE control. So at least some of your work on the wiki is paying off. Smile
Back to top
View user's profile Send private message Send e-mail
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Sat Apr 28, 2007 10:44 am    Post subject: Reply with quote

Thats good to know.
_________________
Back to top
View user's profile Send private message MSN Messenger
freakkk



Joined: 29 Jul 2005
Posts: 157

PostPosted: Sun May 13, 2007 4:48 am    Post subject: Reply with quote

This is truly awesome! I'm just now toying around w/ it since the implementation of COM. The one new feature I really need for a current project is one that majkinetor mentioned in another post.
Quote:
Sean may tell us if there are any ways to send string with HTML to IE so to avoid slow file creation.
I plan to use an IE control to display dynamic info for items in a list.. & am currently having to generate & write html to disk. It works- but very ugly.. & much too much disk abuse.

Would this be a simple COM implementation.. or should I be seeking a solution similar to how UrlDownloadToVar works?
_________________
.o0[ corey ]0o.
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1359

PostPosted: Sun May 13, 2007 8:35 am    Post subject: Reply with quote

freakkk wrote:
This is truly awesome! I'm just now toying around w/ it since the implementation of COM. The one new feature I really need for a current project is one that majkinetor mentioned in another post.
Quote:
Sean may tell us if there are any ways to send string with HTML to IE so to avoid slow file creation.
I plan to use an IE control to display dynamic info for items in a list.. & am currently having to generate & write html to disk. It works- but very ugly.. & much too much disk abuse.

As a matter of fact, ATL supports displaying Raw HTML, by setting WindowName (:currently set to "Shell.Explorer") to

Code:
"MSHTML:" . your_html_string


I think you have to destroy, or at least hide, currently displaying ATL (child-)window first though.
Of course, more elegant method would be manipulating through DOM, but I'm afraid it won't happen near future unless someone else does the job before.
Back to top
View user's profile Send private message
freakkk



Joined: 29 Jul 2005
Posts: 157

PostPosted: Mon May 14, 2007 4:46 am    Post subject: Reply with quote

That is AWESOME! From the quick test I did--- it loaded evan faster than I imagined it would!!
Quote:
I think you have to destroy, or at least hide, currently displaying ATL (child-)window first though.
I haven't tooled around w/ this yet..
Thank you so much for your continued support w/ this. Smile
_________________
.o0[ corey ]0o.
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1359

PostPosted: Mon May 14, 2007 5:51 am    Post subject: Reply with quote

freakkk wrote:
That is AWESOME! From the quick test I did--- it loaded evan faster than I imagined it would!!
Quote:
I think you have to destroy, or at least hide, currently displaying ATL (child-)window first though.
I haven't tooled around w/ this yet..
Thank you so much for your continued support w/ this. Smile

Thanks. BTW, looks like there is even a simpler way.
Just set the URL to (leaving WindowName untouched)

Code:
"about:" . html_string ; "about:" . plain_string


PS. I updated the script adding new function Gui_IELoadHTML().
So, now can display Raw HTML in two different ways:

Code:
Gui_IELoadHTML(html_string)

or
Code:
Gui_IELoadURL("about:" . html_string)
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Mon May 14, 2007 11:37 am    Post subject: Reply with quote

Quote:
Gui_IELoadHTML(html_string)

Superb Sean, that is just what was needed.
Can you please change the prefix to be IE_ not GUI_IE. THx.
_________________
Back to top
View user's profile Send private message MSN Messenger
Sean



Joined: 12 Feb 2007
Posts: 1359

PostPosted: Mon May 14, 2007 1:40 pm    Post subject: Reply with quote

majkinetor wrote:
Can you please change the prefix to be IE_ not GUI_IE. THx.

That's no problem with me.
Then, however, it can't be used with IE4AHK.ahk unless daonlyfreez updates the script.
Maybe better start a new thread or split this thread into two as Chris once suggested.
What you think?
Back to top
View user's profile Send private message
majkinetor



Joined: 24 May 2006
Posts: 3626
Location: Belgrade

PostPosted: Mon May 14, 2007 2:52 pm    Post subject: Reply with quote

Quote:
Then, however, it can't be used with IE4AHK.ahk unless daonlyfreez updates the script.

Daonlyfreez will just do search GUI_IE and replace with IE_

IE control deserves special thread, I don't know why did you put it here at the first place Smile. This is application, not control istelf.
_________________
Back to top
View user's profile Send private message MSN Messenger
Sean



Joined: 12 Feb 2007
Posts: 1359

PostPosted: Mon May 14, 2007 3:21 pm    Post subject: Reply with quote

majkinetor wrote:
IE control deserves special thread, I don't know why did you put it here at the first place Smile.

I wrote it just as a proof of concept at that time.
OK, I will ask Chris to split the thread.

Chris, would you split this thread as you suggested?
Back to top
View user's profile Send private message
freakkk



Joined: 29 Jul 2005
Posts: 157

PostPosted: Mon May 14, 2007 10:26 pm    Post subject: Reply with quote

WOW! That ended up being way simpler than expected Smile I'm not sure what the 'About' is supposed to stand for as far as functionality.. but it works like a charm. Thanks again for all you help!!

@majkinetor-- that will work fine for the BBCodeWrite on key press w/out timers..
Code:
#include IEControl.ahk
Gui, +lastfound
Gui1_Hwnd := WinExist() , html_string := "<body bgcolor=88888><center> <font size=5>HTML
                                         <font color=FF0000 ><u>live</u></font><i> preview!!</i>
                                         </font></center><br>`n"

Gui, Add, Edit, w700 h150   vhtml_string  gSub_html_string, %html_string%
Gui_IEAdd(Gui1_Hwnd, 10, 160, 700, 325, "about:" . html_string)
Gui, Show, h500, HTML Live...
Return

Sub_html_string:
GuiControlGet, html_string
Gui_IELoadURL( "about:" . html_string)
Return

Guiescape:
Guiclose:
ExitApp
(way feasible! Smile)
_________________
.o0[ corey ]0o.
Back to top
View user's profile Send private message
Sean



Joined: 12 Feb 2007
Posts: 1359

PostPosted: Mon May 14, 2007 11:14 pm    Post subject: Reply with quote

freakkk wrote:
I'm not sure what the 'About' is supposed to stand for as far as functionality..

Me neither!
I'd like to know if it's an official feature or not.
I searched the web about it yesterday, but ended in vain.

Anyway, I'm feeling lucky and mysterious about why it occurred to me to try it.
I had suddenly imagined 'about:' as sort of a protocol.
Back to top
View user's profile Send private message
Titan



Joined: 11 Aug 2004
Posts: 5107
Location: eth0

PostPosted: Mon May 14, 2007 11:28 pm    Post subject: Reply with quote

Sean wrote:
I'd like to know if it's an official feature or not.
The about: URI scheme is an unofficial feature in IE, which ironically dropped support for the more advanced data: standard in v7.
_________________

RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2")
Back to top
View user's profile Send private message Visit poster's website
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, 3, 4 ... 11, 12, 13  Next
Page 3 of 13

 
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