Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
Pages: Previous12
Current Page: 2 of 2
Re: TS-wincontrols
Posted by: concerned user
Date: December 24, 2011 07:32PM

Attention: new way of spamming our forum! Dear mods, please take action.

masymasy is a spammer. The quoted reply above contains spam. There are already several similar posts on this forum.

Options: ReplyQuote
Re: TS-wincontrols
Posted by: guenter
Date: December 24, 2011 08:13PM

Quote
concerned user
Attention: new way of spamming our forum! Dear mods, please take action.

masymasy is a spammer. The quoted reply above contains spam. There are already several similar posts on this forum.


Thx for the hint.

I had so far only found one of the SPAMs of this user or nature myself/independently.


Any user that by chance finds such a scam should leave a note or send a mail with the link to the SPAM post to a moderator: e.g. me.

Thx in advance.


p.s. It is a new way to get unspecified links from a page (this forum) with high page rank. Some of the page rank is then gained by the page that is linked. This is the most effective way the push a site for better ranking with the Google search algorithm.

Can all moderators & users please also look for quotations where the quoted links real linked URLs have been redirected to SPAM pages that the SPAM poster wants to get a link with high page rank in order to improve Google ranking.



Edited 2 time(s). Last edit at 12/24/2011 08:30PM by guenter.

Options: ReplyQuote
Re: TS-wincontrols
Posted by: K
Date: September 05, 2014 03:10PM

Quote
SoerenB
Hi, disrupted,

my compliments, you seem to me so utterly quick and prolific. Sadly, I couldn't make it work on mx KM 1.53.

As I have this other feature wish, live toolbar toggling, I reverted to Autohotkey, because there I know how to send keys to the browser. I now have a button working with:

  • Leftclick to switch to drag mode, then Rightclick anywhere to drag (- even other windows). Releasing RButton exits the .ahk script, so unlock - luckily it even does not popup the contextMenu on releasing.
  • RClick:
-> Minimize
-> NewWindow
-----
Bars 	 ->toggle Titlebar
	 ->toggle Toolbar
	 ->toggle Statusbar
-----
Win 	->Windows List
	->Close Window
	->Exit KM
	->Restart

The biggest problem this gave me is still unsolved: I couldn't make Autohotkey digest the path strings from KM, so I had to hard-code the paths - going to ask on their forums one of these days.

The code of the .ahk script + 2 references:
note: a word forbidden had to be replaced. MouseY DOES have a horizontal counterpart




; Easy Window Dragging
; by Chris Mallet
; http://www.autohotkey.com/forum/posting.php?mode=quote&p=34052
; several forum topics, like:
; ;http://www.autohotkey.com/forum/topic5017.html&highlight=easy+window+dragging 
; AutoHotkey Version: This script requires Autohotkey v1.0.25+
; Platform:       (requires XP/2k/NT)
; Author:         Chris Malletet al. (?)
;
; Script Function: when running, makes the RButton a DragButton, on release, exits, 
; unlocking dragging.
; Be sure your taskbar can show, be shure to know how to move & resize a 
; window from its taskbar labels system menu.	
; 

#SingleInstance, force

RButton Up::
{
exitapp
}

RButton::
CoordMode, Mouse  		; Switch to screen/absolute coordinates.
MouseGetPos, EWD_MouseStartX, EWD_MouseStartY, EWD_MouseWin
WinGetPos, EWD_OriginalPosX, EWD_OriginalPosY,,, ahk_id %EWD_MouseWin%
WinGet, EWD_WinState, MinMax, ahk_id %EWD_MouseWin% 
if EWD_WinState = 0   		; Only if the window isn't maximized 
    SetTimer, EWD_WatchMouse, 80	 ; Track the mouse every n milliseconds. Ori=  
return				; ginal Value=10. Less=>smoother, but eats CPU time

EWD_WatchMouse:
GetKeyState, EWD_LButtonState, LButton, P
if EWD_LButtonState = D  		; Button has been pressed, so drag is complete.
{
    SetTimer, EWD_WatchMouse, off
  return
}
GetKeyState, EWD_EscapeState, Escape, P
if EWD_EscapeState = D  		; Escape has been pressed, so drag is cancelled.
{
    SetTimer, EWD_WatchMouse, off
    WinMove, ahk_id %EWD_MouseWin%,, %EWD_OriginalPosX%, %EWD_OriginalPosY%
  return
}
; Otherwise, reposition the window to match the change in mouse coordinates
; caused by the user having dragged the mouse:
CoordMode, Mouse
MouseGetPos, EWD_MouseQIX, EWD_MouseY
WinGetPos, EWD_WinX, EWD_WinY,,, ahk_id %EWD_MouseWin%
SetWinDelay, -1   			; Makes the below move faster/smoother.
WinMove, ahk_id %EWD_MouseWin%,, EWD_WinX + EWD_MouseQIX - EWD_MouseStartX, EWD_WinY + EWD_MouseY - 

EWD_MouseStartY
EWD_MouseStartX := EWD_MouseQIX  ; Update for the next timer-call to this subroutine.
EWD_MouseStartY := EWD_MouseY
return


Any help with the path/string problem would be appreciated







p.s. habe in deinen Post mal das qoute versetzt. Keine Ahnung, was wegen Thema ist.
Mal JamesD (en-US) oder siria (de wie wir) ansprechen - wegen Thema. mfG



Edited 1 time(s). Last edit at 09/06/2014 12:23AM by guenter.

Options: ReplyQuote
Re: TS-wincontrols
Posted by: siria
Date: September 06, 2014 07:09AM

???
@guenter Bin nicht sicher, ob das überhaupt eine ernsthafte Frage ist, aber wenn du meinst. Außerdem ist mir das ganze viel zu hoch, mit autohotkey etc, und außerdem gab es nach dem zitierten Posting damals ja noch etliche weitere, und es scheint ja am Ende funktioniert zu haben. Überhaupt kapier ich hier rein gar nichts, aber wenn es unbedingt irgendwas mit Pfaden sein soll, und evt. die Pfade im kmm gemeint sein könnten, und womöglich das Problem im Pfad zum KM-Ordner liegen sollte, wenn es dort Leerzeichen dazwischen gibt, mal blind geraten: evt. könnte man versuchen ob es was hilft die Syntax in der kmm-Datei so umzustricken (in Notepad):

syntax in old kmm:
exec($_tool_path."\\ts-wincontrol\\kmwincontrollers.exe restoretitle");

test if helps syntax with quotes around KM-path (modify all exec lines):
exec("\"".$_tool_path."\\ts-wincontrol\\kmwincontrollers.exe\" restoretitle");

Bin eher skeptisch, und Soeren schrieb damals auch noch, dass autohotkey wohl gar keine " " im Link vertrage, auch nicht im Windows-Link außerhalb von KM, also keine Ahnung ob es irgendwas nützt.

------
Nachtrag:
@guenter: Mein Verdacht auf "nicht ernsthaft" verstärkt sich, wenn ich mir den nächsten Eintrag hier unten angucke. Anderer Name nach gleichem Strickmuster, kein ersichtlicher Bezug zum Thread, dafür universeller "passt in alle Blogs und Foren" Text mit externem Link. Erst zum Testen was neutrales, und als nächstes...? Oder kann jemand, der das Macro hier nutzt und versteht, was es überhaupt tut, in der Frage einen Sinn erkennen?



Edited 1 time(s). Last edit at 09/06/2014 12:46PM by siria.

Options: ReplyQuote
Re: TS-wincontrols
Posted by: guenter
Date: September 07, 2014 05:18AM

Ich kann keine der oben angesprochenen Probleme im Text finden. Ich sehe mir den Quelltext bei Neuen an! Geht über die Zitieren Funktion. Nur "ShortURL" LinkSPAM entgeht mir so. & Du weißt, ich sehe IP an. Der Nutzer ist von Kabel.de. Und er kommt aus selben Gegend, wie ein mittlerweile aktiver Nutzer, der gerade in General nach XPI fragte. Keine belebte Großstadt dort. Bedeutet ich überprüfe die geographische Herkunft von Neuen. Wenn du aus der Gegend eines bereits erkannten Spammers kommst, bist du dir meiner ganz besonderen Aufmerksamkeit gewiß. Ich google auch Nicks ud Text. Manche Sachen wiederholen sich. Ich bin seit einem Jahrzehnt hier; erinnere Manches. grinning smiley



Edited 1 time(s). Last edit at 09/07/2014 05:34AM by guenter.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: January 21, 2015 08:08PM

Because people still come looking in this old thread for workarounds:

K-Meleon can hide the title bar without any additional stuff! smiling smiley
This works at least since KM1.6, although only from a hidden pref.
Not sure where the setting can be found in newer KM versions, but as always the hidden prefs still work:

- Go to "about:config"
- 2x click on "kmeleon.display.hideTitleBar" => true

Now open a new window to see the effect.

- To change window size between MINIMIZE, TOGGLE MAX or RESTORE, MAXIMIZE:
Move the mouse to the bottom of the monitor, right-click on the window name. Or search in the forum how to create new toolbar buttons for it.

- To change the window size, pull with the mouse at the borders as usual, while the window is in restored size mode.

- To MOVE the whole window, hold down the ALT button or SPACE bar, then click with the mouse in an empty space in the toolbars or tab bar (not all work, not bookmarks bar etc., just try what works)



Edited 2 time(s). Last edit at 01/23/2015 07:34PM by siria.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: foliator
Date: January 31, 2015 10:55PM

Quote
siria
Because people still come looking in this old thread for workarounds:

K-Meleon can hide the title bar without any additional stuff! smiling smiley
This works at least since KM1.6, although only from a hidden pref.
Not sure where the setting can be found in newer KM versions, but as always the hidden prefs still work:

- Go to "about:config"
- 2x click on "kmeleon.display.hideTitleBar" => true

Now open a new window to see the effect.

I just tried this in K-Meleon version 74 on my Windows 7 netbook to free up some much-needed vertical space. It works! However, hiding the titlebar interacts with the taskbar somehow, so that if I auto-hide the taskbar (for the same reason) it will not pop up when the mouse cursor is at the bottom of the screen, even if fullscreen is not active.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: February 01, 2015 01:43AM

Quote
foliator
I just tried this in K-Meleon version 74 on my Windows 7 netbook to free up some much-needed vertical space. It works! However, hiding the titlebar interacts with the taskbar somehow, so that if I auto-hide the taskbar (for the same reason) it will not pop up when the mouse cursor is at the bottom of the screen, even if fullscreen is not active.

Indeed... Confirmation on win98se with KM1.6 :cool:
But only when the window is maximized. When I resize the window and leave one mm space at the bottom, the taskbar works again.
When I switch the titlebar ON again, the taskbar works regardless if the window is maximized or not.
Looks like a case for Dorian...

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: foliator
Date: February 01, 2015 03:23AM

Quote
siria
Indeed... Confirmation on win98se with KM1.6 :cool:
But only when the window is maximized. When I resize the window and leave one mm space at the bottom, the taskbar works again.
When I switch the titlebar ON again, the taskbar works regardless if the window is maximized or not.
Looks like a case for Dorian...

Well, at least we're keeping him busy. smiling smiley

Anyway, thanks for the tip. I restored the K-Meleon window and resized it to fit the entire screen, but without any extra space at the bottom. This brought back the taskbar function.

Now I'm going to try changing my preferences to put the tab bar above the toolbars, which will probably look a lot like the layout I had in Firefox 15.0.1 when maximized (the tabs were superimposed on the titlebar).

K-Meleon is a lot better than FF, in any case.

UPDATE: Oops! When I reopened K-Meleon the taskbar wouldn't pop up, just like before. Leaving a bit of space at the bottom made it come up, but it was partially obscured by the browser. I had to shrink the browser window back further until the space at the bottom was equal to the size of the taskbar to see the whole thing, so nothing gained there. Apparently the taskbar does pop up regardless of the browser window's size, but the window is blocking the view of it. It's basically the same thing that happens whenever I use an app that has a fullscreen mode.



Edited 1 time(s). Last edit at 02/01/2015 03:36AM by foliator.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: February 01, 2015 12:48PM

Update: if anyone just wants a quick macro, skip this post and read the next :-)
(This one is about do-it-yourself method for menu customizing)

======================
Quote
foliator
I restored the K-Meleon window and resized it to fit the entire screen, but without any extra space at the bottom. This brought back the taskbar function.

UPDATE: Oops! ....
I had to shrink the browser window back further until the space at the bottom was equal to the size of the taskbar to see the whole thing, so nothing gained there.

Not here. Are you sure it's not maximized?
Of course it also could be our different systems, since mine *always* needs the tiny space at bottom to pop up the taskbar.

There are also some window size startup settings which can be customized, in
F2 > GUI Appearance > Tab Startup

===========
Tip: If anyone wants to CREATE A MENU ENTRY for toggling window size, it goes like this:

(Menu Edit > Configuration > Menus // this opens the cfg file in editor.
Prob: this changes only the current profile menu, but we'd rather have it in all profiles, and am also not sure if the bug with rebarmenu-buttons is fixed already, so lets edit the original default menu for all profiles: )


Open file
c://programs(or wherever you have KM installed)/K-Meleon/browser/defaults/settings/menus.cfg"
(If not sure where to find it, click menu Edit > Configuration > Macros, then navigate one step higher)
Make a backup copy of this file, named e.g. menus_ori.cfg

At the bottom of menus.cfg add something like this:

Quote

#========= MINE ==========
!Toolbars{
-
Minimize Window=ID_MINIMIZE_WINDOW
Toggle Maximized=ID_TOGGLE_WINDOW
}

===========

The "-" line is optional, it creates a separator line.
And the LEFT text is free text, rename as you wish.

As always in KM users can place those new menu lines into any parent menu they wish smiling smiley
The example above uses
!Toolbars (in View menu near top)

Some alternative or additional suggestions:
!Close (in File menu at bottom, possibly also right-click on close-tab-button)
!New (in File menu next to NewTab/NewWindow, possibly also right-click on new tab button)
!NavWindow (in File menu, next to Next/Previous Window)
!&File (somewhere in File menu)
!Tool&bars (in View > Toolbars popup menu)
!Compact Menu (for skins with hidden menu toolbar, on the gear-icon)

======
(Just as gimmick for advanced users:
the position can be fine-tuned by saying "place before", by adding | and either another command, or the name of another command in menu, or name of a submenu. Condition being those are in the same parent menu already, a bit tricky, but can be checked in menus.cfg. Example
!&File{
Toggle Maximized=ID_TOGGLE_WINDOW|NavWindow

Better yet, create a submenu (all names are free text):
Window Size{
Minimize Window=ID_MINIMIZE_WINDOW
Toggle Maximized=ID_TOGGLE_WINDOW
}
!&File{
!Window Size|OpenSave
}

Of course, a macro could also be used to create menu lines, that's perhaps a bit more complicated but on the other hand allows to create and show a Toggle-Titlebar command too.



Edited 4 time(s). Last edit at 02/01/2015 06:08PM by siria.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: February 01, 2015 02:29PM

Okay, and here's the macro version, with a bonus command:
Add "pseudo-maximized" size smiling smiley

If you have time please test if that works for you?

How to:
Open Notepad or another editor, copy blue text into a new empty file, save it as "WinSizeMenu.kmm" (option "all files") into the macros folder:

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------------------- WinSizeMenu.kmm ----------
# Adds menu to hide TitleBar and for changing window size
#
# Version : 1.0 / 2015-02-01 (by siria)
# MENU: FILE (at end) / and right-click menu on close-button
# Forum: http://kmeleonbrowser.org/forum/read.php?9,103175,131884#msg-131884
# --------------------------------------------------------------------------------

WinSizeMenu_ToggleTitlebar{
macroinfo="Setting only active in new windows";
menuchecked=!getpref(BOOL,"kmeleon.display.hideTitleBar");
togglepref(BOOL,"kmeleon.display.hideTitleBar");
}

WinSizeMenu_WinPseudoMax{
macroinfo="Workaround for hide-titlebar-bug: Max size but bit space at bottom";
$_code="window.resizeTo(screen.availWidth,(screen.availHeight-2));";
injectJS($_code); $_code="";
}

_WinSizeMenu_BuildMenu{
$_menu="Toolbars";
setmenu($_menu,macro,"Title Bar (Alt+Space in toolbar=Move)","WinSizeMenu_ToggleTitlebar",-1);
#
$_menu="CloseWindow";
setmenu($_menu,separator,-1);
setmenu($_menu,command,"Window: Minimize","ID_MINIMIZE_WINDOW",-1);
setmenu($_menu,command,"Window: Maximized / Restored","ID_TOGGLE_WINDOW",-1);
setmenu($_menu,macro,"Window: Pseudo-Maximized","WinSizeMenu_WinPseudoMax",-1);
}

#---------------- startup
$OnInit=$OnInit."_WinSizeMenu_BuildMenu;";
$macroModules=$macroModules."WinSizeMenu;";


Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: foliator
Date: February 01, 2015 04:18PM

Quote
siria
Okay, and here's the macro version, with a bonus command:
Add "pseudo-maximized" size smiling smiley

If you have time please test if that works for you?

Thanks, siria! Yes, it works! It only requires a few pixels of space at the bottom, maybe 4 or 5, just enough to see the color of the desktop or other active program.

Then I put the tabs above the toolbars again, and discovered that fullscreen would no longer hide the toolbars, just the tabs, even though all items were selected to be hidden. With the tabs below the toolbars, everything works just fine, including your ingenious macro. Interesting behavior, but nothing I can understand, as I've no programming knowledge. The most I can achieve nowadays is the odd batch file. Use 'em all the time, even under Windows 7. I learned to create them way back in my old DOS days. grinning smiley

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: February 01, 2015 06:16PM

Great! Must admit I like that lil macro myself grinning smiley
If you're a dos/batch guy and like to customize your stuff, then you're going to like macrolanguage too, just a matter of time, hehe ;-)

But are you really sure it fully works on your machine too?
Because of that:

Quote
foliator
I had to shrink the browser window back further until the space at the bottom was equal to the size of the taskbar to see the whole thing, so nothing gained there.

If that happens, the macro can do nothing about it.
All it really does is inject this bit of javascript:
"window.resizeTo(screen.availWidth,(screen.availHeight-2));"

Thinking about it, I even forgot to check and include the "restore window size" first - oops! Will follow...

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: February 01, 2015 09:26PM

Am completely lost at the moment: after struggling endlessly with fullscreen/maximize/minimize/taskbar/titlebar combinations and weird bugs, temporarily even the macro editor not popping up the taskbar anymore, now the macro JS-resize doesn't seem to do *anything* any more! Even after replacing the new macro with the old one again, and after restarting windows, no chance. No resize, no matter what. -> ????

Tssss... as usual, a minute after finally complaining found it: there's a pref "dom.disable_window_move_resize" which was false. Setting it to true makes resizing work again. That pref is obviously one of the settings in F2/Javascript: "Disallow scripts to move or resize windows". Of course I had not touched that now, probably have just accidentally used another profile after restarting to test the macro - OOPS. Oh well. Now wondering what to do if a user has that intentionally set too... quickly toggling on and off a pref by macro did work fine in older KM versions, but not anymore in newer ones, grmpf. Stupid trap again! Will have to bother macro users with a confirmation box if they have that pref on false too, sigh.



Edited 1 time(s). Last edit at 02/01/2015 09:42PM by siria.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: foliator
Date: February 01, 2015 10:06PM

Well, what you quoted by me was the case before I installed the macro.

Looking at the JavaScript, I'm guessing you've reduced the height by 2 pixels. The script didn't automatically produce that margin, however. I still had to resize the window manually, even though that "disallow resize" setting for JavaScript was unchecked here. K-Meleon's window now reverts to the proper size whenever it's restored. With the macro enabled the taskbar works just fine, but this has led to a further discovery: Suddenly the taskbar is reappearing properly with the window in its resized state and your macro disabled, even though the extra space at the bottom never helped before! :O Either the script has magical healing powers grinning smiley, or I coincidentally found the "sweet spot", so to speak.

I'm working with my wireless keyboard's over-sensitive touchpad, which can't be adjusted, so I might have missed the spot before. The netbook's internal touchpad offers more control, but not its internal keyboard, which has deteriorated and now surprises me by random key presses, so I stay as far away from it as I can.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: February 01, 2015 11:39PM

LOL! Wish it had magical powers, but in this case those must have happened rather on your end grinning smiley
Macros can run automatic actions at startup or later, but this one contains no such command. But I have the impression too that all this windowsize/taskbar/titlebar/fullscreen stuff seems to have some really weird random reactions, sometimes it works and other times not - drives me crazy!

In your case - could it be you had it in fullscreen mode, perhaps set to always automatically start in fullscreen? Have noticed if the statusbar is visible, the window can be resized by mouse while *still* remaining in fullscreen mode acc to the pref (another of those mysteries ;-))



Edited 1 time(s). Last edit at 02/01/2015 11:42PM by siria.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: February 02, 2015 12:22AM

New version, avoiding some bug in fullscreen mode.
And trying to auto-toggling on+off the necessary pref for resizing, if a user has javascripts forbidden to resize anything. Surprisingly that works in KM1.6 and even 1.7 without needing breaks by popup-boxes, but have not tested yet in KM74/75? If necessary there I could add those stupid confirmations again.
Pity, that cute little quickie macro has grown rather complicated again :-/

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2)
#
# ---------------------- WinSizeMenu.kmm ----------
# Adds menu to hide TitleBar and for changing window size.
# And a bug-workaround if title bar is hidden and the taskbar -if set to background- doesn't
# pop up when touching the screen bottom with mouse (called Pseudo-Maximize in this menu)
#
# Version : 1.1 / 2015-02-01 (by siria)
# MENU: FILE (at end) / and right-click on CLOSE-BUTTON
# Forum: http://kmeleonbrowser.org/forum/read.php?9,103175,131884#msg-131902
# --------------------------------------------------------------------------------

WinSizeMenu_ToggleTitlebar{
macroinfo="Setting only active in new windows";
menuchecked=!getpref(BOOL,"kmeleon.display.hideTitleBar");
togglepref(BOOL,"kmeleon.display.hideTitleBar");
}

WinSizeMenu_WinPseudoMax{
macroinfo="Window max size minus 2px at bottom (Workaround for popup-taskbar with hidden titlebar)";
$_forbidden="NO";
if (getpref(BOOL,"dom.disable_window_move_resize")==true) {
$_forbidden="YES"; setpref(BOOL,"dom.disable_window_move_resize","false");
}
# Stop FULLSCREEN first: although it could be resized too and allows the taskbar to pop up when
# the mouse touches the bottom, but then you must hit F11 _3_ times again to get out of it!
if (getpref(BOOL,"kmeleon.plugins.fullscreen.last")==true) plugin(fullscreen,"");
if (getpref(BOOL,"kmeleon.display.maximized")==true) id(ID_RESTORE_WINDOW);
#
$_code="window.resizeTo(screen.availWidth,(screen.availHeight-2));";
injectJS($_code);
## workaround for KM1.7: Allow javascript and use this instead: open("javascript: ".$_code);
$_forbidden=="YES" ? setpref(BOOL,"dom.disable_window_move_resize","true") : 0;
$_code=""; $_forbidden="";
}

WinSizeMenu_ToggleSize{
macroinfo="Toggle Window Size or stop Fullscreen mode";
# If fullscreen is active, stop it, otherwise toggle to maximized/restored:
if (getpref(BOOL,"kmeleon.plugins.fullscreen.last")==true) plugin(fullscreen,"");
else id(ID_TOGGLE_WINDOW);
}

_WinSizeMenu_BuildMenu{
$_menu="Toolbars";
setmenu($_menu,macro,"Title Bar (Alt+Space in toolbar=Move)","WinSizeMenu_ToggleTitlebar",-1);
#
$_menu="CloseWindow";
setmenu($_menu,separator,-1);
setmenu($_menu,command,"Window: Minimize","ID_MINIMIZE_WINDOW",-1);
setmenu($_menu,macro,"Window: Maximize / Restore","WinSizeMenu_ToggleSize",-1);
setmenu($_menu,macro,"Window: Pseudo-Maximize","WinSizeMenu_WinPseudoMax",-1);
}

#---------------- startup
$OnInit=$OnInit."_WinSizeMenu_BuildMenu;";
$macroModules=$macroModules."WinSizeMenu;";




Edited 2 time(s). Last edit at 02/02/2015 12:26AM by siria.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: foliator
Date: February 02, 2015 12:24AM

Quote
siria
I have the impression too that all this windowsize/taskbar/titlebar/fullscreen stuff seems to have some really weird random reactions, sometimes it works and other times not - drives me crazy!

K-Meleon's weirdness is minor compared with that of Internet Explorer 9 tongue sticking out smiley, which I've stopped using altogether. K-Meleon seems pretty stable, and all the other features work as expected; it's like a breath of fresh air!

Quote

In your case - could it be you had it in fullscreen mode, perhaps set to always automatically start in fullscreen? Have noticed if the statusbar is visible, the window can be resized by mouse while *still* remaining in fullscreen mode acc to the pref (another of those mysteries ;-))

I rarely use fullscreen. All of these experiments have been done without fullscreen, with the exception of checking to see what effects placing the tabs above the toolbars would have on fullscreen. That turned out to be a problem, actually, because the toolbars remained visible. I never expect to have access to the taskbar in fullscreen, which is a shortcoming of Windows, not the apps.:mad:

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: February 02, 2015 12:40AM

Well possible that you had already started playing with tabs bar and fullscreen and only afterwards installed the macro, but no idea.

Latest discovery in those mysteries:
It does work perfectly fine to get a working taskbar in fullscreen mode, if you pseudo-maximize the window!
Just a minor catch: if you click on maximize/restore, the *other* open programs get no taskbar anymore!! Or such... :cool:

Have posted the updated macro above in blue again.
Still only tested in KM1.6 and win98 though.

If the pseudo-resizing still doesn't work, check the bold pref and set it to false.
If that helps, I'll have to add a confirmation box for KM74 (hopefully not)

The buggy fullscreen resize is now disabled in it, but if you want to examine it further, just disable the two "if getpref" lines that are directly together (not the others). Or perhaps only the first of them? (Lines are turned into comments by adding a # at beginning)



Edited 2 time(s). Last edit at 02/02/2015 12:55AM by siria.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: foliator
Date: February 02, 2015 03:25AM

Well, siria, I tried your revised macro, but this time I couldn't get the taskbar even with the resized window. I also tried your edit suggestions, but they didn't work, either.

Nevertheless, toggling fullscreen is definitely a way of straightening things out, and I think I see a connection with something else I've noticed: Several of my apps will leave a thick border at the bottom when fullscreen is cancelled, and that border will not disappear until fullscreen is toggled quickly a couple more times. This applies to K-Meleon, IE9, the AkelPad text editor, among others that support fullscreen, but not Firefox, for some reason -- maybe it uses its own independent code for fullscreen mode. You're right about being able to resize in fullscreen with the status bar visible, although that doesn't bring back the taskbar on my end.

Some of these quirks could be due to differences in the individual user's hardware and screen resolution, or maybe his version of Windows 7. I tried the same procedures on a friend's computer, and there neither resizing the window nor your macro would bring up the taskbar with the titlebar hidden. He has a laptop with a 19-inch screen and Windows 7 Home Edition, whereas mine is a netbook with a 10-inch screen and Windows Starter.

At any rate, I wouldn't worry too much about it, because hiding the titlebar is unconventional, so not all users would want to do that, anyway.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: siria
Date: February 02, 2015 08:28AM

Ahh major pity sad smiley But in netbooks a hidden title and taskbar is absolutely necessary though, my own experience on a ten inch screen once. And it's a real pest nowadays all screens are so extremely low and ultrawide, without ANY exception. One of my pet peeves, just demonstrating that sometimes this basic priniciple of ultrafree market seems to have 'bugs' too and only the majorities get what they want.

Just a tiny chance, but have you tested the settings in F2>Plugins>Fullscreen, if it helps anything to either HIDE the taskbar or NOT in that mode?

Oh and just did a quick web search. AMAZING how many hits there are for "taskbar not showing up"!! And even back to 2006. Guess there's something really foul with that thing. Although, it may be another case and people don't get any taskbar at all? Anyway, can't research more at the moment.



Edited 2 time(s). Last edit at 02/02/2015 08:35AM by siria.

Options: ReplyQuote
Re: TS-wincontrols / hide Title Bar
Posted by: foliator
Date: February 02, 2015 04:09PM

Quote
siria
Just a tiny chance, but have you tested the settings in F2>Plugins>Fullscreen, if it helps anything to either HIDE the taskbar or NOT in that mode?

Yes, and believe it or not, unhiding the the status bar in that menu sometimes results in the opposite. Right now I have it unhidden, but there's no status bar showing in fullscreen, and voila, the taskbar is suddenly available in fullscreen! This is without the macro, by the way.

Accent on sometimes, however, because that doesn't always happen.:s When I started the browser a few minutes ago, the status bar was unhidden in the fullscreen menu, it was visible in fullscreen mode, but the taskbar was still blocked. I'll try that again later after restarting K-Meleon.

Quote

Oh and just did a quick web search. AMAZING how many hits there are for "taskbar not showing up"!! And even back to 2006. Guess there's something really foul with that thing. Although, it may be another case and people don't get any taskbar at all?

Seems like a lot of the trouble with applications is caused by conflicts with the Windows operating system, but the apps take the blame

Options: ReplyQuote
Pages: Previous12
Current Page: 2 of 2


K-Meleon forum is powered by Phorum.