| View previous topic :: View next topic |
| Author |
Message |
majkinetor
Joined: 24 May 2006 Posts: 4114 Location: Belgrade
|
Posted: Fri Apr 27, 2007 2:17 pm Post subject: |
|
|
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 ) 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 |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2190
|
Posted: Fri Apr 27, 2007 2:45 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10667
|
Posted: Fri Apr 27, 2007 4:21 pm Post subject: |
|
|
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.  |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4114 Location: Belgrade
|
Posted: Sat Apr 28, 2007 9:44 am Post subject: |
|
|
Thats good to know. _________________
 |
|
| Back to top |
|
 |
freakkk
Joined: 29 Jul 2005 Posts: 179
|
Posted: Sun May 13, 2007 3:48 am Post subject: |
|
|
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 |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2190
|
Posted: Sun May 13, 2007 7:35 am Post subject: |
|
|
| 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 |
|
 |
freakkk
Joined: 29 Jul 2005 Posts: 179
|
Posted: Mon May 14, 2007 3:46 am Post subject: |
|
|
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.  _________________ .o0[ corey ]0o. |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2190
|
Posted: Mon May 14, 2007 4:51 am Post subject: |
|
|
| 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.  |
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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4114 Location: Belgrade
|
Posted: Mon May 14, 2007 10:37 am Post subject: |
|
|
| 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 |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2190
|
Posted: Mon May 14, 2007 12:40 pm Post subject: |
|
|
| 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 |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 4114 Location: Belgrade
|
Posted: Mon May 14, 2007 1:52 pm Post subject: |
|
|
| 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 . This is application, not control istelf. _________________
 |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2190
|
Posted: Mon May 14, 2007 2:21 pm Post subject: |
|
|
| majkinetor wrote: | IE control deserves special thread, I don't know why did you put it here at the first place . |
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 |
|
 |
freakkk
Joined: 29 Jul 2005 Posts: 179
|
Posted: Mon May 14, 2007 9:26 pm Post subject: |
|
|
WOW! That ended up being way simpler than expected 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! ) _________________ .o0[ corey ]0o. |
|
| Back to top |
|
 |
Sean
Joined: 12 Feb 2007 Posts: 2190
|
Posted: Mon May 14, 2007 10:14 pm Post subject: |
|
|
| 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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5031 Location: /b/
|
Posted: Mon May 14, 2007 10:28 pm Post subject: |
|
|
| 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. _________________ Chat (IRC) • PlusNet • Scripts • IronAHK • Contact by email not private message. |
|
| Back to top |
|
 |
|