Search found 346 matches
- Wed Dec 03, 2025 2:27 pm
- Forum: Hollywood bugs
- Topic: GetVolumeName() and GetVolumeInfo() on Windows
- Replies: 1
- Views: 173
GetVolumeName() and GetVolumeInfo() on Windows
On Windows, the functions GetVolumeName() and GetVolumeInfo() return the correct results for existing volumes, but for all non-existent volumes, the result is a random value or the previously returned value. Without my p_PrintHex() function, the result looks different, so I left it in the first two ...
- Tue Dec 02, 2025 11:19 am
- Forum: General programming
- Topic: Some Questions.
- Replies: 5
- Views: 4023
Re: Some Questions.
Maybe this one?
But I usually use the the construct from here, for example:
Code: Select all
Local err, id=?LoadBrush(Nil,vfile$)
If err<>#ERR_NONE
...
- Wed Nov 19, 2025 3:34 pm
- Forum: General programming
- Topic: String indexes, spaces, and WriteTable()
- Replies: 2
- Views: 629
Re: String indexes, spaces, and WriteTable()
So, my first solution was to use the index strings in Base64 coded form, but because I wanted the file human readable, I now build a serializable list and save this. And convert it back after reading. If someone is interested: Function p_WriteNowPlayingTable() Local serializableTable=CreateList() If...
- Mon Nov 17, 2025 10:53 pm
- Forum: General programming
- Topic: String indexes, spaces, and WriteTable()
- Replies: 2
- Views: 629
String indexes, spaces, and WriteTable()
I have a table with string indexes, and the strings come from outside the program and may also contain spaces. Now I wanted to write this table using WriteTable(), but this did not work. The following example works with the legacy serializer, but with Adapter="Default" I get an “Error seri...
- Fri Oct 17, 2025 10:31 am
- Forum: Newbie questions
- Topic: Extract file content into string without creating a flie
- Replies: 12
- Views: 1546
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...
- Thu Oct 16, 2025 1:42 pm
- Forum: Newbie questions
- Topic: Extract file content into string without creating a flie
- Replies: 12
- Views: 1546
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.
- Thu Oct 16, 2025 12:45 pm
- Forum: Newbie questions
- Topic: Extract file content into string without creating a flie
- Replies: 12
- Views: 1546
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...
- Wed Oct 15, 2025 6:12 pm
- Forum: General plugin questions
- Topic: Typo in zip doc
- Replies: 1
- Views: 745
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")})- Wed Oct 15, 2025 3:17 pm
- Forum: Newbie questions
- Topic: Extract file content into string without creating a flie
- Replies: 12
- Views: 1546
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", "...
- Tue Oct 14, 2025 2:41 pm
- Forum: Newbie questions
- Topic: Extract file content into string without creating a flie
- Replies: 12
- Views: 1546
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...