General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Question about session macros
Posted by: Anonymous User
Date: August 12, 2008 12:17AM

Good nights.

I'm having some problems to update my old groups and translate it to sessions (comp macro is not working properly, at least for me).

Can anybody explain me briefly what does this means?

user_pref("kmeleon.plugins.sessions2.Programas.count", 1);
user_pref("kmeleon.plugins.sessions2.Programas.window0", "19 64 46 960 838 0 -1 ");



Specially I wonder about these numbers: 19 64 46 960 838 0 -1

What should they say for a session containing 6 web pages?



Edited 2 time(s). Last edit at 08/12/2008 12:20AM by enaitzjga.

Options: ReplyQuote
Re: Question about session macros
Posted by: JujuLand
Date: August 12, 2008 09:48AM

These are probably window positions and size

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: Question about session macros
Posted by: Anonymous User
Date: August 12, 2008 10:44AM

Shouldn't they be the same for every tab?

Options: ReplyQuote
Re: Question about session macros
Posted by: desga2
Date: August 12, 2008 12:08PM

No it isn't, We are talking about windows not tab because each KM window have a possition in desktop, but its possible that 2 windows have identical possition coordinates.

kmeleon.plugins.sessions2.<SessionName>.count
=> Number of KM windows open in session <SessionName>

kmeleon.plugins.sessions2.<SessionName>.windowN
=> Window N possition (where N is a integer)

kmeleon.plugins.sessions2.<SessionName>.windowN.count
=> Number of tabs in window N

kmeleon.plugins.sessions2.<SessionName>.windowN.tabN
=> Web page contained in tab N in window N

Greetings.

K-Meleon in Spanish



Edited 5 time(s). Last edit at 08/12/2008 12:14PM by desga2.

Options: ReplyQuote
Re: Question about session macros
Posted by: Anonymous User
Date: August 12, 2008 12:52PM

Ok, thanks.

Now here again:

user_pref("kmeleon.plugins.sessions2.Programas.window0", "19 64 46 960 838 0 -1 ");


Why 7 numbers if there are just 6 tabs?
If tabs are shown left to right, why are not the numbers increasing proportionally?

In general, do you find something wrong with the following saved session?

user_pref("kmeleon.plugins.sessions2.Programas.count", 1);
user_pref("kmeleon.plugins.sessions2.Programas.window0", "19 64 46 960 838 0 -1 ");
user_pref("kmeleon.plugins.sessions2.Programas.window0.count", 6);
user_pref("kmeleon.plugins.sessions2.Programas.window0.tab0", "1 0 http://www.emule-project.net/home/perl/general.cgi?l=17 ");
user_pref("kmeleon.plugins.sessions2.Programas.window0.tab1", "1 0 http://www.izarc.org/ ");
user_pref("kmeleon.plugins.sessions2.Programas.window0.tab2", "1 0 http://www.codecguide.com/download_mega.htm ");
user_pref("kmeleon.plugins.sessions2.Programas.window0.tab3", "1 0 http://www.chemtable.com/downloads.htm ");
user_pref("kmeleon.plugins.sessions2.Programas.window0.tab4", "1 0 http://www.safer-networking.org/en/index.html ");
user_pref("kmeleon.plugins.sessions2.Programas.window0.tab5", "1 0 http://download.zonelabs.com/bin/free/information/zass/releaseHistory.html ");
user_pref("kmeleon.plugins.sessions2.list", "Previous Session,Programas,");



If the old group is changed by the comp macro, the resulting session is not working, most of the numbers in the stated line are zeros and when I try to open the session the browser goes minimized in a weird way, going to the top left of the screen and showing the Windows desktop in the background.

Also, and not related to the previous issue, has anything changed on the skins?
My custom skin now can't work properly because of the back.bmp file not being recognised (it just ignores that file).



Edited 2 time(s). Last edit at 08/12/2008 12:53PM by enaitzjga.

Options: ReplyQuote
Re: Question about session macros
Posted by: desga2
Date: August 12, 2008 01:35PM

About toolbar background this work as usually with Phoenity, this is the identical preference that used in 1.1.X:
kmeleon.display.backgroundImageEnabled

What is you back.bmp file? Can you post a screen capture?

About numbers:

user_pref("kmeleon.plugins.sessions2.Programas.window0", "19 64 46 960 838 0 -1 ");

I said you that this isn't a tabs number but possition coordinates of window:

"<i don't know> <Xcoordinate> <Ycoordinate> <Xcoordinate> <Ycoordinate> <maximized/minimized> <active>"

But i'm not sure about this. First XY coordinates are from left up corner, second XY coordinates are from right down corner. It's only suppositions.

K-Meleon in Spanish

Options: ReplyQuote
Re: Question about session macros
Posted by: Anonymous User
Date: August 12, 2008 01:48PM

About the back image, it's strange because it's the same image I was using on 1.1.6, the difference is that now it's ignored.

You can check it downloading the patch from my web page (this forum doesn´t allow me to post the link)



Edited 1 time(s). Last edit at 08/12/2008 01:50PM by enaitzjga.

Options: ReplyQuote
Re: Question about session macros
Posted by: Anonymous User
Date: August 12, 2008 02:02PM

Ok, I found it.

It was just that in previous K-MEleon version this:

user_pref("kmeleon.display.backgroundImageEnabled", true);

Was activated by default and now it isn't.

After includding that in the prefs now it works fine again.

Well, thanks to everybody for their help and support.
This forum has proved, again, as useful as always.

Options: ReplyQuote
Re: Question about session macros
Posted by: kko
Date: August 12, 2008 02:29PM

Quote
enaitzjga
If the old group is changed by the comp macro, the resulting session is not working, most of the numbers in the stated line are zeros and when I try to open the session the browser goes minimized in a weird way, going to the top left of the screen and showing the Windows desktop in the background.

Could be a failure of the compat macro of course. But I can't fix it when I can't reproduce it...
Best send me your prefs.js with your old groups prefs, so I can test it myself.

Options: ReplyQuote
Re: Question about session macros
Posted by: Anonymous User
Date: August 12, 2008 03:35PM

I'm sending you an e-mail right now.

;-)

Options: ReplyQuote


K-Meleon forum is powered by Phorum.