Extensions
: K-Meleon Web Browser Forum
All about K-Meleon extensions.
Go to:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
[Please, enable JavaScript to see the code]
Enter code:
[quote=desga2] [quote=disrupted] the only fix for that is that if $cmdline[0] error message uses standard english text..it's not very important..i could just assign exit if cmdline[0]=0 ...i.e. not run if executed without parameters. [color=blue][sub]if $cmdline[0]=0 then msgbox(48,"K-Meleon Extensions Manager Error", "Only execute the manager from inside k-meleon. ") else $inini=(@scriptDir & "\kmextensions") $kmunext="*.ini" $inipath=("pending") $kmprefs=($CmdLine[1] & "\prefs.js") $kmprof=($CmdLine[1] & "\") ;$testrun=("c:\windows\notepad.exe") $localepath=(@scriptdir & "\locales\" & $cmdline[2] & "\kmextman.ini") $testfile=IniRead($localepath, "kmextman", "1", "") if $testfile=("") then $txt1=("K-Meleon Extensions Manager Error") $txt2=("Only execute the manager from inside k-meleon. ") $txt3=("K-meleon Extensions Manager") $txt4=("uninstall") $txt5=("edit macro") $txt6=("run installer") $txt7=("Note: K-meleon will be restarted on an uninstall/install") $txt8=("can't uninstall: malformed ini, please reinstall this extension or contact the author") $txt9=("The extension: ") $txt10=(" has been uninstalled successfully. ") $txt11=("macro editor mode: when done remember to save and restart k-meleon for changes to take effect") $txt12=("this extension does not include a macro") $txt13=("You don't have any installed extensions. Would you like to download extensions?") $txt14=("installed extensions:") $txt15=("install date:") else $txt1=IniRead($localepath, "kmextman", "1", "") $txt2=IniRead($localepath, "kmextman", "2", "") $txt3=IniRead($localepath, "kmextman", "3", "") $txt4=IniRead($localepath, "kmextman", "4", "") $txt5=IniRead($localepath, "kmextman", "5", "") $txt6=IniRead($localepath, "kmextman", "6", "") $txt7=IniRead($localepath, "kmextman", "7", "") $txt8=IniRead($localepath, "kmextman", "8", "") $txt9=IniRead($localepath, "kmextman", "9", "") $txt10=IniRead($localepath, "kmextman", "10", "") $txt11=IniRead($localepath, "kmextman", "11", "") $txt12=IniRead($localepath, "kmextman", "12", "") $txt13=IniRead($localepath, "kmextman", "13", "") $txt14=IniRead($localepath, "kmextman", "14", "") $txt15=IniRead($localepath, "kmextman", "15", "") endif [/sub][/color] [/quote] Sorry disrrupted, but I'm disagree with your solution for this problem. :P I'm working from some time ago in this translation method for AutoIt tools made for K-Meleon. I didn't finish and after holidays I forgive it. I remember that I did something like this: [color=blue][sub] ; First set default strings in english $txt1=("K-Meleon Extensions Manager Error") $txt2=("Only execute the manager from inside k-meleon. ") $txt3=("K-meleon Extensions Manager") $txt4=("uninstall") $txt5=("edit macro") $txt6=("run installer") $txt7=("Note: K-meleon will be restarted on an uninstall/install") $txt8=("can't uninstall: malformed ini, please reinstall this extension or contact the author") $txt9=("The extension: ") $txt10=(" has been uninstalled successfully. ") $txt11=("macro editor mode: when done remember to save and restart k-meleon for changes to take effect") $txt12=("this extension does not include a macro") $txt13=("You don't have any installed extensions. Would you like to download extensions?") $txt14=("installed extensions:") $txt15=("install date:") ; Second check cmdline arguments if $cmdline[0]=0 then msgbox(48,$txt1, $txt2) exit endif ; Third load loacal language ini file $inini=(@scriptDir & "\kmextensions") $kmunext="*.ini" $inipath=("pending") $kmprefs=($CmdLine[1] & "\prefs.js") $kmprof=($CmdLine[1] & "\") ;$testrun=("c:\windows\notepad.exe") $localepath=(@scriptdir & "\locales\" & $cmdline[2] & "\kmextman.ini") $testfile=IniRead($localepath, "kmextman", "1", "") if $testfile!=("") then $txt1=IniRead($localepath, "kmextman", "1", "") $txt2=IniRead($localepath, "kmextman", "2", "") $txt3=IniRead($localepath, "kmextman", "3", "") $txt4=IniRead($localepath, "kmextman", "4", "") $txt5=IniRead($localepath, "kmextman", "5", "") $txt6=IniRead($localepath, "kmextman", "6", "") $txt7=IniRead($localepath, "kmextman", "7", "") $txt8=IniRead($localepath, "kmextman", "8", "") $txt9=IniRead($localepath, "kmextman", "9", "") $txt10=IniRead($localepath, "kmextman", "10", "") $txt11=IniRead($localepath, "kmextman", "11", "") $txt12=IniRead($localepath, "kmextman", "12", "") $txt13=IniRead($localepath, "kmextman", "13", "") $txt14=IniRead($localepath, "kmextman", "14", "") $txt15=IniRead($localepath, "kmextman", "15", "") endif [/sub][/color] I think this is better solution. :) About extprop.au3, I remember that there is a standard function to get the date of files, no additionals UDF is needed for it. I'll search it this evening.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
FAQ
English