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] i think you will like this one better: [url=http://kmext.sourceforge.net/files/soundcontrol.7z]http://kmext.sourceforge.net/files/soundcontrol.7z[/url] this functions much better and the default soundcard will have a checkmark.. unselecting the checked soundcard or selecting the unchecked soundcard will switch default device to the other card(super-toggle). this way you can easily tell which soundcard is currently the default one from the menu. [img]http://starvega.bizhat.com/kmnanny/soundcontrol.png[/img] updates include a statusbar indication of which soundcard is default and there's also an audioalert saying which card has been set as default to ensure the device has been switched properly before opening a stream. there's also an accelerator (ctrl+alt+l) for easy toggle. kmeleon will now revert to default soundcard automatically upon exit so you don't need to worry about forgetting to set back the default one and there's no need for startup reg entry now. the package includes the audio wav alerts, extratc in kmeleon folder and then open the macro to edit values according to device name and regkey paths. you can also use the extension manager kem'edit macro' button. edit red paths according to audio devices names and the reg key paths [color=green][sub]# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage) # --------toggles soundcards(requires atleast 2 audio devices) #--edit values below according to souncard names and regkey paths $sc_primary=("[color=red]Creative SB PCI[/color]"); $sc_secondary=("[color=red]FM801 audio PCI[/color]"); $primary_key=("[color=red]I:\\applications\\applications-x\\PopSel\\exras\\sound1.reg[/color]"); $secondary_key=("[color=red]I:\\applications\\applications-x\\PopSel\\exras\\sound2.reg[/color]"); #--end of edit values #------------------------------------------------------------------------------------------------- $_tool_path=getfolder(RootFolder)."\\Tools"; $primary_alert=getfolder(RootFolder)."\\Tools\\soundcontrol\\sc1.wav"; $second_alert=getfolder(RootFolder)."\\Tools\\soundcontrol\\sc2.wav"; primarycreative{ menuchecked=(getpref(INT,"soundcard.default")=="1"); togglepref(INT,"soundcard.default",1,2); $creativesb=getpref(INT,"soundcard.default"); $creativesb==1?&soundcard1:&soundcard2; } soundcard1{ exec("regedit.exe /s \"".$primary_key."\""); $scprime=("soundcard switched: ".$sc_primary); exec($_tool_path."\\soundcontrol\\scalert.exe " . $primary_alert); statusbar($scprime); } setdefaultsc{ exec("regedit.exe /s \"".$primary_key."\""); $scprime=("soundcard switched: ".$sc_primary); exec($_tool_path."\\soundcontrol\\scalert.exe " . $primary_alert); statusbar($scprime); } secondaryfm801{ menuchecked=(getpref(INT,"soundcard.default")=="2"); togglepref(INT,"soundcard.default",2,1); $fm801=getpref(INT,"soundcard.default"); $fm801==2?&soundcard2:&setdefaultsc; } soundcard2{ exec("regedit.exe /s \"".$secondary_key."\""); $scsecond=("soundcard switched: ".$sc_secondary); exec($_tool_path."\\soundcontrol\\scalert.exe " . $second_alert); statusbar($scsecond); } resettoprimary{ setpref(INT,"soundcard.default",1); exec("regedit.exe /s \"".$primary_key."\""); } soundcards_BuildMenu{ #alternative menu for me:edit>configuration #setmenu("_Config_General",popup,"SC Audiomapper",10); setmenu("&Tools",popup,"SC Audiomapper",3); setmenu("SC Audiomapper",macro,$sc_primary,primarycreative); setmenu("SC Audiomapper",macro,$sc_secondary,secondaryfm801); } togglecards_SetAccels{ setaccel("CTRL ALT L","macros(primarycreative)"); } #--------------------------------------------------------------- $OnInit=$OnInit."soundcards_BuildMenu;togglecards_SetAccels;"; $OnQuit=$OnQuit."resettoprimary;"; $macroModules=$macroModules."togglesoundcards;"; [/sub][/color][/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development