AutoHotkey Community

It is currently May 25th, 2012, 2:59 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 309 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 21  Next
Author Message
 Post subject:
PostPosted: April 27th, 2007, 3:17 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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 :D ) 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.ph ... er_Control

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2007, 3:45 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
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/viewtop ... 952#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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 27th, 2007, 5:21 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 28th, 2007, 10:44 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
Thats good to know.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 4:48 am 
Offline

Joined: July 29th, 2005, 5:32 pm
Posts: 179
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 13th, 2007, 8:35 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 4:46 am 
Offline

Joined: July 29th, 2005, 5:32 pm
Posts: 179
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 5:51 am 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
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)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 11:37 am 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 1:40 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 2:52 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
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.

_________________
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 3:21 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 10:26 pm 
Offline

Joined: July 29th, 2005, 5:32 pm
Posts: 179
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 11:14 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 14th, 2007, 11:28 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
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.

_________________
GitHubScriptsIronAHK Contact by email not private message.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 309 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 21  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: oldbrother and 15 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group