Thread View: alt.free.newsservers
5 messages
5 total messages
Started by Jeff-Relf.Me
Sun, 23 Dec 2012 23:19
--
Author: Jeff-Relf.Me
Date: Sun, 23 Dec 2012 23:19
Date: Sun, 23 Dec 2012 23:19
95 lines
6325 bytes
6325 bytes
<style> :not(:link):not(:visited){color:rgb(255,111,111)} :link{color:rgb(155,155,155)} :visited{color:rgb(155,155,0)} </style> <body bgcolor=black style='margin: 0'><pre style='color: rgb(255,111,111); padding:0 1em 1em 1em; font-size: 15px; font-family: DejaVu Sans Mono, Lucida Console, monospace, MS Mincho; background: black;'>Â
I'm enjoying my (slower) 20 watt PC;
it's forced me to write (nearly) sane code.
Now, when displaying [ 127 columns x 100 lines ] of "console" text,
1200 x 1920 pixels, I get 20 frames per second, instead of 12 ( or 1 ).
When there's less text, I get over 100 fps, "flipping" the "back buffer".
Also, I switched to the DejaVu Sans Mono font face ( from MS Mincho )
because it looks better in portrait mode, where my 127 columns (required)
span only 1,200 pixels, not 1,920. <A hRef="http://Jeff-Relf.Me/Diff.PNG" style='color:rgb(155,155,155)' target=_blank>screenshot</A>.
Problem is, I can't stop playing around with my new hard/soft ware.
My bosses are none happy; I can't control myself, obviously.
I NEVER see Win8's "Start Screen" ( Metro ),
and I LOVE how my desktop no longer has Win7/XP's "Start Button".
I wrote a "Start Toolbar" because, usually, MY CODE IS BEST ( for me ).
Launching apps is trickier than you might think.
In order to avoid the super bright/annoying/long white flash,
[ i.e. the "{ WPF app / Win8 Aero } from a black background" thing ],
I prevent the app from displaying anything for the first 1 to 4 seconds.
FireFox and Visual Studio won't launch minimized;
so launching them means I GET FLASHED... not good.
So my window must be "TopMost" while they start up.
To "deâ‹…minimize" ( i.e. to restore my keyboard/mouse focus ) ASAP,
I call SetForegroundWindow() whenever a WPF App calls my "Class";
like this:
#define Record PostMessage
long __stdcall WinProc( HWND _Win, uint WM, uint C, long C2 ) {
if ( TopMost ) { SetForegroundWindow( Win ); return 1 ; }
return !Win || _Win != Win
? DefWindowProc( _Win, WM, C, C2 ) : Record( Win, WM, C, C2 ), 1 ; }
Why that works, I've no idea, I just stumbled upon it.
Timing is everything, I'm sure. Fucking random, scary. Google is mute.
Likewise, GetForegroundWindow() must be called 30 times a second;
otherwise, I'd not know, ASAP, when it's safe to exit "TopMost" mode.
Two seconds of "TopMost" isn't good,
but it's better than being flashed for a split second.
inline WinUp() { ForeWin = GetForegroundWindow();
return Up = ForeWin && ForeWin == Win ; }
â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…
if ( TopMost && WinUp() != prevUp )
prevUp = Up, ( ( Knocked += !Up ) < Times ? 0 : EoBad = Secs + .7 );
"Knocked" counts how many times I've been shoved to the background.
When it hits a certain number, specific to an app,
it's safe to leave TopMost mode ( .7 seconds later ); this way,
my app stays in the foreground and exits TopMost mode sooner.
Code from <A hRef="http://Jeff-Relf.Me/X.CPP" style='color:rgb(155,155,155)' target=_blank>X.CPP</A> (Visual C++).
â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…â‹…
I changed the color of IE / Win_8 visted/unvisited links by editing:
<A hRef="http://Jeff-Relf.Me/Jeff_Relf.Theme.TXT" target=_blank style='color:rgb(155,155,155)' target=_blank>My IE / Win_8 "Theme"</A>.
[ C:\Windows\Resources\Themes\Jeff_Relf.Theme ]
After editing the text, I activate it by switching themes.
Specifically, I commented/edited:
; unVisitedâ‹…Links( IE ). Win_8 Flatâ‹…Link.
HotTrackingColor= 155 155 155
; Text(IE9). Visitedâ‹…Links(IE9) but with half the red/blue, same green.
; Folder File Names. Findâ‹…Box text, Visual Studio. Win_8 Static Text.
WindowText= 222 111 77
<A hRef="http://Jeff-Relf.Me/Win_8_.REG" target=_blank style='color:rgb(155,155,155)' target=_blank>Registry Settings</A> to change font faces/colors/sizes.
; In Windows 8, this is the only way change these settings:
; [HKEY_CURRENT_USER\Control Panel\Desktop\WindowMetrics]
; lfCaptionFont.lfHeight 239 255 255 255, 0 0 0 0, 0 0 0 0, 0 0 0 0, lfWeight 144 1 0 0,
; lfItalic 0, 0, 0, 1, 0, 0, 0, 0,
; lfFaceName 68 101 106 97 86 117 32 83 97 110 115 32 77 111 110 111 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
;
; [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\FontSmoothing]
; To dim the white flash, "Animate Min/Max window transitions":
; [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\VisualEffects\AnimateMinMax]
; "DefaultApplied"=dword:00000001
I also changed the color of <A hRef="http://Jeff-Relf.Me/userContent.CSS.TXT" target=_blank style='color:rgb(155,155,155)' target=_blank>Web Pages</A>, <A hRef="http://Jeff-Relf.Me/userChrome.CSS.TXT" target=_blank style='color:rgb(155,155,155)' target=_blank>FireFox</A> and <A hRef="http://Jeff-Relf.Me/Console.XML.TXT" target=_blank style='color:rgb(155,155,155)' target=_blank>(DOS) "Console 2"</A>.
To skip the Start Screen ( Metro ), see: WinAero.COM
Re: I wrote a "Start Toolbar" because, usually, MY CODE IS BEST ( for me ). 
Author: 7
Date: Sun, 23 Dec 2012 23:21
Date: Sun, 23 Dec 2012 23:21
7 lines
1859 bytes
1859 bytes
Jeff-Relf.Me wrote: > < Troll!!!!
--
Author: Jeff-Relf.Me
Date: Thu, 27 Dec 2012 11:30
Date: Thu, 27 Dec 2012 11:30
33 lines
2932 bytes
2932 bytes
<style> :not(:link):not(:visited){color:rgb(255,111,111)} :link{color:rgb(155,155,155)} :visited{color:rgb(155,155,0)} </style> <body bgcolor=black style='margin: 0'><pre style='color: rgb(255,111,111); padding:0 1em 1em 1em; font-size: 15px; font-family: DejaVu Sans Mono, Lucida Console, monospace, MS Mincho; background: black;'>Â
I close apps I'm not using, to free my mind;
don't even want them "pinnned" to the taskbar, as icons.
I never see Metro and my desktop has no start button, thank God.
My app launcher/toolbar now â‹…TOTALLYâ‹… stops newly launched apps
from stealing the "foreground" ( i.e. the keyboard/mouse focus )
and blinding me with that nasty "Black to White", bright flash.
For a taste (yuck!), see below. "⏉Win" is the Top⋅Most window.
#define ⏉modeOn ( prevďĽ âŹ‰ = ⏉mode = 1, ⏉most( HWND_TOPMOST ) )
#define Norm ( ⏉mode = 0, ⏉most( HWND_NOTOPMOST ) ) // No Top Most.
#define ⏉most( TM ) ( \
SetWindowPos( Win, TM, 0,0,0,0, SWP_NOMOVE | SWP_NOSIZE ), \
LockSetForegroundWindow( TM == HWND_TOPMOST ? LSFW_LOCK : LSFW_UNLOCK ) )
#define ⏉ SetForegroundWindow(Win)
#define ďĽ âŹ‰ ( _ďĽ âŹ‰ = ( ⏉Win = GetForegroundWindow() ) && Win == ⏉Win )
My launcher must rapidly request the Foreground, 30 times a second;
otherwise, Windows takes it from me without notice, the fucker.
Windows tells me that I've lost the keyboard/mouse AFTER the fact,
not before, so I must bombard it with SetForegroundWindow() ASAP.
This seems wrong, of course, but I see no alternative.
Moving the cursor to Win8's taskbar stops this "Topâ‹…Most, Bombarding",
giving me easy access to my newly launched app, sans Whiteâ‹…Flash.
â–
SLAPPED AND FOOT IN YOUR BEHIND: Just on General Principles....
Author: Big Steel
Date: Thu, 27 Dec 2012 15:13
Date: Thu, 27 Dec 2012 15:13
5 lines
1849 bytes
1849 bytes
On 12/27/2012 6:30 AM, Jeff-Relf.Me wrote: <snipped> You are as whacky as 7.
--
Author: Jeff-Relf.Me
Date: Thu, 27 Dec 2012 19:07
Date: Thu, 27 Dec 2012 19:07
21 lines
2599 bytes
2599 bytes
<style> :not(:link):not(:visited){color:rgb(255,111,111)} :link{color:rgb(155,155,155)} :visited{color:rgb(155,155,0)} </style> <body bgcolor=black style='margin: 0'><pre style='color: rgb(255,111,111); padding:0 1em 1em 1em; font-size: 15px; font-family: DejaVu Sans Mono, Lucida Console, monospace, MS Mincho; background: black;'>Â
I like new hardware/software; too much, obviously.
Mr. "7" is far worse than me. Even if I had the time,
I wouldn't read his posts ( when not replying to me ).
I bought a Win8 PC, fanless desktop, and a 1200 x 1920 IPS monitor
( portrait, 127 columns x 100 lines of console text )
and I've been compelled to write endless code for it. <A hRef="http://Jeff-Relf.Me/Diff.PNG" style='color:rgb(155,155,155)' target=_blank>Screenshot</A>.
Generally, the new stuff is better; however, there's no optingâ‹…out
of Win8's version of Aero. With the transparency gone, as it is,
WPF apps flash bright white when they start, from my black "console" theme.
In a dark room, that REALLY sucks !
WPF, Windows Presentation Foundation, replaced MDI.
Originally, the idea was to fade the transition in,
as the window opened... using the (now gone) transparency.
My "Start Bar", an app launcher, has mostly solved that problem, as I said.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads