Search found 342 matches

by Flinx
Fri Oct 17, 2025 10:31 am
Forum: Newbie questions
Topic: Extract file content into string without creating a flie
Replies: 12
Views: 434

Re: Extract file content into string without creating a flie

Interesting. Maybe the behavior is actually only half a bug. I looked up the problem in the manual again, but it doesn't seem to be mentioned directly. However, section 7.9 (Loaders and adapters) describes the process of how loaders are used (Hollywood will ask all plugins whether they want to handl...
by Flinx
Thu Oct 16, 2025 1:42 pm
Forum: Newbie questions
Topic: Extract file content into string without creating a flie
Replies: 12
Views: 434

Re: Extract file content into string without creating a flie

You can replace the InstallAdapter by an Adapter="zip" in the argument table of OpenFile, then DeleteFile works in my script too.
by Flinx
Thu Oct 16, 2025 12:45 pm
Forum: Newbie questions
Topic: Extract file content into string without creating a flie
Replies: 12
Views: 434

Re: Extract file content into string without creating a flie

Later in the script i added an option to delete that zip file, but it fails with an error (unable to delete). Ialso tried to force it to be deleted, but here again I am unsure if the syntax is correct. The syntax is correct, and Force should not be necessary. Did you do this with my script, startin...
by Flinx
Wed Oct 15, 2025 6:12 pm
Forum: General plugin questions
Topic: Typo in zip doc
Replies: 1
Views: 134

Typo in zip doc

In the manual of zip version 2.0 at section "3.3 Extracting files" is a round bracket instead of a curly:

Code: Select all

CopyFile("test.zip/pic.jpg", "out", {UserTags = {Password = "123456")})
by Flinx
Wed Oct 15, 2025 3:17 pm
Forum: Newbie questions
Topic: Extract file content into string without creating a flie
Replies: 12
Views: 434

Re: Extract file content into string without creating a flie

Even though jPV has built a working script, I still want to correct my faulty one too (Password must be in the user tags). This gives you two solutions. @REQUIRE "zip", {InstallAdapter = True} secretfile$ = DefineVirtualFileFromString("This\nis\nthe\nvery\nsecret\nmessage", "...
by Flinx
Tue Oct 14, 2025 2:41 pm
Forum: Newbie questions
Topic: Extract file content into string without creating a flie
Replies: 12
Views: 434

Re: Extract file content into string without creating a flie

I wanted to respond quickly because I thought it would be easy, but it took longer than expected. First, here is a working example for reading from a zip archive: @REQUIRE "zip", {InstallAdapter = True} secretfile$ = DefineVirtualFileFromString("This\nis\nthe\nvery\nsecret\nmessage&qu...
by Flinx
Sat Oct 11, 2025 1:55 pm
Forum: Hollywood bugs
Topic: SetFileAttributes() goes back in time
Replies: 3
Views: 359

Re: SetFileAttributes() goes back in time

This is not a Hollywood bug, but a design flaw by Microsoft. NTFS stores the file date in UTC. But because Windows still works internally in local time (instead of doing everything in UTC and only converting it to local time for display), there is a conflict when switching from CEST to CET (UTC 00:3...
by Flinx
Mon Oct 06, 2025 2:52 pm
Forum: General plugin questions
Topic: Plugin location for Hollywood Player
Replies: 1
Views: 211

Plugin location for Hollywood Player

Hi, While I was working on my documentation, I noticed that it is not obvious to users setting up Hollywood Player where the required plugins need to be copied to. It would probably be useful to mention this location in the ReadMe file. I also think it would be useful to include the plugin directory...
by Flinx
Sun Sep 28, 2025 12:30 pm
Forum: Newbie questions
Topic: Reading Data From File
Replies: 6
Views: 511

Re: Reading Data From File

Unfortunately it's waaaaay too complicated for me. Actually, it's not that complicated. If you want to take a look at it sometime, I just skip the zeros at the beginning of the file and then check to see if the characters “ID3” appear. (Nowadays, I would probably do it differently and first read in...
by Flinx
Sat Sep 27, 2025 10:06 am
Forum: Newbie questions
Topic: Reading Data From File
Replies: 6
Views: 511

Re: Reading Data From File

To write and read any binary data, you only need to use the functions provided for this purpose: WriteByte(), WriteBytes(), ReadByte(), and ReadBytes(). For these functions, spaces and newlines are just bytes like any others. Depending on the application, ReadShort(), ReadInt() etc. may also be usef...