Search found 604 matches

by jPV
Wed Jan 03, 2024 9:04 am
Forum: RapaGUI
Topic: Problem to sort numbers
Replies: 11
Views: 5663

Re: Problem to sort numbers

does this change listview logic from "text" to "number" ? and if yes what else can understand ? date ? currency? It can understand everything you need. Your callback simply tells the listview how to sort the entries. This allows you to impose any sort logic you want on the listv...
by jPV
Thu Dec 28, 2023 6:42 pm
Forum: Newbie questions
Topic: Wait a file exist
Replies: 7
Views: 1651

Re: Wait a file exist

papiosaur wrote: Thu Dec 28, 2023 6:26 pm What i must do when i use filetostring() command, how to know when the conversion is finalized please?
No need to do anything, the script halts until a file is read in a string and continues to the next command when it's done.
by jPV
Thu Dec 28, 2023 1:09 pm
Forum: Newbie questions
Topic: How to make a loop
Replies: 1
Views: 1159

Re: How to make a loop

WaitKeyDown() halts the script execution and waits until you press the correct key. So in this case you have to press the keys in exact order to get forward, and you can't start and stop music without pausing it in between. What you need is to listen key presses in the event handling function, just ...
by jPV
Thu Dec 28, 2023 12:47 pm
Forum: Newbie questions
Topic: Wait a file exist
Replies: 7
Views: 1651

Re: Wait a file exist

Unfortunately ReportChanges=True for the MonitorDirectory() does only work on Windows and OS4, AFAIK. At least it fails on MorphOS, which papiosaur uses I guess. Here are my two more options :) If doing purely with Hollywood and don't want to use the looping solution, something like this with the Mo...
by jPV
Wed Dec 13, 2023 8:15 am
Forum: Hollywood bugs
Topic: Hollywood10 Amiga - copyfile saveerror
Replies: 2
Views: 1776

Re: Hollywood10 Amiga - copyfile saveerror

copyfile("DH1:Empty_WBPattern.prefs", "ENV:Sys/WBPattern.prefs") ; write-error Remember that you have to give a directory as the destination for the CopyFile() function, not a file name. Now it probably tries to access/create a "WBPattern.prefs/" directory but fails be...
by jPV
Mon Dec 11, 2023 8:15 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 5250

Re: yet another sinus scroller question

I use Cls() because I did a star field moving in background. Is it really better to clear only the "old" pixels even from starfield instead of using Cls()? It might depend how full of stars it is, but most likely it's better to avoid Cls() still. You'll see the definite answer when you me...
by jPV
Wed Dec 06, 2023 5:06 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 5250

Re: yet another sinus scroller question

Well.. this isn't anywhere near perfect, but more like a quick proof of concept how to optimize it somehow. Here we have characters as brushes and only render visible ones, and won't clear the whole screen, but just the previous characters. Sin/cos doesn't look like the same etc. but it's just a qui...
by jPV
Sat Dec 02, 2023 12:25 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 5250

Re: yet another sinus scroller question

Just some quick notes without testing etc. You'll have to remember that a real Amiga (I assume you mean an Amiga with 68k CPU and slow graphics throughput) is from a whole different world compared to a modern PC, and such an Amiga has a hard time outputting fullscreen chunky graphics at good framera...
by jPV
Thu Nov 30, 2023 6:15 pm
Forum: General programming
Topic: yet another sinus scroller question
Replies: 13
Views: 5250

Re: yet another sinus scroller question

Check your Y calculations, I think your Y values jump wildly and makes it look flickering when it technically doesn't flicker (try with a steady Y value).
by jPV
Thu Nov 30, 2023 8:47 am
Forum: RapaGUI
Topic: Align caracters in texteditor mode
Replies: 6
Views: 3956

Re: Align caracters in texteditor mode

Another option would be to convert the output as listview entries :)