Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=disrupted] found a much better way to set the bg image.. much easier than the other complicated and rather baroque method by setting accelerators in the ksm macro..1 for bg image on and one on off like this [color=green][sub]setbgimgon{ #alert("background image on", "testfuck", EXCLAIM) setpref(BOOL,"kmeleon.display.backgroundImageEnabled", "true"); } setbgimgoff{ #alert("background image off", "testfuck", EXCLAIM) setpref(BOOL,"kmeleon.display.backgroundImageEnabled", "false"); } setbgimgon_SetAccels{ setaccel("CTRL ALT SHIFT 1","macros(setbgimgon)"); } setbgimgoff_SetAccels{ setaccel("CTRL ALT SHIFT 0","macros(setbgimgoff)"); }[/sub][/color] and then the script which will naturally exit after clicking the exit button, checks the setting in ksm and accordingly sends the keys to the km window [color=blue][sub]Case $msg = $cancbutton $chkbg=GUICtrlRead($optbg) if $cmdline[2]=("0") and $chkbg=("1") then guidelete() winactivate("[CLASS:KMeleon Browser Window]", "") send("^!+1") elseif $cmdline[2]=("1") and $chkbg=("4") then guidelete() winactivate("[CLASS:KMeleon Browser Window]", "") send("^!+0") endif ExitLoop Case $msg = $GUI_EVENT_CLOSE ExitLoop endselect WEnd exit[/sub][/color] no more worries about writing that pref onquit and checking for kmrestart or loader and also this is better because the bgimage change in ksm will also affect kmeleon, so if the user opens km preferences, toolbar background will be set exactly as last set in ksm download update [url=http://kmext.sourceforge.net/tests/ksm-NT.zip]http://kmext.sourceforge.net/tests/ksm-NT.zip[/url][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development