Development :
K-Meleon Web Browser Forum
K-Meleon development related discussions.
macro question
Posted by:
MasterJenkins
Date: July 03, 2003 08:02AM
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?
Re: macro question
Posted by:
zoom
Date: July 03, 2003 08:27AM
That's a fantastic Idea, Hey Monkee Sage, How about It?
Re: macro question
Posted by:
MasterJenkins
Date: July 03, 2003 08:31AM
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
Re: macro question
Posted by:
MasterJenkins
Date: July 03, 2003 08:33AM
eerrr, that was supposed to be one line for opennew .... is there a way to format code here on the forums?
Re: macro question
Posted by:
MasterJenkins
Date: July 03, 2003 08:35AM
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?
Re: macro question
Posted by:
MasterJenkins
Date: July 03, 2003 08:50AM
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()); ");
}
Re: macro question
Posted by:
MasterJenkins
Date: July 03, 2003 08:51AM
ya know i really hate this forum code base
Re: macro question
Posted by:
MasterJenkins
Date: July 03, 2003 08:58AM
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
Re: macro question
Posted by:
MasterJenkins
Date: July 03, 2003 09:23AM
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()); ");
}
Re: macro question
Posted by:
jesse
Date: July 04, 2003 02:05AM
jesus u keep answering your own questions,
Re: macro question
Posted by:
MasterJenkins
Date: July 04, 2003 08:04AM
i know i'm on a crackhead mission to learn the k-mel macro language
Re: macro question
Posted by:
zoom
Date: July 04, 2003 08:09AM
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?
Re: macro question
Posted by:
MonkeeSage
Date: July 04, 2003 08:54AM
Now for a victim, What website, Besides Windows Update won't let one in?
http://myie2.yeah.net
Shelumi`El
Jordan
S.D.G
Re: macro question
Posted by:
zoom
Date: July 04, 2003 09:09AM
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.
Re: macro question
Posted by:
zoom
Date: July 04, 2003 09:16AM
Dang It works. I'll keep It as now the Layers function is something I can use now.
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).
Re: macro question
Posted by:
MasterJenkins
Date: July 09, 2003 08:09AM
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!
Re: macro question
Posted by:
zoom
Date: July 11, 2003 11:34PM
Some websites still won't load, But those are very few and far between.
Re: macro question
Posted by:
jsnj
Date: July 12, 2003 12: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?
Re: macro question
Posted by:
MonkeeSage
Date: July 12, 2003 01: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
Re: macro question
Posted by:
zoom
Date: July 15, 2003 11:04PM
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.
Re: macro question
Posted by:
jsnj
Date: July 16, 2003 12: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.
Re: macro question
Posted by:
zoom
Date: July 18, 2003 02:23AM
I tried the one just now without the index.html and ALL I got was a blank white screen.