Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
Pages: 12Next
Current Page: 1 of 2
luamacro plugin 0.4-
Posted by: mark307
Date: May 30, 2007 02:09PM

I began to host my plugins by myself.

luamacro 0.4.0 for 1.1

The build for 1.0 isn't changed from beta.

Changes from 0.4 beta.

* Fix: GetFolder returns short string.

Changes from 0.3

* Change: Plugin name is renamed from luamacros to luamacro.
* Change: Lua 5.1.2
* Change: Rename RegisterCommand to GetFID.
* Add: 1.1 new API.
GetFolder, SetAccel, SetMenu, RebuildMenu, GetWindowVar, SetWindowVar
GetMozillaSessionHistory, SetMozillaSessionHistory
* Add: Addtional argument on OnCloseTab, OnCreateTab, OnSwitchTab,
it means tab ID.
* Add: SendMessage
* Add: example; setmenu.lua (almost compatible with kmplus version)
inject_script.lua

Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: May 30, 2007 08:16PM

Good update. Thanks mark307.

Hao

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: August 17, 2007 03:36PM

I 'm testing the latest 1.5 alpha with the 0.4 lua macros and looks like the lua plugin is not working well with the latest alpha, will cause crash in several circumstances.

As Dorian said, the new 1.5 will have several new api built-in. CreateTAB() and DestryTAB() are implemented. And probably lua macros plugin needs to be updated accroding to those K-Meleon updates.

Rigth now I noticed the NavigateTo() and OnCloseTab() can cause crashes in several cases with the latest 1.5 alpha.

Hao



Edited 1 time(s). Last edit at 08/17/2007 09:25PM by Hao Jiang.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: August 23, 2007 07:29PM

@mark307,

I just recompiled the luamacro plugin 0.4.0 with latest K-MeleonPlugin.h, K-MeleonConst.h. Seems the compatibility problem is fixed. And I added the open_newtab open_backgroundtab into the NavigateTo() function in your code.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: mark307
Date: August 24, 2007 02:33PM

@Hao
Good news! Many thanks.

But I feel little strange. I could not find big difference between 1.1 and CVS kmeleon_plugin.h.

Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: August 24, 2007 03:12PM

@mark307,

I feel odd too. However I was wrong about my previous post. The new compiled version is just a little better but not fixed the problem, It still can ALWAYS give me crash in some cases. I 'm not very sure it's the NavigateTo() function causing this crash but very likely.

Let me know whether you have the latest K-Meleon 1.5a exe or I can send it to you for testing. Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: August 24, 2007 05:54PM

Looks like the get_hwnd() can't get the correct hwnd from K-Meleon, then K-Meleon only get hwnd as null so it crashed.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: August 27, 2007 09:43PM

@mark307,

It finally turned out to be a bug with unicode character in K-Meleon exe (1.5 alpha) and has been fixed by Dorian in the latest alpha already. So don't worry about it.

Regards,

Hao

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: mark307
Date: August 29, 2007 02:41PM

It's nice that the bug was fixed.

Quote

Let me know whether you have the latest K-Meleon 1.5a exe or I can send it to you for testing.

Sorry. I don't want to be a special person in k-meleon users. When 1.5a is published for users even if it is for testing, I will get it with pleasure.

Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: August 29, 2007 06:12PM

Quote
mark307
It's nice that the bug was fixed.

Quote

Let me know whether you have the latest K-Meleon 1.5a exe or I can send it to you for testing.

Sorry. I don't want to be a special person in k-meleon users. When 1.5a is published for users even if it is for testing, I will get it with pleasure.

Thanks.

I guess the official 1.5a will be out in the near future and we won't wait too long for that. AFAIK, the current luamacro plugin works fine with 1.5a so there won't be an urgent need to update the luamacro plugin I think. Thank you for your work.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: erica
Date: October 09, 2007 03:43PM

Dear sirs.
Excuse me,There was quality that I ran out of in a file, but where should have been able to be available?.Concretely5.1.dll file is insufficient.
Will it be to be said to compile it from a source?
Yours sincerely,

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: erica
Date: October 09, 2007 04:56PM

sorry,very sorry.I overlooked it.I was available safely.I am sorry repeatedly.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: October 21, 2007 04:53PM

I suggest merge util plugin's functions into luamacro plugin.

Hao

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: mark307
Date: October 24, 2007 01:57PM

@Hao
I don't know why you suggest it. Would you tell me the detail?

PS, I became to see it is better to keep macros (include lua) free for users. It means fundamental functions is implemented in built-in or plugin like history and searchbar. Then I wrote the plugin what has functions "undo latest closed page" and "rewind". It is public on my page.

Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: October 24, 2007 02:55PM

@mark307,

Thank you for your reply. The reason for this suggestion is:

1. Instead of maintaining 2 plugins, only one needs to be.

2. In the process of using lua macros lately, it turned out I 've been using util plugin a lot. It would be nice to have its function just built-in lua macros plugin instead of doing plugin calls.

3. And I found out lately, I bumped on problems sometime the plugin call from lua macros to util plugins failed after using K-Meleon for a while which confused me a lot. (When testing the lua macros, it 's working fine. It's just only after a while using K-Meleon, the lua macros failed to call the util plugin...)

So above are the reasons of my suggestion.

Hao

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: mark307
Date: October 26, 2007 02:24PM

Thank you. I understood. Perhaps 3rd problem is bug. I'll investigate it.

Well, the lua has many functions provided by the utils plugin. Functions that the utils provides but the luamacro doesn't are "copyfile", "RegRead", "GetOSVer", maybe.

Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: desga2
Date: October 31, 2007 01:45PM

Hi mark307, I'm testing and doing changes in Hao's KMCCF 0.0.8 beta1 and i like change text box in preference panel for this have scrolleables, i say that this text box don't showed all string and you can't scroll the cursor for look the end of string in text box.
For example in Useragent string: GUI.lua file code

{type="static",x=5,y=55,width=100,height=10,id="IDSTATIC",caption="UserAgent string:"},	
{type = "edit",style = w32dlg.WS_BORDER,x=70,y=54,width=300,height=10,id="IDUSERAGENTSTRING",caption=""},

I can't scroll cursor for look at the end of string in this 'edit' type text box.
I think that must have a style option (as w32dlg.WS_UNLOCK or similar) for unlock cursor scroll in this controls.
I serach in lua 5.1.1 manual but not found any menthion to use of any windows controls.

Can you help me or indicate a lua manual about use of this windows controls?

Thanks.

K-Meleon in Spanish



Edited 1 time(s). Last edit at 10/31/2007 01:46PM by desga2.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: mark307
Date: October 31, 2007 03:52PM

Hi desga2, I guess w32dlg.ES_AUTOHSCROLL is what you want.

{type = "edit",style = w32dlg.WS_BORDER+w32dlg.ES_AUTOHSCROLL,x=70,y=54,width=300,height=10,id="IDUSERAGENTSTRING",caption=""},

This uses my dialog library. The document and examples are contained in my distribution. You can get it from my page.

kmplus-0.0.5.zip (112k)

But the library isn't enough expressed, sorry. I think who uses this library must have knowledges of Windows programming.

CreateDialogIndirect Function ()
Dialog Boxes

Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: desga2
Date: October 31, 2007 05:42PM

A lot of thanks mark307, now work fine!
I'm programmer, but since a long time don't leave me program because they know that i'm very good programmer winking smiley

Thanks for links!

K-Meleon in Spanish

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: November 01, 2007 04:16PM

Great! This kmplus 0.05 works like charm. Good work mark307!

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: mark307
Date: November 03, 2007 04:08PM

??? Did I forget to announce 0.0.5? winking smiley
Anyway, I make links for another works at the opportunity.

"undo latest closed page" and "rewind" plugin
undoclosed-0.0.0.zip (13k)
builtin spellchecker plugin (experimental)
spelltest-0.0.0.zip (20k)

Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: erica
Date: November 10, 2007 03:13PM

Excuse me.
I ask a very ashamed question.
KM said that there is not macros.lua.
Possibly,macros.lua is myself writting?(;´Д`)
In other words is a description method to say that I learn it by myself? (ノД`,)
It's difficult.(;_winking smiley
If there is a site writing the commentary of the way of writing, will you teach it Please?

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: erica
Date: November 10, 2007 03:43PM

sorry,I misunderstood it.It was settled.
Because the place of the profile changed, I have made a mistake.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: desga2
Date: November 10, 2007 04:25PM

Hi, erica,
Lua macros path is relative if you change your profile path, lua macros folder is not found. smiling smiley

K-Meleon in Spanish

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: mark307
Date: November 11, 2007 02:29PM

@erica
A Japanese translation of lua language manual (230k)

I know the example macros.lua isn't useful. This is a package for Japanese contains a search function.
search.zip (8K)
This sample needs also kmplus library. A kmplus.dll must be in lua folder.

P.S. Because Japanese character sometimes brings strange view, you shouldn't use them in the forum. 2ch is good to talk by Japanese. (But the luamacro is perhaps disliked in there.)

Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: November 14, 2007 02:18AM

@mark307,

Do you know how to change the font on caption or labels in the property page created by kmplus?
Especially this would be useful when displaying east asian language.

And here is a screenshot which I am using the kmplus plugin to construct a property page as the preference page for K-Meleon 1.5a in Chinese:



it works smoothly however the font is not as beautiful as expected and I 'm just wondering whether it's possible to change this font particulaly using kmplus.


Thanks,

Hao



Edited 2 time(s). Last edit at 11/14/2007 05:08AM by Hao Jiang.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: mark307
Date: November 15, 2007 02:09PM

@Hao
Sorry, I forgot to describe it.

A top level table of a dialog template has "font" and "point" indexes, ex:

local d = create_dialog({
width = width, height = height, caption = "dialog",
font = "MS UI Gothic", point = 18, -- font
(snip)
})

These two items always make a pair. If which is only appeared, it is ignored. On a property sheet, these must be specified on each page.

A font of (window or dialog) caption is defined by system, then kmplus cannot change it.

Thanks.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: JujuLand
Date: November 15, 2007 09:07PM

Hello mark307,

I have tested your spelltest kplugin, and I'm really happy with this feature. But I haven't make work some features:

1) Adding or replacing en-US by other language fr-FR for example, and it doesn't work anymore.

2) How to correct an error. Must we have a menu entry which calls spelltest ?? Nothing appears in right menu when the cursor is over a mispelled word.

Really good job for a beginning ...

---------------------------
[Edit 22:15]

To change the language, I have tried to rename the files from fr-FR to en-US, and it works.

It's not really a good way ... would it be possible to use a pref to choose the language ?

[/edit 22:15]
--------------------------
[edit 22:21]

the pref exists and is named "spellchecker.dictionary" :-)

I just have now to test how to correct errors.

[/edit 22:21]

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





Edited 4 time(s). Last edit at 11/15/2007 09:23PM by JujuLand.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: JujuLand
Date: November 15, 2007 09:55PM

That's right, I have made work this spellchecker. It's really easy.

I just had a crash after disabling and enabling it with right menu.

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





Edited 1 time(s). Last edit at 11/15/2007 09:56PM by JujuLand.

Options: ReplyQuote
Re: luamacro plugin 0.4-
Posted by: Hao Jiang
Date: November 16, 2007 04:38AM

Quote
mark307
@Hao
Sorry, I forgot to describe it.

A top level table of a dialog template has "font" and "point" indexes, ex:

local d = create_dialog({
width = width, height = height, caption = "dialog",
font = "MS UI Gothic", point = 18, -- font
(snip)
})

These two items always make a pair. If which is only appeared, it is ignored. On a property sheet, these must be specified on each page.

A font of (window or dialog) caption is defined by system, then kmplus cannot change it.

Thanks.

Works like charm. Thanks. Now the preference looks much more beautifully

Hao

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


K-Meleon forum is powered by Phorum.