General :  K-Meleon Forum
General discussion about K-Meleon. 
External ListBox control for the macro language
Posted by: JamesD
Date: August 15, 2008 04:13AM

I am getting close on having this concept complete. I have used AutoIt ver 3 to construct an executable that can be called from the macro language. The user's choice is passed back to the macro language via the registry. I am just finishing up the readme stuff and the demo macro.

Question that I have is how to get this information to users. I can provide the macro and the script for AutoIt, but then each user who wishes to use this would have to download and install AutoIt for themselves. If I knew where to put the executable, then I could just provide directions on how to get it. I don't know which method would be best.

And if that question is not enough, I think different operatings systems require different compilers for AutoIt scripts. That would mean two different executables.

This sounds like something that an extension could do, but I have no experience with making them.

I am open to suggestions or advice on this.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: desga2
Date: August 15, 2008 05:07AM

I can help you! Send me it by mail and i make an extension an upload it to my website.
Only one executable for windows is needed, what other systems do you like compiler?

(My mail adress can be found in my web page, "K-Meleon in Spanish" link at bottom)

K-Meleon in Spanish



Edited 3 time(s). Last edit at 08/15/2008 05:36AM by desga2.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: August 15, 2008 07:31AM

I have the files compressed into a 7z file on my website. The link to the 7z file is http://www.perigee.net/~jmd8421r/KMListBox.7z

Extract into the user macro folder and it should work.

This is a first try and a very simple demo. Look for the item "KMListBox" under the HELP menu.

@desga2

This may be all that is needed. If you would like to put it into an extension, that is just fine with me.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: desga2
Date: August 15, 2008 08:57AM

I tried it and works fine in 1.5.

If you like send me by mail the autoit3 source code and i can add some implementations to better it.

I think that an extension isn't needed because this is more a helper to develop others macros more than an extension tool.

P.S.; Nice photos in your site. smiling smiley

K-Meleon in Spanish



Edited 1 time(s). Last edit at 08/15/2008 09:02AM by desga2.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: August 15, 2008 10:39AM

@desga2

The link to the script file is http://www.perigee.net/~jmd8421r/script.7z

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: desga2
Date: August 16, 2008 12:00AM

@ JamesD:
Thanks! I'm working on it. smiling smiley

K-Meleon in Spanish

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: August 20, 2008 07:12AM

I have updated KMListBox. It now has language support for the listbox control and has localizations for the macro. Everything is included in KMListBox.7z at http://www.perigee.net/~jmd8421r/KMListBox.7z

All the documentation is included in the KMListBox.htm file. Languages supported are English, French, Spanish, and German. There are easy instructions on how to support other languages. The source code for the KMListBox.exe file is also included.

Extract the contents of KMListBox.7z to your user macro folder.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: January 25, 2016 10:14PM

Coming soon in this thread is an updated KMListBox system. The links in the prior postings are no good. That was some space on the server from my previous ISP.

After weeks of looking, I finally found, on a CD-ROM, a copy of the code for the external list box and also the macro code needed to use it.

That dates from 2008 so some work is needed to make it work smoothly with the current versions of K-Meleon.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: January 25, 2016 10:33PM

Back in 2008 I had only some of the languages that KM supports today. I need some help to verify my translations and add files for Russian and Chinese.

I have here the language files used by the KMListBox.exe program. Each is only three lines and must be encoded in UTF-8-BOM.

https://dl.dropboxusercontent.com/u/1522294/KMlbLanguage.7z

I am requesting that those who have the language skills which I lack, please update/add to these files. I can make the files, if you can just post the corrected work in this thread.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JohnHell
Date: January 25, 2016 11:13PM

Spanish:

(Seleccione uno)
Aceptar 
Cancelar


Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: January 26, 2016 01:22AM

JohnHell

Change made. Thanks.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: siria
Date: January 26, 2016 02:42AM

(Auswählen)
OK
Abbrechen

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: rodocop
Date: January 26, 2016 04:54AM

cannot download the full extension package - the link looks like being for members only.

I should see ListBox in action to make correct translation even for these frugal strings...


Latest Release KM75.1 Latest dev KM76RC + u1 ||| Visit The K-Meleon Place and join me there!
Old good stuff: K-Meleon-1.6db+NS // KM-16-S2014 // 1.6beta2.6 // K-Meleon Twin+

RECOMMENDED! K-Meleon 75.1 Pro: Download portable =//= Discuss on forum

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: January 26, 2016 05:45AM

Quote
JamesD
The links in the prior postings are no good. That was some space on the server from my previous ISP.

rodocop

This is a good link for the original work.
https://dl.dropboxusercontent.com/u/1522294/KMListBox.7z

It looks like this:




Edited 2 time(s). Last edit at 01/26/2016 06:00AM by JamesD.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: January 26, 2016 05:56AM

siria

Change made. Thanks.

Looks like I was not even close back in 2008.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: January 26, 2016 08:25AM

I have been doing some more testing and I have determined that one can safely display choices which are up to 120 characters in length. Longer choices will write outside the selected choice display area. The following picture is of a choice containing 120 characters.

Only a little more than 60 characters appear in the selection stack, but if highlighted, the full 120 characters appear in the selected choice display area.

The new line symbol, \n, can be used to force a line break.



This is available in the original KMListBox.exe file. I have no present plans to change the executable.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: Chanson Yu
Date: January 26, 2016 11:01AM

Hi JamesD,

(选择一项)
确认
取消

__________________________________________________
K-Meleon zh-CN
http://pan.baidu.com/s/1o6NoHfG

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: January 26, 2016 07:55PM

Chanson Yu

Thank you very much. I will include this language in the next release.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: rodocop
Date: January 27, 2016 04:16AM

\locales\ru\KMListBox.kml (Russian/Русский)

peaches=персики
strawberries=клубника
apples=яблоки
Do not click this OK until listbox choice is done.=Не нажимайте ОК, не сделав выбор
Waiting for ListBox=Ждем ListBox
Registry value=Значение реестра
Language files=Языковые файлы
Readme Page=Страница readme
Demonstration=Демо
Configure=Конфигурация

russian._ru
(Выберите что-то одно)
ОК
Отмена


Latest Release KM75.1 Latest dev KM76RC + u1 ||| Visit The K-Meleon Place and join me there!
Old good stuff: K-Meleon-1.6db+NS // KM-16-S2014 // 1.6beta2.6 // K-Meleon Twin+

RECOMMENDED! K-Meleon 75.1 Pro: Download portable =//= Discuss on forum

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JohnHell
Date: January 27, 2016 06:59AM

Oh, didn't see those lines:


\locales\es-ES\KMListBox.kml (Spanish/Español)

peaches=melocotones
strawberries=fresas
apples=manzanas
Do not click this OK until listbox choice is done.=No haga click en Aceptar hasta que la selección se haya realizado.
Waiting for ListBox=Esperando a ListBox
Registry value=Valor del registro
Language files=Archivos de idioma
Readme Page=Página de Léeme
Demonstration=Demostración
Configure=Configurar


Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: January 28, 2016 01:55AM

rodocop

Thank you for the help.

rodocop and JohnHell

I had forgotten the old demo kmm file. I will add this info into it as an update, I think.

I am working on a new demo and new method for language change. From KM 75.1 and later, I hope the language selection will be automatic.



Edited 1 time(s). Last edit at 01/28/2016 01:57AM by JamesD.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: Chanson Yu
Date: February 01, 2016 09:05PM

JamesD, Thank you and siria for so much useful macros!!! smiling smiley

\locales\zh-CN\KMListBox.kml
peaches=红桃
strawberries=草莓
apples=苹果
Do not click this OK until listbox choice is done.=选择列表框中选项,然后点击确认。
Waiting for ListBox=请等待列表框
Registry value=注册表值
Language files=语言文件
Readme Page=说明
Demonstration=示例
Configure=配置

简体中文._zh
(选择一项)
确认
取消

__________________________________________________
K-Meleon zh-CN
http://pan.baidu.com/s/1o6NoHfG

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: February 02, 2016 02:11AM

Chanson Yu

Thank you very much for the translation.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: February 05, 2016 03:51AM

I am making good progress on the new version of KMListBox. However, I just realized that I have not asked for review/update of the translation files for French and German.

I did the translation work at Yahoo Babel Fish in 2008. Experience has taught me that doing this kind of translation online does not yield good results. JohnHell, rodocop, and Chanson Yu have provided new code for Spanish, Russian, and Chinese so I am asking if someone can review and update the code below.

Just post your replies in this thread. Thanks.


\locales\de-DE\KMListBox.kml (German/Deutsch)

peaches=Pfirsiche
strawberries=Erdbeeren
apples=Äpfel
Do not click this OK until listbox choice is done.=Klicken Sie nicht dieses O.K. an, bis listbox Wahl erfolgt ist.
Waiting for ListBox=WarteListBox
Registry value=Registerwert
Language files=Sprachakten
Readme Page=Readme Seite
Demonstration=Demonstration
Configure=Bauen Sie zusammen


\locales\fr-FR\KMListBox.kml (French/Français)

peaches=pêches
strawberries=fraises
apples=pommes
Do not click this OK until listbox choice is done.=Ne cliquez sur pas cet OK jusqu'à ce que le choix de listbox soit fait.
Waiting for ListBox=ListBox de attente
Registry value=Valeur d'enregistrement
Language files=Dossiers de langue
Readme Page=Page de Readme
Demonstration=Démonstration
Configure=Configurez


Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: siria
Date: February 10, 2016 07:07AM

oops, almost forgot...

peaches=Pfirsiche
strawberries=Erdbeeren
apples=Äpfel
Do not click this OK until listbox choice is done.=Dieses OK erst nach erfolgter ListBox Auswahl anklicken.
Waiting for ListBox=Warte auf ListBox
Registry value=Wert in Registry
Language files=Sprachdateien
Readme Page=Liesmich-Seite
Demonstration=Demonstration
Configure=Konfiguration


My french is rather worse than english, but hopefully a bit better than babelfish cool smiley Just in case no one else jumps in:

1 Ne pas cliquer sur cet OK qu'après un choix dans listbox
2 Attendant listbox
3 ?
4 ok
5 ?
6 ok
7 ok



Edited 3 time(s). Last edit at 02/10/2016 07:28AM by siria.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: February 11, 2016 06:13AM

siria

Thank you.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JujuLand
Date: February 16, 2016 02:53AM

peaches=pêches
strawberries=fraises
apples=pommes
Do not click this OK until listbox choice is done.=Ne pas cliquer sur OK avant que le choix ne soit effectif.
Waiting for ListBox=En attente de ListBox
Registry value=Valeur du registre
Language files=Fichiers de langue
Readme Page=Page d'explication
Demonstration=Démonstration
Configure=Configuration

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.19-6 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: February 16, 2016 07:47PM

Alain

Thank you.

I believe this was the last piece that I needed.

Options: ReplyQuote
Re: External ListBox control for the macro language
Posted by: JamesD
Date: February 17, 2016 11:15PM

The version 2 of KMListBox has been posted in the Extensions forum.


http://kmeleonbrowser.org/forum/read.php?9,137673

I offer my thanks to everyone who helped.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.