Search found 384 matches
- Tue Jul 28, 2026 1:24 pm
- Forum: General programming
- Topic: Can @Require be optional?
- Replies: 7
- Views: 782
Re: Can @Require be optional?
@REQUIRE is a preprocessor command. It does not exist during normal program execution; rather, it triggers an action by the preprocessor that takes place before the program actually starts. During normal program execution, preprocessor directives have no direct effect, so you can place them anywhere...
- Sat Jul 18, 2026 10:56 pm
- Forum: Hollywood bugs
- Topic: Minor bug with SeekMusic
- Replies: 13
- Views: 48803
Re: Minor bug with SeekMusic
As mentioned before, I know such things from MP3s with variable bitrates. If you're not sure about the format, try reencoding the file to a fixed bitrate, for example in the command line:
ffmpeg -y -i test.mp3 -b:a 256k test256.mp3
ffmpeg -y -i test.mp3 -b:a 256k test256.mp3
- Fri Jul 17, 2026 10:16 am
- Forum: Hollywood bugs
- Topic: Bug in Rnd()
- Replies: 4
- Views: 1019
Re: Bug in Rnd()
I don't think that's a bug.
Since the function uses an LCG, RndSeed() is executed at startup, and that uses the system time as the initial value.
So during normal program execution, there's no longer any dependence on time. It's only noticeable because the test program is restarted with each run.
Since the function uses an LCG, RndSeed() is executed at startup, and that uses the system time as the initial value.
So during normal program execution, there's no longer any dependence on time. It's only noticeable because the test program is restarted with each run.
- Mon Jun 08, 2026 11:05 am
- Forum: General programming
- Topic: How to find out the currently selected display?
- Replies: 5
- Views: 6679
Re: How to find out the currently selected display?
Now that I’ve taken a closer look, I realize my question was too specific. I had imagined it too simple. “Change the output device within an interval function and restore the previous state at the end of that function” is much more complicated than I had expected at the time. Okay, I should have gue...
- Sun Jun 07, 2026 5:46 pm
- Forum: General programming
- Topic: Scope of Font Settings
- Replies: 2
- Views: 4570
Re: Scope of Font Settings
Thanks!
- Sun Jun 07, 2026 11:57 am
- Forum: General programming
- Topic: Scope of Font Settings
- Replies: 2
- Views: 4570
Scope of Font Settings
A clarifying question: In a program with multiple displays, the commands SetFont(), SetFontColor(), and SetFontStyle() have a global effect; in other words, they change the output for all displays, regardless of which one was selected with SelectDisplay(). Accordingly, you can query the currently se...
- Sat Jun 06, 2026 11:56 am
- Forum: General programming
- Topic: Is NIL argument later defined still a local?
- Replies: 4
- Views: 5864
Re: Is NIL argument later defined still a local?
Bugala, plouf has already answered the question precisely, hasn't he? His code example clearly shows that `OpArgs` is a local variable of the function even when it is passed as Nil.
- Fri Jun 05, 2026 4:49 pm
- Forum: General programming
- Topic: How to find out the currently selected display?
- Replies: 5
- Views: 6679
Re: How to find out the currently selected display?
Thanks! I hadn't found that. I'm not sure in which situations it fails this way, but at least it's better than nothing. I had tried to make the table monitor I recently presented here as universally usable as possible, because it helped me quite a bit. Since it requires a SelectDisplay, I have to sw...
- Fri Jun 05, 2026 2:52 pm
- Forum: General programming
- Topic: How to saturate just one colo (R, G, B)?
- Replies: 4
- Views: 5981
Re: How to saturate just one colo (R, G, B)?
Here’s something of a solution, but it needs a lot of memory for the tables and is slow. It might still be helpful, if no one knows a better way. The operations in the loop could be combined into a single line, which would probably speed up the calculation a bit, but it’s easier to experiment this w...
- Tue Jun 02, 2026 4:40 pm
- Forum: General programming
- Topic: How to find out the currently selected display?
- Replies: 5
- Views: 6679
How to find out the currently selected display?
I'm searching for a way to determine which display is currently selected. Is this possible?