Live data from Hacker News

Comments by a developer inside the Windows Media Player source code

pastebin.com

91–100 of 135 posts

Re: Comments by a developer inside the Windows Media Player source code

#92
post #47

One of the ugly hacks you do in SAP to make it work is reading/changing variables and structures inside the SAP standard code because there is no API exposing them. It is blessed officially as doing a "dirty" assign.

> there is no API exposing them. If there's no API exposing them but there's a way to make use of the internals with a dirty assign then sounds like the internals are now part of the API.

Correct. Same reason I learned a bunch of German words writing against supposedly English-dev'd and platform agnostic abstractions.

It's a fucking mess, but boy do they print money.

Re: Comments by a developer inside the Windows Media Player source code

#93
post #21

Earlier quoted context omitted.

I think you’re mistaken, YouTube (in all the forms I use it with a keyboard at least) supports spacebar as a pause key. Your browser might try to pop you down half a page if the thing that is selected or highlighted on the page is not the video player itself though. But it works 100% of the time in fullscreen.

Run into a strange behavior though. When I pause the video with the mouse (and consequently, leave the pointer above the play button), and later try to continue the play with space, it will double-press the play button and pause the video again.

Thank you for pointing that out since it seems to explain why the space bar behaves erratically. I far prefer the space bar to hunting down the k-key when trying to relax.

Re: Comments by a developer inside the Windows Media Player source code

#94
post #76

Pretty much what I am expecting from Windows based software considering the mess windows always was and is to this day.

Eh, I've seen similar stuff in the Linux/UNIX world. Whenever different software components interact there's a chance you need some stupid stuff to get them to play nice. As some issues get fixed over time, new ones arrive since something gets swapped out for the next big thing. The interaction of X, the display manager, logind and dbus on session start comes to mind. There's been stupid stuff in Xsession.d et al ove…

Well, if anyone is still using screensavers in 2020, there is a good chance they’re running a 90’s system too :)

Re: Comments by a developer inside the Windows Media Player source code

#95
post #34
post #28

Earlier quoted context omitted.

Then you'd lose useful functionality like dragging a file from your file manager to an application window to open it there.

That's your mouse button, not a keyboard key. Although modifier keys occasionally are used, what's important here is the state of those keys (ctrl for copy, shift/alt or whatever for shortcut); nothing happens when you release them.

You can do it with arrow keys, too. I remember doing this all the time back on Windows 3.1 and I'm sure it's still used now especially by people with disabilities.

Anyway, there's a way to fix this: send a reference to the key-down event when you send the key-up event. Then the receiving window can determine if it cares about it or not. If this is a security hole, send a reference to the window where the key-up event was sent instead.

Re: Comments by a developer inside the Windows Media Player source code

#97
post #82

Earlier quoted context omitted.

Gonna take a gander and guess the developer might have an Indian origin! Or at least studied for the GRE!

"pulcher" is a fairly elementary piece of Latin vocab. It's in Book I of the Cambridge Latin Course , for example. This is much the same in other courses. So anyone, Indian or not, who has done basic Latin in school is likely to have encountered it and hence be aware of "pulchritude". * https://www.dl.cambridgescp.com/dl_course/book-i A random other example: https://www.ocr.org.uk/Images/221512-gcse-latin-j282-define…

Or anyone fluent on a romance language [1]

[1] https://en.wikipedia.org/wiki/Romance_languages

Re: Comments by a developer inside the Windows Media Player source code

#98
post #58

The bug here is in media player to listen on key-up events. Mouse-button-up makes sense because the user can move the mouse to cancel the click. But key events should be on key-down and that's how it is done most of the time. So if you use key-up you run into these problems.

“But key events should be on key-down” Should they, in general? If you want to press a key combination, you never press the two keys at exactly the same time. So, if key events were on key-down, you would have to press modifiers before letters to type capital letters, use keyboard shortcuts, etc. I think that would be annoying and slow typists down. It also rules out using bare modifier key presses as input methods,…

I've never seen a system where you can press modifiers _after_ letters, what are you using? Letters are definitely inserted on key down on all windows/linux/macos I've used

Re: Comments by a developer inside the Windows Media Player source code

#99

What is the best library to use these days for developing in Visual C++? I had to write some VCpp code a few days ago using the Winhttp api and it was a nightmare. I'm not sure if its because I've been spoiled rotten by python where you can do a get/post request with a few lines of code, and that this is just how CPP is, but most of the complications are to do with calling and using the (not very well) documented API…

vcpkg has lots of libraries and is well integrated with CMake or Visual Studio.
Post reply on HN