If Ctrl+Alt+F8 disables your secondary monitor

 Windows  Comments Off on If Ctrl+Alt+F8 disables your secondary monitor
Nov 182018

I just pressed Ctrl+Alt+F8 and wondered why all of a sudden my secondary monitor went blank. Turns out that this is a “Feature” of the Intel HD graphics driver.

It restores the graphics default.

And since it is such a great feature, you can’t disable or customize this hotkey. Great work Intel!

Again StackOverflow was helpful. It also provided a workaround: Using AutoHotkey you catch that hotkey to do something else, e.g. show a dialog. And since I already use AutoHotkey, I added the following to my default script:

; Disable the shortcut of the Intel Graphics driver for resetting the graphics settings
; Whoever came up with this functionality and made it impossible to disable the shortcut
; is an idiot!
^!f8::msgbox, You hit Ctrl+Alt+F8 which would have reset the Intel graphics card settings to default.
 Posted by on 2018-11-18 at 16:52

Creating and calling DLLs in Delphi

 Delphi  Comments Off on Creating and calling DLLs in Delphi
Nov 182018

I just got reminded that in 2006 I wrote an article about creating DLLs with Delphi in the Delphi Wiki.

Unfortunately I got that reminder because somebody (again) vandalized it. He probably thinks he is a l33t h4x0r for being able to edit a website. I think he simply is a [enter your favorite swearword here].

But I reverted his changes and read through that article again. It’s still correct nowadays even though it should probably be updated to mention Unicode, WideString and PWideChar.


There is also a nice article by Rudy Velthuis DLL dos and don’ts.

 Posted by on 2018-11-18 at 14:31