Development :  K-Meleon Forum
K-Meleon development related discussions. 
macro question
Posted by: MasterJenkins
Date: July 03, 2003 03:02PM

i'd like to write a macro that opens a link on a page into the neptune embedded IE plugin... how would i add that to the link popup toolbar and to macros.cfg?

Options: ReplyQuote
Re: macro question
Posted by: zoom
Date: July 03, 2003 03:27PM

That's a fantastic Idea, Hey Monkee Sage, How about It?

Options: ReplyQuote
Re: macro question
Posted by: MasterJenkins
Date: July 03, 2003 03:31PM

oh snap i just figured it out.

menus.cfg :

ie_link {
menu="Open Link in IE";
opennew(" javascript: function IE() { document.write('\<HTML\>\<HEAD\>\<title\>IE Browsing Frame (via Neptune plugin)\</title\>\</head\>\<body marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\" bottommargin=\"0\" rightmargin=\"0\" topmargin=\"0\"\>\n\n\<embed type=\"application/x-meadco-neptune-ax\" pluginspage=\"http://www.meadroid.com/neptune/download/\" width=\"100%\" height=\"100%\" param-location=\"" .$URL. "\"\>\</embed\>\n\n\</BODY\>\</HTML\>'); document.close(); } void(IE()); ");
}


then go to menus.cfg and paste macros(ie_link) with the proper link popups

documentation here rocks smiling smiley

Options: ReplyQuote
Re: macro question
Posted by: MasterJenkins
Date: July 03, 2003 03:33PM

eerrr, that was supposed to be one line for opennew .... is there a way to format code here on the forums?

Options: ReplyQuote
Re: macro question
Posted by: MasterJenkins
Date: July 03, 2003 03:35PM

oops, there seems to be a problem with my macro anyways.. it loads the current page to the embedded ie window.... what is the variable for a mouse over hyperlinked url?

Options: ReplyQuote
Re: macro question
Posted by: MasterJenkins
Date: July 03, 2003 03:50PM

sweet baby jesus i fixed it by looking at other macros...


i hope the code tag works here

ie_link {
menu="Open Link in IE";
opennew(" javascript: function IE() {  document.write('\<HTML\>\<HEAD\>\<title\>IE Browsing Frame (via Neptune plugin)\</title\>\</head\>\<body marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\" bottommargin=\"0\" rightmargin=\"0\" topmargin=\"0\"\>\n\n\<embed type=\"application/x-meadco-neptune-ax\" pluginspage=\"http://www.meadroid.com/neptune/download/\" width=\"100%\" height=\"100%\" param-location=\"" .$LinkURL. "\"\>\</embed\>\n\n\</BODY\>\</HTML\>'); document.close(); } void(IE()); ");
} 


Options: ReplyQuote
Re: macro question
Posted by: MasterJenkins
Date: July 03, 2003 03:51PM

ya know i really hate this forum code base ;)

Options: ReplyQuote
Re: macro question
Posted by: MasterJenkins
Date: July 03, 2003 03:58PM

my next question would be how do i get it to open in a new layer?
the plugin() command for the macros only accepts 2 variables to be passed

Options: ReplyQuote
Re: macro question
Posted by: MasterJenkins
Date: July 03, 2003 04:23PM

oh snap, pluginmsg() !!!!

to open a link in a new IE embedded layer

ie_linklayer {
menu="Open Link in Embedded IE Layer";
pluginmsg(layers,"OpenURL"," javascript: function IE() { document.write('\<HTML\>\<HEAD\>\<title\>IE Browsing Frame (via Neptune plugin)\</title\>\</head\>\<body marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\" bottommargin=\"0\" rightmargin=\"0\" topmargin=\"0\"\>\n\n\<embed type=\"application/x-meadco-neptune-ax\" pluginspage=\"http://www.meadroid.com/neptune/download/\" width=\"100%\" height=\"100%\" param-location=\"" .$LinkURL. "\"\>\</embed\>\n\n\</BODY\>\</HTML\>'); document.close(); } void(IE()); ");
}

Options: ReplyQuote
Re: macro question
Posted by: jesse
Date: July 04, 2003 09:05AM

jesus u keep answering your own questions,

Options: ReplyQuote
Re: macro question
Posted by: MasterJenkins
Date: July 04, 2003 03:04PM

i know i'm on a crackhead mission to learn the k-mel macro language

Options: ReplyQuote
Re: macro question
Posted by: zoom
Date: July 04, 2003 03:09PM

To your latest Creation I made this:

macros(ie_linklayer)

And put It in Menus.cfg

I put this:

ie_linklayer {
menu="Open Link in Embedded IE Layer";
pluginmsg(layers,"OpenURL"," javascript: function IE() { document.write('\<HTML\>\<HEAD\>\<title\>IE Browsing Frame (via Neptune plugin)\</title\>\</head\>\<body marginheight=\"0\" marginwidth=\"0\" leftmargin=\"0\" bottommargin=\"0\" rightmargin=\"0\" topmargin=\"0\"\>\n\n\<embed type=\"application/x-meadco-neptune-ax\" pluginspage=\"http://www.meadroid.com/neptune/download/\" width=\"100%\" height=\"100%\" param-location=\"" .$LinkURL. "\"\>\</embed\>\n\n\</BODY\>\</HTML\>'); document.close(); } void(IE()); ");
}

And put It in Macros.cfg, Not Menus.cfg, Now I need to test this. Oh and when copied to K-M, K-M will use the right formatting, It did for Me at least. Now for a victim, What website, Besides Windows Update won't let one in?

Options: ReplyQuote
Re: macro question
Posted by: MonkeeSage
Date: July 04, 2003 03:54PM

Now for a victim, What website, Besides Windows Update won't let one in?

http://myie2.yeah.net


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: macro question
Posted by: zoom
Date: July 04, 2003 04:09PM

Well I tried It on the KCBS 2 Los Angeles Video part of their website (Which works fine with K-M) and It didn't work their for some reason (the video part doesn't work, But thats a real problem) ;), I'll try the one website that MonkeeSage mentioned though before taking layers offline again or at least.

Options: ReplyQuote
Re: macro question
Posted by: zoom
Date: July 04, 2003 04:16PM

Dang It works. I'll keep It as now the Layers function is something I can use now. smiling smiley And that last line should have said "I'll try the one website that MonkeeSage mentioned though before taking layers offline again at least." Well I did and outside of some images not showing up, The website worked fine. And K-Meleon uses IE's right click menus too, neat (cool).

Options: ReplyQuote
Re: macro question
Posted by: MasterJenkins
Date: July 09, 2003 03:09PM

oioooops, thanks for correcting me zoom, the macro does go into macros.cfg , not menus.cfg .. i was just a lil excited and didn't notice my mistake!

Options: ReplyQuote
Re: macro question
Posted by: zoom
Date: July 12, 2003 06:34AM

Some websites still won't load, But those are very few and far between.

Options: ReplyQuote
Re: macro question
Posted by: jsnj
Date: July 12, 2003 07:01AM

Now for a victim, What website, Besides Windows Update won't let one in?

]http://myie2.yeah.net



I got in there no problem with KM. Am I misunderstanding what you meant?

Options: ReplyQuote
Re: macro question
Posted by: MonkeeSage
Date: July 12, 2003 08:58AM

jsnj:

Should have been more clear. The content all loads fine, this one is a script problem I believe.

The tab-menu rollover things don't trigger in Mozilla based browsers...in IE when the mouses passes over a 'tab' for skins or support or whatever up near the top of the screen, the lower panel associated with the tab is supposed to come into view and the old one hides, but in Mozilla the panels never change.

The problem, I believe, is that they used Dreamweaver scripts to do their showing and hiding (see: http://www.myie2.com/standard.js, MM_function are from Dreamweaver), and they only work in IE.


Shelumi`El
Jordan

S.D.G

Options: ReplyQuote
Re: macro question
Posted by: zoom
Date: July 16, 2003 06:04AM

Well here is one that sometimes will not load and like right now won't even show up, It's All I get is a blank screen, It always works with IE 6.0 of course. And It's using an Apache server too.

Options: ReplyQuote
Re: macro question
Posted by: zoom
Date: July 16, 2003 06:04AM

Thats's http://www.iamnotageek.com/ It came up as plain text.

Options: ReplyQuote
Re: macro question
Posted by: zoom
Date: July 16, 2003 06:06AM

Yet If You try this http://www.iamnotageek.com/index.html You finally get something.

Options: ReplyQuote
Re: macro question
Posted by: jsnj
Date: July 16, 2003 07:19AM

Got the opposite results from you. Got in 3 times no problem without the index.html. Can't get in with the index.html.

Options: ReplyQuote
Re: macro question
Posted by: zoom
Date: July 18, 2003 09:23AM

I tried the one just now without the index.html and ALL I got was a blank white screen.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.