Search found 267 matches

by Flinx
Mon Jan 20, 2025 2:21 pm
Forum: Hollywood bugs
Topic: Should RawGet HasItem and HaveItem be interchangeable?
Replies: 2
Views: 118

Re: Should RawGet HasItem and HaveItem be interchangeable?

From the manual:
HaveItem/HasItem
Note that if you pass a string in the key parameter, it will be converted to lower case automatically. If you don't want that, use RawGet() instead.
by Flinx
Mon Jan 20, 2025 2:16 pm
Forum: Newbie questions
Topic: Use of Tables
Replies: 5
Views: 238

Re: Use of Tables

Bugala wrote: Mon Jan 20, 2025 1:24 pm basically you should be able to use HasItem or HaveItem instead of RawGet, but for some reason it didn't work when I tried, might be a bug in Hollywood.
No bug, HaveItem/HasItem expect lowercase indices.
by Flinx
Sun Jan 19, 2025 5:58 pm
Forum: General programming
Topic: Manual: ForEach() example
Replies: 0
Views: 140

Manual: ForEach() example

I just used ForEach() once again and it reminded me of how long it took me to understand that you can do much more with it than just list a table like in the example. Therefore, I recommend adding a slightly complicated variant to the example, something like this: ForEach(t, Function(a, b) DebugPrin...
by Flinx
Sat Jan 18, 2025 3:32 pm
Forum: RapaGUI
Topic: Can I turn off RAPAGUI in middle of program?
Replies: 4
Views: 345

Re: Can I turn off RAPAGUI in middle of program?

I know these problems. Look at andreas' answer here , though it is meant for Linux. And to see the reason, insert a StartTimer(1) above your main loop, and compare the drawing speed: Function draw() ResetTimer(1) Box(100, 100, 100, 100, color) DebugPrint(GetTimer(1)) EndFunction Here (on an older Wi...
by Flinx
Sun Jan 12, 2025 1:44 pm
Forum: Newbie questions
Topic: Hollywood MODE=ASK conflict
Replies: 4
Views: 1280

Re: Hollywood MODE=ASK conflict

Plouf has already mentioned that the display with ID 1 is the default display. Try it with 2.
But I suggest that you don't explain what you think you've done, just show the code.
by Flinx
Wed Jan 08, 2025 3:25 pm
Forum: Hollywood bugs
Topic: ChangeInterval() and GetAttribute()
Replies: 1
Views: 1751

ChangeInterval() and GetAttribute()

If you change an interval frequency using ChangeInterval(), GetAttribute(#INTERVAL, id, #ATTRDURATION) keeps returning the initially selected value. And by the way, the manual entries of ChangeInterval( ) and GetAttribute() refer to a frequency in milliseconds, but that's not precise, as it is the p...
by Flinx
Tue Dec 24, 2024 11:24 am
Forum: General programming
Topic: Why does this randomizer sort function fail sometimes?
Replies: 8
Views: 3155

Re: Why does this randomizer sort function fail sometimes?

A further recommendation: This function works much faster if you use DisableLineHook()/EnableLineHook().
by Flinx
Tue Dec 24, 2024 11:14 am
Forum: Wishlist
Topic: CreatePort for Linux/Mac
Replies: 12
Views: 9623

Re: CreatePort for Linux/Mac

Thank you. I know that many Hollywood users wait for the next update, so I'll try it myself for now.
by Flinx
Mon Dec 23, 2024 10:54 am
Forum: Newbie questions
Topic: Single Keypress
Replies: 2
Views: 1482

Re: Single Keypress

Maybe you can do something with IsKeyDown()?
Or if you use OnKeyDown and OnKeyUp events then this may help.
by Flinx
Fri Dec 20, 2024 4:29 pm
Forum: Wishlist
Topic: CreatePort for Linux/Mac
Replies: 12
Views: 9623

Re: CreatePort for Linux/Mac

My replacement IPC functions are not yet as stable and fast as I would like them to have. Now I wonder if I won't need them anymore soon because the next Hollywood version will have a CreatePort for Linux as well, or if I should still put some time into it.