Hi!
I'm re-writing this completely. I'm sorry I had not realised the scope of "disrupteds" solution to toggle the titlebar. His "toggletitlebar.kmm" is at the bottom of the following:
The context menu of the ZoomOut Button holds the same actions as the ZoomIn ones, so I replaced them with a new menu, named "Accessible", which I created in menus.cfg. I populated that with disrupteds "titlebar toggler", and the simple "Readability" command (from the Readability macro, without the "settings", which still can be set via -> view -> readability.
I then realized I could use the WinChanger.exe which came with "titlebar toggler" to reach two of my other goals.
1) Not only start the virtual keyboard from K-Meleon, but on top of that, restore/unhide one already running.
2) Toggle a complete toolbar
___________________________________________________________
for that, I had to edit disrupteds toggletitlebar.kmm.
My version:__________________________________________________
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# ---------toggletitlebar with winchanger by ayushu(included in package)
$_tool_path=getfolder(RootFolder)."\\Tools";
togtitlebar{
exec($_tool_path."\\winchanger\\winchanger.exe Window-Title:#CLASSKMeleon Browser Window");
}
toggletitle_BuildMenu{
setmenu("&View",macro,"TitleBar Toggler",togtitlebar,2);
}
togtitlebar_SetAccels{
setaccel("ALT SHIFT T","macros(togtitlebar)");
}
# ---------toggletoolbar
togtoolbar{
exec($_tool_path."\\winchanger\\winchanger.exe Window-SendKeys:#CLASSKMeleon Browser
Window,{ALTDOWN} 02456 {ALTUP}");
}
toggletool_BuildMenu{
setmenu("&View",macro,"ToolBar Toggler",togtoolbar,2);
}
togtoolbar_SetAccels{
setaccel("ALT SHIFT o","macros(togtoolbar)");
}
# ---------VirtKeybd
VirtKeybd{
exec($_tool_path."\\winchanger\\winchanger.exe Window-Restore: Bildschirmtastatur");
exec("osk.exe");
}
OSK_BuildMenu{
setmenu("&View",macro,"OnScreenKeybd",VirtKeybd,2);
}
VirtKeybd_SetAccels{
setaccel("ALT SHIFT v","macros(VirtKeybd)");
}
$OnInit=$OnInit."togtoolbar_SetAccels;toggletool_BuildMenu;";
$OnInit=$OnInit."togtitlebar_SetAccels;toggletitle_BuildMenu;";
$OnInit=$OnInit."VirtKeybd_SetAccels;OSK_BuildMenu;";
##-------------------------------------------------------------------------------
$macroModules=$macroModules."toggletitle;";
___________________________________________________________________
___________________________________________________________________
in toolbars.cfg: edited ZoomOutButton Context Menu:____________________
Zoom Out{
%ifplugin macros
macros(Zoom_Out)|Accessible
Zoom Out. Right-click Accessibility options.
%else
ID_F.......
.......
__________________________________________________________________
in Readability > ReadabilityMenu
added Line: _____________________________________
setmenu("Accessible",macro,"Readability",Readability);
__________________________________________________________________
in menus.cfg:______________________________________________________
# ----- Accessible
Accessible{
ToolBar Toggler=macros(togtoolbar)
TitleBar Toggler=macros(togtitlebar)
StatusBar Toggler=ID_VIEW_STATUS_BAR
&Virtual Keyboard=macros(VirtKeybd)
}
_________________________________________________________
_________________________________________________________
If the numbers for "togtoolbar" up there need more explanation, I may give that later, if needed. See this:
http://kmeleonbrowser.org/forum/read.php?1,8921,8932#msg-8932
Open your accel.cfg, scroll down,
ALT 0 = 2000
ALT 1 = 2001
..
...
....
ALT 9 = 2009
If these are not enough for your number of bars, ask here.
Save, Restart (Make sure the launcher is restarted as well...)
Now, playing with those shortcuts, establish which numbers you need to have between {ALTDOWN} and {ALTUP} up there to switch off one of your toolbars completely.
cheers
SoerenB
Edited 3 time(s). Last edit at 01/30/2010 12:59PM by SoerenB.