Search found 191 matches

by Flinx
Tue Apr 16, 2024 10:04 am
Forum: General programming
Topic: DisplayBrushPart() with negative coordinates?
Replies: 2
Views: 108

Re: DisplayBrushPart() with negative coordinates?

I think you should provide a (in a way) working example, then it would be easier to help.
by Flinx
Sun Apr 14, 2024 4:56 pm
Forum: Hollywood bugs
Topic: Run and UNC paths on Windows
Replies: 0
Views: 78

Run and UNC paths on Windows

Recently when I wanted to report a bug that wasn't a bug at all I tried CanonizePath() as workaround. I left it in the script, because I assumed that I had with it a solution that would work everywhere. But when I started the program on Windows from a network path, it didn't work properly. The path ...
by Flinx
Thu Apr 11, 2024 11:31 pm
Forum: General programming
Topic: multiple display on fullscreen
Replies: 2
Views: 131

Re: multiple display on fullscreen

Seems your display 2 is too small. With Width=130 it works. But I don't have an explanation.
by Flinx
Mon Mar 18, 2024 3:13 pm
Forum: General programming
Topic: Chr(0,#ENCODING_RAW)
Replies: 3
Views: 166

Re: Chr(0,#ENCODING_RAW)

dont forget strings terminated with a 0 :) This is Hollywood, not C :) . In Hollywood strings can contain binary data, this would not be possible with zero terminated strings. From the manual: "In many programming languages a zero character defines the end of the string. Not so in Hollywood. H...
by Flinx
Sun Mar 17, 2024 5:18 pm
Forum: General programming
Topic: Chr(0,#ENCODING_RAW)
Replies: 3
Views: 166

Chr(0,#ENCODING_RAW)

I expected Chr(n,#ENCODING_RAW) and ByteChr(n) to return the same result, but Chr(0,#ENCODING_RAW) returns an empty string. Is that correct?
by Flinx
Mon Mar 04, 2024 11:06 am
Forum: Hollywood bugs
Topic: Run and Execute on Linux and Mac
Replies: 2
Views: 213

Re: Run and Execute on Linux and Mac

No, sorry, I could have thought of that myself. Thanks!
by Flinx
Sun Mar 03, 2024 11:20 am
Forum: Newbie questions
Topic: Missing mouse selection
Replies: 4
Views: 213

Re: Missing mouse selection

You should not poll the mouse button because there may be parts of the program that take more time than the mouse button is pressed. The appropriate way is the event library. Replace the If IsLeftMouse() part with an event initialization before entering the main loop. And you need a WaitEvent() or C...
by Flinx
Wed Feb 28, 2024 5:08 pm
Forum: Hollywood bugs
Topic: Run and Execute on Linux and Mac
Replies: 2
Views: 213

Run and Execute on Linux and Mac

Run() and Execute() do not work on Linux and Mac when used with relative paths. I don't seem to be the first one who had trouble with this. There is no error message either.
The problem can be avoided by executing a CanonizePath() on the argument file$

Code: Select all

Run(CanonizePath(file$))
by Flinx
Fri Feb 16, 2024 10:41 am
Forum: Hollywood bugs
Topic: GetErrorName() with bad arguments
Replies: 1
Views: 181

GetErrorName() with bad arguments

I accidentally set a variable to True in certain situations, which should be displayed later using GetErrorName().
So I noticed that GetErrorName() causes a memory access violation when it is called with positive values.
by Flinx
Tue Feb 13, 2024 4:44 pm
Forum: Wishlist
Topic: OnMouseUp to work whenever mouse is on top.
Replies: 2
Views: 484

Re: OnMouseUp to work whenever mouse is on top.

Therefore a wish: Make "OnMouseUp" actually trigger when it is done above the button, no matter how it got there. This would break a lot of Hollywood programs. At best, a new function would be acceptable. But I'm answering because I don't like the example. You delete and draw with 40Hz bo...