UPDATE: Version 2.0 (2010-02-12), with lots more options and menu
.
Needed a function to quickly toggle more toolbars in fullscreen mode, not just the tabsbar. This macro can now be used to toggle between sort of a "small" and a "full" fullscreen mode, and more options ;-)
While F11 still toggles Full Screen on/off, this macro adds "Shift+F11" to toggle more toolbars.
Also accessible by right-clicking on page.
New settings will be remembered for next time. To reset, click SHIFT+F11 again.
Escape from FullScreen mode as always with simple F11, or right-click on page.
To toggle single toolbars, click Edit > Preferences (F2) > Fullscreen.
It can also be used to just hide the title bar of tabs or windows, in the minimalist version (=fullscreen permanent, with all 4 toolbars visible, then Shift+F11 for "real" fullscreen). PS: I think in K-Meleon 1.6 or newer a title bar setting is already included by default.
DOWNLOAD v2.0 as .kmm : http://www.datafilehost.com/download-9f256460.html
Allow cookies and referer, open link, then download from "click here".
This is the kmm-file as below in blue, just put it as it is into your macros folder and restart K-Meleon.
(Re-upload 2011-05-22, old link was broken due to inactivity 4 weeks, kmm+7z)
Or DOWNLOAD v2.0 as .7z: http://www.datafilehost.com/download-a60268b5.html
Allow cookies and referer, open link, then download from "click here".
This is the 7z-file for the KEM-installer, includes an ini-file and screenshots for info and later uninstall. Can also be added without installer, just unzip it into your K-Meleon folder and restart browser (the 'installer' does the same, just a little more comfortable).
Or alternatively manual installation:
As usual, open notepad or another editor, and copy into it the BLUE lines below, then save as "fullscreen2plus.kmm" in your macros folder (make sure there's no .txt at the end). Restart browser.
PS: Your configuration is needed to decide which toolbars you want to toggle additionally:
the status bar, the tabs bar, the task bar (=block at bottom), rebar (=block at top).
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ------------------ fullscreen2plus.kmm -------------- (Version 2.0) -----------------
# Menu entry: View > Full Screen... Or right-click on page
# Shortcut: Shift+F11 and more , set below / Command: "macros(fullscreen2plus_togglebars)"
# Version: 2.0 / 2010-02-12 / by Siria
# Forum: kmeleon.sourceforge.net/forum/read.php?9,102909
#----------------------------------------------------------------------------
#
# Like in many windows programs, F11 toggles FullScreen mode on/off in K-Meleon too.
# The toolbars to switch off are defined in Edit > Preferences (F2) > Full Screen
#
# This macro offers a menu to toggle more toolbars on-the-fly, and a second fullscreen mode:
# Click SHIFT+F11 to TOGGLE more toolbars:
# By choice the status bar, the tabs bar, the task bar (=block at bottom), rebar (=block at top).
# New settings will be remembered for next time. To reset, click SHIFT+F11 again.
# Escape from FullScreen mode always with simple F11, or right-click on page.
#
# This offers also to toggle just the TITLE bar on/off in pseudo-normal-mode (=fullscreen but all bars visible)
#
########### CONFIGURATION: ###########
# Choose in next lines which toolbars to toggle additionally, then set a # on the lines to ignore.
# (Note: Toggling tabsbar may have a little bug under certain conditions?)
fullscreen2plus_togglebars{
macroinfo="Full screen: Toggle more toolbars (Shift+F11) (Configure in macro fullscreen2.kmm)";
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_rebar");
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_tabsbar");
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_statusbar");
#togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_taskbar");
&_FullScr2p_view; }
# Choose in next lines a fixed "mode-3", set hidden toolbars to "true" and visible ones "false"
# Will be remembered for next fullscreen toggle.
# If you want to modify the shortcuts: Put want you want here, other shortcuts or other commands:
# (Update manually menu text in the "setmenu" lines below)
fullscreen2plus_toggletop{
macroinfo="Full screen: Toggle menu bar";
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_rebar");
&_FullScr2p_view; }
fullscreen2plus_togglebottom{
macroinfo="Full screen: Toggle tabs bar and status bar";
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_tabsbar");
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_statusbar");
&_FullScr2p_view; }
fullscreen2plus_toggleboth{
macroinfo="Full screen: Toggle menu bar, tabs bar and status bar (Alt+F11)";
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_rebar");
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_tabsbar");
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_statusbar");
&_FullScr2p_view; }
fullscreen2plus_toggleall{
macroinfo="Full screen: Toggle menu bar, tabs bar, status bar and task bar";
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_rebar");
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_tabsbar");
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_statusbar");
togglepref(BOOL,"kmeleon.plugins.fullscreen.hide_taskbar");
&_FullScr2p_view; }
_FullScr2p_view{
# Show FullScreen. If already in that mode, toggle it first "off" then "on" again to refresh the toolbar visibility:
if (getpref(BOOL,"kmeleon.plugins.fullscreen.last")==true) plugin(fullscreen,"");
plugin(fullscreen,""); }
################# TITLE BAR ##############
fullscreen2plus_titleoff{
macroinfo="Hide title bar (=Workaround: Set full screen with all bars visible)";
&_fullscreen2plus_setbak;
setpref(BOOL,"kmeleon.plugins.fullscreen.hide_rebar","false");
setpref(BOOL,"kmeleon.plugins.fullscreen.hide_tabsbar","false");
setpref(BOOL,"kmeleon.plugins.fullscreen.hide_statusbar","false");
setpref(BOOL,"kmeleon.plugins.fullscreen.hide_taskbar","false");
&_FullScr2p_view;
&_FullScr2p_getbak;
}
fullscreen2plus_exitFS{
macroinfo="Show title bar (=Workaround:Exit full screen mode)";
if (getpref(BOOL,"kmeleon.plugins.fullscreen.last")==true) plugin(fullscreen,"");
}
Why don't you put your macros at least in a zip file so it's easier for users to install? You certainly know how to do so. Better yet, make it compatible with KM Extensions Central & the Extensions Manager.
Actually I had done that for my "bigger" stuff (Style Buttons, Capture Fast Stone, Skin,..), just not sure if it's worth it just for smaller single kmm files (also considering the download numbers). And didn't dare in the wiki, since no one else did so far, that is from those I've looked at. Anyway, I may add it to the older ones when I get around...
Okay, the zip for this one will come later in the day, just no time anymore right now.
And as usual I got a little carried away again with this macro, now it's updated to version 2.0, getting a little monstrous again ;-) See first post above for new code.
By the way, while you're here, don't happen to know any trick to toggle single toolbars in a MACRO, those in "View>Toolbars"...? If I just toggle the visibility prefs, that does nothing without a restart, so needs some trick :-(
Edited 3 time(s). Last edit at 02/13/2010 03:39AM by siria.
Re: fullscreen2plus (more full screen modes, or just to hide title bar)
DOWNLOAD v2.0 as .kmm :(link broken, new one see above)
Allow cookies and referer, open link, then download from "click here".
This is the kmm-file as above, just put it as it is into your macros folder and restart K-Meleon.
Or DOWNLOAD v2.0 as .7z:(link broken, new one see above)
Allow cookies and referer, open link, then download from "click here".
This is the 7z-file for the KEM-installer, includes an ini-file and screenshots for info and later uninstall. Can also be added without installer, just unzip it into your K-Meleon folder and restart browser.
Edited 3 time(s). Last edit at 05/23/2011 03:14AM by siria.
Re: fullscreen2plus (more full screen modes, or just to hide title bar)
For the "{ALTDOWN} 134 {ALTUP}" to work, you have to define some new accelerators in accels.cfg:
# ToolbarsVisibility
ALT 0=2000
ALT 1=2001
ALT 2=2002
ALT 3=2003
and so on, do NOT define any key combinations you use elsewhere. If you have more than 10 "toolbands" (in about:config), use letters to get up to 2013 or whatever. See this thread:
Hiding Toolbars...
The tricky thing is to find out which number(s) you need to supply instead of my "134" (here: 1 for address, 3 for abp, 4 for main bar) , those are different for each installation. They may even change when you disable a toolband from the View -> toolbars menu.
An easy way, but probably too "manual" for your purpose, is to just test by using the accelerators after you defined them. At least, that should prove that the bars are hidden instantly
I hope this is any help.
Have a nice weekend!
SoerenB
Re: fullscreen2plus (more full screen modes, or just to hide title bar)
....You probably know other ways to pass keys from a macro to k-meleon, so you wouldn't need the toggleTitle.7z - that was just the easiest way for me to send the Alt 1, Alt 3, Alt 4 via ButtonContext...
SoerenB
Re: fullscreen2plus (more full screen modes, or just to hide title bar)
Thanks for the info, Soeren, that's interesting!
And hey, you basically wrote a macro of your own there ;-) No, I don't know about such stuff any more than you do, quite the opposite! The only "programming language" I know (and just the basics) is macro code, but absolutely zero about javascript or changing windows stuff, like you it seems. Occasionally could really use this, just a bit basic stuff *sigh*
Just not sure why you don't set those ALT123 accels in the macro too, along with the other setaccel line.
It's just a pity that for this stuff an external program is needed (winchanger), a rather complicated and geeky looking one, and I do keep thinking there must also be some native K-meleon way, since it CAN toggle its toolbars *grmpf* So I'd happily include some simple lines of javascript or such in a macro, but would rather avoid for now adding more programs. Perhaps at some later point, one never knows.
Re: fullscreen2plus (more full screen modes, or just to hide title bar)
Nu stellen se mal Ihr Licht nich so untern Scheffel, junge Frau!
I know almost nothing about Javascript, and I wouldn't say I can write a macro. What I can do, besides editing toolbar.cfgs, is reading, copying and pasting bits from other folks' macros, and
That was what I needed to add togToolbar to toggleTitlebar.kmm.
Concerning the setAccel part: long before I got to considering those "set" lines, the accels had been set for testing - no need to remove them? I don't use the keyboard very much, as you know...
Re: fullscreen2plus (more full screen modes, or just to hide title bar)
Quote SoerenB
I wouldn't say I can write a macro. What I can do, besides editing toolbar.cfgs, is reading, copying and pasting bits from other folks' macros
Too late Soeren, you have the talent and interest, have already started playing with macros, now you're infected, no escape! That's how I started too, and probably everyone else, LOL!
Re: fullscreen2plus (more full screen modes, or just to hide title bar)
Hi Friends, I am Cine and I have read your site in a very deep and I would like to appreciate you on this brilliant effort. You have provided some thing so much different that I can't have words for thanks.
Cine
Re: fullscreen2plus UPDATE 2.0 (more full screen modes, or just to hide title bar)
siria ... may I ask a stupid question ... the answer is probably right in front of me but I'm not seeing it. What versions of KM is this for ... KM 1.5.4 or KM 1.6 B2 or both?
Re: fullscreen2plus (more full screen modes, or just to hide title bar)