General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Pages: 12Next
Current Page: 1 of 2
integrate Orbit with K-Meleon
Posted by: semental
Date: October 16, 2008 10:59PM

COMMENT: I´m from Argentina so sorry for my bad spelling


i have orbitdownlaoder 2.7.6 and K.meleon 1.5.0

I tried the 3 ways that I know to integrate it but they didn't´t work:


1. The extension of K-Meleon "OrbitDownloader":
I see gray and inaccessible the "download with orbit" option in context menu, and seeing the macro I see it searchs for an entry in the registry with the path of the orbit executable, and that key is not i my registry (maybe it is for old orbit versions that place this key in the registry?)

2. The extension oGet:
The extension recognize orbit as installed, but when i select "download with orbit" gives an error

3. Copy the firefox plugin (nporbit.dll) to the plugin folder of K-Meleon:
nothing happens, i tried copy this in kplugis and plugins folder


Anyway, for what i saw, the extension oGet and OrbitDownloader only gives the option to "download with..". My goal is to fully integrate Orbit and have the context menu that i have for explorer with options like "download selected, download all, have a list of links to select", etc, and of course to be recognized by the Grab++ utility of orbit, that watch the Internet traffic and catch it, so i can for example download from youtube (for now it don´t work
with k-meleon)

And if it is not possible, anyone knows if there´s a download accelerator that can be fully integrated with k-meleon (with no errors) like flashget, DAP etc.??? or something like teh great "downthemall" extension for firefox

well, sorry again for my spelling and i hope i was clear explaining this


i wait for answers

thanks anyway

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: disrupted
Date: October 17, 2008 04:51AM

if you only use orbit without any additional download managers, then forget oget.. you don't really need it, just delete all oget files to avoid conflicts

to fully integrate orbit go to this thread:
http://kmeleonbrowser.org/forum/read.php?1,81845,81994#msg-81994

there are 2 macros there, one that integrates grab.exe( orbit's video/audio streaming media capturer) and one for the obit download manager.
to make grab.exe monitor km, it's important to open grab.s options and link it to kmeleon.. this is explained fully in the thread above.

here's a macro that integrates some download managers among other things, it's important to change the path to those programs according to your paths, for the programs you don't have/need just hash out their commands under build menu:
http://starvega.bizhat.com/combined.kmm

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ----------netports:links to misctools--------------------------------------------------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
#
# ------------------------------------------------------------------------------------------------------------------

#browsers ports

kmevo{
menu = "fucker";
exec("I:\\applications\\webres\\dev\\km08\\k-meleon.exe " .$LinkURL);
}

kmevo2{
menu = "fucker 2";
exec("I:\\applications\\webres\\dev\\km08\\k-meleon.exe " .$URL);
}

kmlegacy{
menu = "kmeleon";
exec("I:\\applications\\K-Meleon114\\k-meleon.exe -new " .$LinkURL);
}

kmlegacy2{
menu = "kmeleon 2";
exec("I:\applications\\K-Meleon114\\k-meleon.exe -new " .$URL);
}

firebird{
menu = "firebird fucker";
exec("G:\\APPLIC~1\\Firebird\\MOZILL~1\\MOZILL~1.EXE " .$LinkURL);
}

firebird2{
menu = "firebird fucker2";
exec("G:\\APPLIC~1\\Firebird\\MOZILL~1\\MOZILL~1.EXE " .$URL);
}


firefox{
menu = "firefox fucker";
exec("G:\\APPLIC~1\\Firefox\\firefox.exe " .$LinkURL);
}

firefox2{
menu = "firefox fucker2";
exec("G:\\APPLIC~1\\Firefox\\firefox.exe " .$URL);
}

minefield{
menu = "minefield fucker";
exec("I:\\applications\\webres\\minefield4\\firefox.exe -P minefield4 -no-remote " .$LinkURL);
}

minefield2{
menu = "minefield fucker2";
exec("I:\\applications\\webres\\minefield4\\firefox.exe -P minefield4 -no-remote " .$URL);
}

arora{
menu = "arora fucker";
exec("I:\\APPLIC~1\\webres\\webkit\\Arora\\arora.exe " .$LinkURL);
}

arora2{
menu = "arora fucker2";
exec("I:\\APPLIC~1\\webres\\webkit\\Arora\\arora.exe " .$URL);
}

opera{
menu = "opera fucker";
exec("I:\\APPLIC~1\\webres\\opera\\Opera.exe " .$LinkURL);
}

opera2{
menu = "opera fucker2";
exec("I:\\APPLIC~1\\webres\\opera\\Opera.exe " .$URL);
}

iexplorer{
menu = "ie fucker";
exec("C:\\PROGRA~1\\INTERN~1\\IEXPLORE.EXE " .$LinkURL);
}

iexplorer2{
menu = "ie fucker2";
exec("C:\\PROGRA~1\\INTERN~1\\IEXPLORE.EXE " .$URL);
}

#downloadmanagrs ports

getright{
menu = "getright fucker";
exec("G:\\PROGRA~1\\PROGRA~1\\GETRIG~1\\getright.exe " .$LinkURL);
}

getright2{
menu = "getright fucker2";
exec("G:\\PROGRA~1\\PROGRA~1\\GETRIG~1\\getright.exe " .$URL);
}


fdm{
menu = "fdm fucker";
exec("I:\\applications\\FDM\\fdm.exe " .$LinkURL);
}

fdm2{
menu = "fdm fucker2";
exec("I:\\applications\\FDM\\fdm.exe " .$URL);
}

netport{
menu = "netport fucker";
exec("H:\\applications2\\NetTransport2\\NetTransport.exe " .$LinkURL);
}

netport2{
menu = "netport fucker2";
exec("H:\\applications2\\NetTransport2\\NetTransport.exe " .$URL);
}

orbitdm{
menu = "orbit fucker";
exec("I:\\applications\\applications-x\\orbitdm\\orbitdm.exe " .$LinkURL);
}

orbitdm2{
menu = "orbit fucker2";
exec("I:\\applications\\applications-x\\orbitdm\\orbitdm.exe " .$URL);
}

#misc ports

feedread{
menu = "feedread fucker";
exec("H:\\applications2\\RSSreader\\extended\\feedreader.exe " .$LinkURL);
}

feedread2{
menu = "feedread fucker2";
exec("H:\\applications2\\RSSreader\\extended\\feedreader.exe " .$URL);
}

autotrace{
menu = "autotrace fucker";
exec("D:\\PROGRA~1\\NEOTRA~1\\NeoTrace.exe " .$LinkURL);
}

autotrace2{
menu = "autotrace fucker2";
exec("D:\\PROGRA~1\\NEOTRA~1\\NeoTrace.exe " .$URL);
}

designmode{
menu = "design fucker";
exec("E:\\PROGRA~1\\OPENSO~1\\nvu-1.0\\nvu.exe " .$LinkURL);
}

designmode2{
menu = "design fucker2";
exec("E:\\PROGRA~1\\OPENSO~1\\nvu-1.0\\nvu.exe " .$URL);
}

#ietab-trident render port

$_IEtab_OpenPageWith="S&end Page To";
$_IEtab_OpenLinkWith="S&end Link To";


$OnInit=$OnInit."__IEtab_BuildMenu;";

# ---------- IEtab ---------------------------------------------------------------------------------------

IEtab_OpenPage{
$oldclip=getclipboard(); setclipboard("");
id(ID_SELECT_URL); id(ID_EDIT_COPY); $theurl=getclipboard();
$theurl==""? $theurl=$URL:"";
$URLBAR=$URL;
setclipboard($oldclip);
opentab("chrome://ietab/content/reloaded.html?url=".$theurl);
}
IEtab_OpenLink{
opentab("chrome://ietab/content/reloaded.html?url=".$LinkURL);
}

IEtab_Pref{
$OpenURL="chrome://ietab/content/ietabSetting.xul"; $ExecMacros="OpenURL_InNewWindow"; &ExecMacros_Frames;
}

netports_BuildMenu{
# send page to,send link to
setmenu($_SendTo_Page,macro,"K-Meleon 0.8",kmevo2);
setmenu($_SendTo_Link,macro,"K-Meleon 0.8",kmevo);
setmenu($_SendTo_Page,macro,"K-Meleon 1.1",kmlegacy2);
setmenu($_SendTo_Link,macro,"K-Meleon 1.1",kmlegacy);
setmenu($_SendTo_Page,macro,"Firebird Basic",firebird2);
setmenu($_SendTo_Link,macro,"Firebird Basic",firebird);
setmenu($_SendTo_Page,macro,"Firefox ver 1.5",firefox2);
setmenu($_SendTo_Link,macro,"Firefox ver 1.5",firefox);
setmenu($_SendTo_Page,macro,"Firefox ver 4.0",minefield2);
setmenu($_SendTo_Link,macro,"Firefox ver 4.0",minefield);
setmenu($_SendTo_Page,macro,"Arora.3 webkit",arora2);
setmenu($_SendTo_Link,macro,"Arora.3 webkit",arora);
setmenu($_SendTo_Page,macro,"Presto Engine",opera2);
setmenu($_SendTo_Link,macro,"Presto Engine",opera);
setmenu($_SendTo_Page,macro,"Netsurfer Plus",iexplorer2);
setmenu($_SendTo_Link,macro,"Netsurfer Plus",iexplorer);
setmenu($_SendTo_Link,separator,-1);
setmenu($_SendTo_Page,separator,-1);
setmenu($_SendTo_Page,macro,"Net Transport",netport2);
setmenu($_SendTo_Link,macro,"Net Transport",netport);
setmenu($_SendTo_Page,macro,"Download Raw",orbitdm2);
setmenu($_SendTo_Link,macro,"Download Raw",orbitdm);
setmenu($_SendTo_Page,macro,"Download Plus",getright2);
setmenu($_SendTo_Link,macro,"Download Plus",getright);
setmenu($_SendTo_Page,macro,"Download Xtra",fdm2);
setmenu($_SendTo_Link,macro,"Download Xtra",fdm);
setmenu($_SendTo_Link,separator,-1);
setmenu($_SendTo_Page,separator,-1);
setmenu($_SendTo_Page,macro,"RSS Feedread",feedread2);
setmenu($_SendTo_Link,macro,"RSS Feedread",feedread);
setmenu($_SendTo_Page,macro,"DNS/ID Tracer",autotrace2);
setmenu($_SendTo_Link,macro,"DNS/ID Tracer",autotrace);
setmenu($_SendTo_Page,macro,"DesignerMode",designmode2);
setmenu($_SendTo_Link,macro,"DesignerMode",designmode);
setmenu($_SendTo_Link,separator,-1);
setmenu($_SendTo_Page,separator,-1);
setmenu($_IEtab_OpenPageWith,macro,"Trident Render",IEtab_OpenPage,-1);
setmenu($_IEtab_OpenLinkWith,macro,"Trident render",IEtab_OpenLink,-1);
setmenu("_Config_General",macro,"&IEtab Config",IEtab_Pref,1);
}

$OnInit=$OnInit."netports_SetAccels;netports_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."netports;";

EDIT: about spelling:
Aoccdrnig to rarecseh at Cmagirbde Uenirtvsiy, it deons't mttaer in waht oredr the ltteers in a wrod are, the olny irpmoetnt tnihg is taht the frsit and lsat ltteer be at the rghit pclae. the rset can be a ttoal mses and you can sitll raed it wouthit porbelm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe



Edited 1 time(s). Last edit at 10/17/2008 04:53AM by disrupted.

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: caktus
Date: October 17, 2008 05:35PM

@ Disrupted, RE: EDIT: about spelling:....

Did you forget to take your Dyslexia medication? :p

BTW, all coding links in the reply form are now text links for some reason, i.e.

Help information Insert smiley Insert quoted text Insert image etc, etc.

But I am not blocking images. Any Idea what may be causing this?

Charlie

~~If it ain't broke, why screw it up?~~




Edited 1 time(s). Last edit at 10/17/2008 05:37PM by caktus.

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: October 17, 2008 05:54PM

@ caktus:

Forum have been updated. Now BBCode in forum work fine.
Please force reload page or relogin your user to update forum pages in your cache.

K-Meleon in Spanish

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: October 17, 2008 06:39PM

I used te macros but they didn´t work

1)
the context menu item "orbit monitor" opens the grab++ but it don´t catch anything, i surf the pages and it still blank.

2)
in the context menu items download with\grab++, and download with\orbit downloader gives me the following error:

title: macro parser error
description: the variable `$LINKURL´ is used without being initialized

3)
i saw the macros and i only changed my orbit path, did i do wrong?
this i the line:
# $_Orbit_Path="\"c:\\archivos de programa\\internet\\orbitdownloader\" %1"

4)
Also, in the macro calls for a registry enty key with the path of orbit installation, but i search for my self that key and it doesn´t exist
this are the lines:
_Orbit_CommandLine{
# try to get Orbit's command line from the Windows Registry
$__data=readreg("HKLM","Software\\Orbit\\path");
$__data==""?0:$__data=$__data."\\orbitdm.exe"." %1";
$_Orbit_CommandLine=$__data;
$_Orbit_CommandLine==""?$_Orbit_CommandLine=$_Orbit_Path:0;
}


so, i´m still in the same place

and for what i see, these macros didn´t fully integrate orbit, because i still can´t see the menu item "download all with..", to select files from a list

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: disrupted
Date: October 17, 2008 08:47PM

to use grab, you'll need to configure it for kmeleon, to do that; do this:

1- open grab.exe
2- click on the 'action' button and select preferences
3- click on monitoring tab
4- select custom, click the browser button and point it to k-meleon.exe

juju's macro has some commands for 1.1.x just change LINKURL to LinkURL

also try this macro: (right click on any link: send to>orbit downloader sends it to orbit)

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ----------orbit orbit--------------------------------------------------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
#
#

orbitdm{
menu = "orbit fucker";
exec("I:\\applications\\applications-x\\orbitdm\\orbitdm.exe " .$LinkURL);
}

orbit_BuildMenu{
# send link to
setmenu($_SendTo_Link,macro,"Orbit Downloader",orbitdm);


$OnInit=$OnInit."orbit_SetAccels;orbit_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."orbit;";


hope this one works

charlie: nah, i got this cambdrige rseacrh tnhig in an email a while back.. i do suffer from dyslexic moments sometimes grinning smiley

EDIT: i don't know that 'download all..' menu command, is it available in firefox with orbit? cause orbit also relies on a chrome for xul integration with firefox.. i'll hav a look into its chrome and see what can be done(or can't be done)

EDIT2: sorry emental, it can't be done..orbit's chrome is heavily reliant on firefox only commands. i've never seen that "download all with.. ' in firefox 1.5, maybe it's a feature in firefox 2 or 3. anyway, here's a work around that should work(it's kinda baroque but will do the job).

with the above macro^ active:
in the page, where you want to select links; right-click on it: select page properties>links
a new window will open displaying all links on the page. right-click on the desired link and select send to>orbit downloader



Edited 2 time(s). Last edit at 10/17/2008 09:27PM by disrupted.

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: October 18, 2008 12:02AM

thanks disrupted!!! you help me so much!!

i fix the grab++ integration and the &LINKURL problem

the only thing left to me to be 100% happy is to have the option i talked about that i have in internet explorer

theseare the images in maxthon (or internet explorer too)

context menu of explorer


orbit option box


if anyone can help me with this i´ll be really glad

and i hope it helps other people, k-meleon + orbit is the best option!

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: disrupted
Date: October 18, 2008 07:11AM

semental, regarding 'download all with orbit; i tried enabling it for ie by selecting integrate with maxthon but orbit wouldn't let me and said i didn't have maxthon installed(which is true). i also tried looking in orbit's resources for this particular dialog to see how it's called but i couldn't find it.

.. so it seems, that download all is mathon-only feature.. however, if you can find out how it is called, it could be possible to execute it from a macro.

since i can't find out that dialog/command, here's what you have to do.

first go to this link:
http://tinyurl.com/58urtz

download cmdline.. it displays the command parameters that executes programs etc.

open cmdline and maxthon, select download all from a page.. when the download all listing dialog pops up; hover on it with your mouse and find out the exact command that executed it in cmdline.

EDIT: here's another way to find it out, but it will only work if you have that command in internet explorer's menu not just maxthon.. i don't understand why orbit has this integration only for maxthon which is a shell and not for ie.

open regedit.exe
browser to this key:
HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt
you should find a key entry called: "download all with orbit.."
it's default string value will point to a local html page.
find out where this html page is, open it in notepad or text editor and post its code here.



Edited 1 time(s). Last edit at 10/18/2008 07:26AM by disrupted.

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: disrupted
Date: October 18, 2008 09:45AM

never mind.. i found the command to call that listing dialog by integrating in firefox 1.5(i didn't have it integrated with ff so i never saw the command)
it's: /U

for example:
I:\applications\applications-x\orbitdm\orbitdm.exe /U"httttp://kmeleonbrowser.org/forum/"

but unfortunately it isn't that easy, as orbit doesn't generate the list directly from the website.. it generates a text file *.lst in the temp folder with the links on the site, and then executes that list with /U parameter..

here's what actually happens:
I:\applications\applications-x\orbitdm\orbitdm.exe /u"C:\Users\LEEDS\Local Settings\Temp\orbit_3580.lst"

i's complicated, that's why it needs that chrome and/or plugin for firefox, it's not merely to add the commands and icons to xul menu or auto-redirect binaries to orbit.. it also creates that list in temp when download all is selected.

it doesn't seem achievable in kmeleon, unless it's done in 2 steps.. first step will convert the links on the page to lst file comprehendable by orbit, and the second step will run that lst with the /U parameter. it's better to contact the author and request better integration with kmeleon.

try the work around i told you about:
right click on a page: page properties>links
and inside the links window, right click>send to> orbit using the macro we have

EDIT: ok, now i understand why it has to generate the page into a local .lst file for 2 reasons:

1-the first reason is because some pages doesn't necessarily have an address ending with a specific file.. for example if you go to news.bbc.co.uk.. the url passed to orbit will be exactly the same as the address displayed in the url bar..without pointing to the actual page which in that example is:news.bbc.co.uk/default.stm.. so orbit doesn't see the default.stm in the url passed.
2-the second and main reason, is because apparently that dialog or the .U parameter doesn't recognise protocols.. the u/ will work with local paths like c:\ d"\ etc but not with www or http.

so it doesn't really need a special coded file to extract the links.. it will extract the links from whatever file with hyperlinks... for example, if you save this page thread to your local disk as an htm page and then pass it to orbit with the /U parameter, it will display all links without problems.

what needs to be done still has to be achieved in 2 steps, first saving the page locally as htm to a specfic path and then passing that file to orbit with /U. it can be done with autoit but i'm not very good with autoit scripts..so maybe somebody can do it. jamesD comes to mind.



Edited 1 time(s). Last edit at 10/18/2008 10:30AM by disrupted.

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: October 18, 2008 07:34PM

thanks anyway disrupted! you done a great work finding out how that works

i hope someday it will be soported by k-meleon but i see that its very difficult to be handled by a macro

so i´ll wait..

and thnaks again

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: October 19, 2008 03:15PM

Quote
disrupted
Unfortunately i couldn't combine the autoit script with it or vice versa because of different commands each program uses...

You can adapt autohotkey script code to autoit3 script code.
I like says that you can write an autoit3 code to do that autohotkey script code does. By this way you don't need both applications installed to macro work, only need AutoIt3 to compile the code to executable file.

K-Meleon in Spanish

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: disrupted(unlogged)
Date: October 19, 2008 04:48PM

desga, i honestly don't know how to write this script from scratch for autoit, i tried modifying it when i combined it in one script but every time i fix a line, i get an error on another line.. eventually i gave up and took the easy way out.. maybe someone can rewrite it in a better way and polish it with a defined save page and path from kmeleon instead of automating the save dialog and name cause that's not really very professional.. i'm an artist not a programmer sad smiley

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: October 19, 2008 06:52PM

OK, I'll rewrote your codes to AutoIt when i have a little free time to do it.
smiling smiley

K-Meleon in Spanish

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: October 19, 2008 10:26PM

i like to thank you disrupted and desga2
you took really seriously my request

i hope this can help other people

i think when we finish with this we should put all together in a setup and release it so anyone can install it

there is a extension setup creator:

Extension Setup 1.9.0
http://pagesperso-orange.fr/jujuland46/JujuLand/KMES/KMES-Generalities.html

and in the midtime, i´d like to know what macros and programs do i have to install to make it work, beacause you post more than one option and i really don´t understand very mcuh all this thing

Thanks anyway

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: October 20, 2008 12:09AM

soo..i tested it

i tried the second way (that includes autohotkey, autoit3 and the macro) and changed all the paths acording to mines

these are the results:
i took http://www.crowcastle.net/preston/linux-av/ as an example page

1- the context menu "orbit:download all" appears



2- when i click on it it opens the "download all" dialog, but first open a dialog box telling me that orbitlist.htm already exist and if i want to replace it, but the rare thing is that orbitlist.htm appears on the root dir (d:\) and i never put that path in any of the scripts of the macro


3. i cilck on replace and then it open the "download all" dialog box . But it´s always empty, not like the screenshot you post


well, i post you the scripts and the macro modified by me, maybe i put something wrong

orbitlister.au3:
----------------
;
; AutoIt Version: 3.0
;IMPORTANT!change the path for the run command according to where your orbit.exe is
;and according to where the saved file is(path where kmeleon saves files)
;
;IMPORTANT!change the path for the run command that will execute the autohotkey AHK
;according to where your autohotkey.exe is installed and according to where the extractor.ahk
;is saved
;
;the orbitlist.lst path must be the same as the one that is used in the autohotkeyAHK script
;
;change the path for FileDelete orbitlist.htm according to your path

#NoTrayIcon
WinWaitActive("[CLASS:KMeleon Browser Window]", "")
Send("^s")
Send("orbitlist")
Send("{Enter}")
sleep(50)
Run("c:\archiv~1\internet\kmeleon\autoho~1\autoho~1.exe c:\archiv~1\internet\kmeleon\macros\extrac~1.ahk")
sleep(1800)
Run("c:\archiv~1\internet\orbitd~1\orbitdm.exe /Uc:\archiv~1\internet\orbitd~1\orbitl~1.lst")
sleep(200)
FileDelete("c:\archiv~1\internet\orbitd~1\orbitl~1.htm")
; we're done!


extractor.ahk:
--------------
; Example #3: A working script that attempts to extract all FTP and HTTP
; URLs from a text or HTML file:
; IMPORTANT! change SourceFile path and DestFile path according to the
;paths where kmeleon orbitlist.htm is saved
; destFile path should be changed according to where you want to generate
;the orbitlst.lst PLEASENOTE:IT MUST be same path as in autoit orbitlister.au3 script
;which will execute orbitdm.exe

#NoTrayIcon
SourceFile =c:\archiv~1\internet\orbitd~1\orbitl~1.htm
SplitPath, SourceFile,, SourceFilePath,, SourceFileNoExt
DestFile = c:\archiv~1\internet\orbitd~1\orbitl~1.lst

IfExist, %DestFile%
{
FileDelete, %DestFile%
}

LinkCount = 0
Loop, read, %SourceFile%, %DestFile%
{
URLSearchString = %A_LoopReadLine%
Gosub, URLSearch
}


URLSearch:
; It's done this particular way because some URLs have other URLs embedded inside them:
StringGetPos, URLStart1, URLSearchString, http://
StringGetPos, URLStart2, URLSearchString, ftp://
StringGetPos, URLStart3, URLSearchString, www.

; Find the left-most starting position:
URLStart = %URLStart1% ; Set starting default.
Loop
{
; It helps performance (at least in a script with many variables) to resolve
; "URLStart%A_Index%" only once:
StringTrimLeft, ArrayElement, URLStart%A_Index%, 0
if ArrayElement = ; End of the array has been reached.
break
if ArrayElement = -1 ; This element is disqualified.
continue
if URLStart = -1
URLStart = %ArrayElement%
else ; URLStart has a valid position in it, so compare it with ArrayElement.
{
if ArrayElement <> -1
if ArrayElement < %URLStart%
URLStart = %ArrayElement%
}
}

if URLStart = -1 ; No URLs exist in URLSearchString.
return

; Otherwise, extract this URL:
StringTrimLeft, URL, URLSearchString, %URLStart% ; Omit the beginning/irrelevant part.
Loop, parse, URL, %A_Tab%%A_Space%<> ; Find the first space, tab, or angle (if any).
{
URL = %A_LoopField%
break ; i.e. perform only one loop iteration to fetch the first "field".
}
; If the above loop had zero iterations because there were no ending characters found,
; leave the contents of the URL var untouched.

; If the URL ends in a double quote, remove it. For now, StringReplace is used, but
; note that it seems that double quotes can legitimately exist inside URLs, so this
; might damage them:
StringReplace, URLCleansed, URL, ",, All
FileAppend, %URLCleansed%`n
LinkCount += 1

; See if there are any other URLs in this line:
StringLen, CharactersToOmit, URL
CharactersToOmit += %URLStart%
StringTrimLeft, URLSearchString, URLSearchString, %CharactersToOmit%
Gosub, URLSearch ; Recursive call to self.
return

orbitlister.kmm
---------------
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ----------orbit lister(download all with orbit---------------------------------------------------------------------------
#
# Dependencies : -
# Resources : -
# Preferences : -
#
#IMPORTANT! change path for orbitlister exec according to the path of your autoit3.exe and the path of where orbitlister.au3 script is saved------------------------------------------------------------------------------------------------------------------

orbitlister{
exec("c:\\archiv~1\\internet\\kmeleon\\autoit3\\AutoIt3.exe c:\\archiv~1\\internet\\kmeleon\\autoit3\\orbitl~1.au3");
}

orbitlister_BuildMenu{
# page menu(contextmenu)
setmenu(DocumentSave,inline,orbitlister_Page);
setmenu(orbitlister_Page,macro,"Orbit: Download All..",orbitlister);
}

$OnInit=$OnInit."orbitlister_SetAccels;orbitlister_BuildMenu;";

# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."orbitlister;";


welll, i hope i you can help me

bye!

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: disrupted
Date: October 20, 2008 05:49AM

yes semental, that's a problem i knowledge in the script is it can't specify a path for kmeleon but automatically uses the folder in which kmeleon normally uses to save files.. what you need to do is this:

right click on any picture on a page and select save image as.. when save image comes up, browse to this folder:
c:\archiv~1\internet\orbitd~1\

it's the folder you will use to convert the htm file to lst. and it's very important that you always save files and images into this folder from now on and don't change it because the script needs kmeleon to always save to this folder.

the script isn't perfect but for now it works in its limitations until desga writes a better one. thanks desga smiling smiley

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: October 20, 2008 04:02PM

I'll begin tomorrow to make this extension.

K-Meleon in Spanish

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: October 20, 2008 04:55PM

Quote
desga2
I'll begin tomorrow to make this extension.

that would be great, to put all together
i´ll wait for that

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: October 23, 2008 05:13PM

still waiting...

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: October 23, 2008 05:48PM

I'm working in it. Finished for next week (currently 50% ended).

K-Meleon in Spanish

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: October 24, 2008 12:35AM

that´s great!

some questions for you:
1- you´ll just modificate the macros or you will make an enterily new one?
2- you think with your version we could make the "download with all" option fully work?
3- this will be an "all-in-one" extension, i mean include not just the "download with all" feature, but also the grab++ (actuallly working with a particular macro) and the "download with" option (working with an individual macro too)
4- will we need te autohotkey and auotit programs?

please usnderstand that i don´t know too much about this macros and extension things, i´m just asking because the best way to fully integrate orbit would be a extension that have all together in one, and then install k-.meleon + this extension and have orbit fully inegrated
this will help a lot of people

well, i let you work, if you have time you´re welcome to answer me

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: October 24, 2008 11:06AM

1) I modificated Alain's extension and macro included in it.

2) Yes, I hope it.

3) Actually only Orbit dll plugin is included in K-Meleon Extension.
The rest of Orbit Downloader files must be downloaded and installed separatly.
I like say that first you must download Orbit Downloader and install it and before
you can download and install K-Meleon Extension to integrate it with the browser.

4) I'll created two packages:
A) K-Meleon Extension executable with installer (with AutoIt exe file compiled list to use it)
cool smiley A zip file with sources; installer sources, macro, Orbit plugin and AutoIt file without compiled (.au3).

I don't need AutoHotkey because all AutoHotkey does can be do by AutoIt.

K-Meleon in Spanish

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: disrupted
Date: October 24, 2008 05:22PM

Quote
desga2
I like say that first you must download Orbit Downloader and install it and before
you can download and install K-Meleon Extension to integrate it with the browser.

will it query orbit's installation path in the registry or ask the user to input path?

the reason i ask is.. well, orbit is not installed on my computer.. i do have it but it's not installed.. i rarely do the setup routine, i just extract the files form the setups except for very few programs that would otherwise cause problems without 'installing'.. i can run orbit fine without installing with kmeleon but when i was testing with firefox; the nborbit plugin couldn't execute because apparently it was querying the registry for the exectuable...

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: October 24, 2008 06:14PM

Quote
disrupted
will it query orbit's installation path in the registry or ask the user to input path?

the reason i ask is.. well, orbit is not installed on my computer.. i do have it but it's not installed.. i rarely do the setup routine, i just extract the files form the setups except for very few programs that would otherwise cause problems without 'installing'.. i can run orbit fine without installing with kmeleon but when i was testing with firefox; the nborbit plugin couldn't execute because apparently it was querying the registry for the exectuable...

I also hate installers to get into the registry and I extracted Orbit files from installer file. smiling smiley

No problem both cases are implemented:

A) By default check Orbit's registry entry.

cool smiley You can set the Orbit path in a menu option (Tools -> Orbit Downloader -> Orbit Path)



Edited 2 time(s). Last edit at 10/24/2008 06:19PM by desga2.

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: November 14, 2008 01:15AM

what happened with the extension?

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: November 14, 2008 01:58AM

Sorry, I hadn't time to ended it. sad smiley

I hope finished it this weekend. smiling smiley

K-Meleon in Spanish

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: semental
Date: November 14, 2008 04:06PM

that´s ok! i´m not pushing you, just wondering becasue there wasn´t any notice

take your time desga2!

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: November 27, 2008 12:14PM

FIRST BETA!

Please report in this forum thread all your sugestions and bugs.


Download Orbit Downloader Extension
.

This first beta have lines code extracted from Mcky's Web Extractor v.1.35.
Thank you Mcky for your link extractor engine.
But I like created a better new engine to extract links (Mcky's engine is old).
I hope finished it for Christmas.

New in this Extension respected old Alain's Orbit Downloader Extension: (Thanks to Alain for it)

- You can set your Orbit path in Tools -> Orbit Downloader.

- In links context menu you have option "Download With" "Grab++" and "Orbit Downloader".

- In page context menu you have a new option "Download All ..." to download all links in page with "orbitdm.exe /U<file>" command. (Thanks to disrupted)

- New OrbitLister made with AutoIt 3 to extract links from URLs and files. (Thanks to disrupted and Mcky's engine)

- Not need "extractor.ahk" file AutoHotKey engine to extract links.

@ disrupted:
Can you test it and check if there are differences between current extract engines? (Mcky's engine vs AutoHotKey engine)

K-Meleon in Spanish



Edited 4 time(s). Last edit at 11/28/2008 04:31PM by desga2.

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: foobarly
Date: November 27, 2008 10:17PM

Download link is farked... sad smiley

Options: ReplyQuote
Re: integrate Orbit with K-Meleon
Posted by: desga2
Date: November 28, 2008 12:23AM

Download link fixed, thanks.

K-Meleon in Spanish

Options: ReplyQuote
Pages: 12Next
Current Page: 1 of 2


K-Meleon forum is powered by Phorum.