AutoHotkey Community

It is currently May 26th, 2012, 1:50 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
PostPosted: January 5th, 2009, 9:50 pm 
Offline

Joined: June 4th, 2005, 1:54 am
Posts: 146
Hi there,

I KNOW this is covered in the forum. Read on.

I'm trying to do something really simple: I have an HTML file (linked to an external CSS file), local on my hard drive.

I want to put it in a GUI window on my desktop. A widget, so to speak.

I've been allllll over the forum, including the QHTM sample (does not support CSS), the complex COM examples, the 14-page thread about integrating IExplore, everything. I went to the wiki, downloaded the code, looked at the samples.

And yet, I was unable to find _one_ single simple example, just showing how to do this elementary task of taking an HTML file from the disk and displaying it. All of the examples either don't work, or are needlessly complex and flashy, and really poorly commented.

I'm not exactly new to AHK, but this one has me totally frustrated.

Help?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 5th, 2009, 11:36 pm 
Offline

Joined: May 28th, 2008, 2:11 am
Posts: 739
Location: Minnesota, USA
Simple example, straight from the wiki. This is the simplest it will get.
Code:
Gui, +lastfound
h := WinExist()

IE_Add( h, 0, 0, 500, 500)

; Must be equal to or larger than the IE_Add size
; or some of the displayed web page will be cut off.
Gui, Show, h500 w500

IE_LoadURL("www.yahoo.com")
return

_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2009, 9:47 am 
Slanter wrote:
Simple example, straight from the wiki. This is the simplest it will get.
Code:
Gui, +lastfound
h := WinExist()

IE_Add( h, 0, 0, 500, 500)

; Must be equal to or larger than the IE_Add size
; or some of the displayed web page will be cut off.
Gui, Show, h500 w500

IE_LoadURL("www.yahoo.com")
return


And again, this is a bad example for what I need.

1) It does not state what library files are included. There are like 4 different versions floating around -- what is included?

2) The URL is _external_ -- not a local file.

Can you please make it complete? That's exactly the reason I wrote this topic, and as I mentioned, I have already seen this example.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2009, 9:35 pm 
Offline

Joined: May 28th, 2008, 2:11 am
Posts: 739
Location: Minnesota, USA
If you've seen this example then try doing a little searching... Embed an Internet Explorer control in your AHK Gui via COM. All you do for URL's is copy/paste from your address bar in your browser... As I said, this is the simplest example you will find for this kind of thing, if you can't figure it out just use your browser.

_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2009, 2:12 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
after watching the frustration from the poster for a couple days it occured to me you dont understand what a url is

url can be http://....
url can be about:blank
url can be 192.168.15.1
url can be c:\myApp Folder\some.html



so in Slanters post
Code:
Gui, +lastfound
h := WinExist()

IE_Add( h, 0, 0, 500, 500)

; Must be equal to or larger than the IE_Add size
; or some of the displayed web page will be cut off.
Gui, Show, h500 w500

IE_LoadURL("www.yahoo.com")
return


Code:
IE_LoadURL("http://www.yahoo.com")
Internet
Code:
IE_LoadURL("about:blank")
About url schema
Code:
IE_LoadURL("192.168.15.1")
IP address
Code:
IE_LoadURL("c:\myApp Folder\some.html")
Local File URL

the problem as i see it is that your attempting to build a rocket with a hi school biology education

unfortunately many come to ahk thinking that not understanding existing standards for the applications is ok. In alot of basic autohotkey commands its not.

But if your going to do something relativley advanced then you must not only understand AHK better but also the use of google :idea:

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2009, 2:27 pm 
Quote:
There are like 4 different versions floating around -- what is included?
Valid point, but easy to identify. Just open the file and check out if it includes the appropriate function, in this case: IE_LoadURL()

Don't forget to #Include that function/file.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2009, 3:28 pm 
3? obviously not the real BoBo :D (well maybe it is)


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2009, 3:50 pm 
Yeah, I've qualified from ² to ³ :wink:


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2009, 10:22 pm 
Offline

Joined: June 4th, 2005, 1:54 am
Posts: 146
tank wrote:
after watching the frustration from the poster for a couple days it occured to me you dont understand what a url is

the problem as i see it is that your attempting to build a rocket with a hi school biology education

But if your going to do something relativley advanced then you must not only understand AHK better but also the use of google :idea:


First, thanks for your help.

Second, no thanks for the attitude. I went and looked for the stuff you posted on the Scripts forum so far. Your contribution to the community seems to consist of two libraries. Thanks for those, too.

I have been working with AHK for years now (I actually predate you on this forum by about two years), and had you gone and looked at the forum (forum search is a great idea, too) you would have seen my scripts (as in actual, complete applications) outnumber yours by quite a few.

Third, there is more than one way to specify a local URL, such as file:// etc.

Good day. :)


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 7th, 2009, 10:56 pm 
Offline
User avatar

Joined: December 21st, 2007, 3:14 pm
Posts: 3826
Location: Louisville KY USA
ezuk wrote:
Third, there is more than one way to specify a local URL, such as file:// etc

which also works
It really doesnt matter how long you have blah blah blah
No im not trying to be an A$$ I know it seems that way but im not
but It is and was apparent by your question that you clearly did not understand what a URL is or if you did that you were pretending quite obnoxiously not to :wink:
I have Never claimed to be an expert on anything except ignorance :D
I am glad you looked thru the forum but again you cant limit your research to AHK you have to look further like MSDN and google and code guru etc. If your going to use a particular application (such as IE) it helps greatly to actually look into its archetecture as well. Try understand that applications abilities.
I wont get into a pissing match with you or any one else about who develops full applications and who has more of what. FYI facts are the work I do just simply cant be made public. Second every thing I do do is based on things I learned from ahklerner Sean Lexikos and a few others but I walked in the door with an extensive knowledge and experience of web application development. I can see your join date also and read all 32 of your posts as well I never called you an idiot I just expounded the simple minded nature of your confusion.
That said I am happy that even with my sarcasm which knows no end that i gave you the answer you were looking for
Feel free to ask anything else and ill answer but I wont promise to be cheerful

_________________
No matter what your oppinion Please join this discussion
Formal request to Polyethene
Image


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 8th, 2009, 12:50 am 
Offline

Joined: November 4th, 2008, 10:25 pm
Posts: 222
Location: Memphis, TN
I love forums


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], patgenn123, poserpro and 16 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