Search found 93 matches

by emeck
Sat May 13, 2017 8:07 pm
Forum: Newbie questions
Topic: OpenCatalog
Replies: 6
Views: 4670

Re: OpenCatalog

Platform-independent catalogs in plain text format are only supported by Hollywood and thus must not be copied to LOCALE:Catalogs because this would confuse other programs. Understood, thanks for the clarification. I got it working now but seems to be a bug with catalan language. I have a small scr...
by emeck
Sat May 13, 2017 7:53 pm
Forum: RapaGUI
Topic: Catalogs in RapaGui
Replies: 11
Views: 6926

Re: Catalogs in RapaGui

@airsoftsoftwair that is too complex for me now. But I found a solutions that is working nicely for the small GUIs I'm writing now and simpler than the one posted before for using an xml file for each language that have a catalog. /**** Read GUI file ****/ ;detect system's language, change ;encoding...
by emeck
Sun May 07, 2017 9:02 am
Forum: RapaGUI
Topic: Catalogs in RapaGui
Replies: 11
Views: 6926

Re: Catalogs in RapaGui

Possibly you have some special characters like german "ä" "ö" or french accents in your xml-file?? No special characters. I tried only with english as default and english catalog too. The catalog table with the strings works when the string variables are called inside the HW script for each corresp...
by emeck
Thu May 04, 2017 11:18 pm
Forum: RapaGUI
Topic: Catalogs in RapaGui
Replies: 11
Views: 6926

Re: Catalogs in RapaGui

Just check out the documentation: http://www.hollywood-mal.com/docs/html/hollywood/CatalogFormatNote.html I'm also having trouble with this. My catalog strings work when used in the hws script but nos when used in the xml file. I get this message: Error parsing XML: not well-formed (invalid token) ...
by emeck
Tue May 02, 2017 11:07 pm
Forum: Newbie questions
Topic: OpenCatalog
Replies: 6
Views: 4670

Re: OpenCatalog

You need to use a "Catalogs" subdirectory, e.g. "Catalogs/français/convi.catalog" or "Catalogs/french/convi.catalog". Did you do that? Ok, I thought that was only for non Amiga systems, as written in the guide. I was using the LOCALE:catalogs drawers. It works now using the current drawer. Thanks! ...
by emeck
Mon May 01, 2017 4:38 pm
Forum: Newbie questions
Topic: OpenCatalog
Replies: 6
Views: 4670

OpenCatalog

Hello, I want to learn how to localize my programs. So I have a script with this code: convi_cat$={} OpenCatalog("convi.catalog") convi_cat$[0]=GetCatalogString(0, "File") convi_cat$[1]=GetCatalogString(1, "About...") convi_cat$[2]=GetCatalogString(2, "About RapaGUI...") For k= 0 To 2 debugprint(con...
by emeck
Fri Mar 31, 2017 2:05 pm
Forum: Newbie questions
Topic: capture cli output
Replies: 8
Views: 2704

capture cli output

Hello, I want to run a cli program from a Hollywood app, and to capture any output from the ran cli program. What I'm doing now is use a temporary file in T:, like this this: Local today$ Execute("date > T:today") todayfile=OpenFile(Nil, "T:today") today$=ReadLine(todayfile) CloseFile(todayfile) Del...
by emeck
Tue Mar 21, 2017 2:38 pm
Forum: General questions
Topic: Fade out music
Replies: 3
Views: 5331

Re: Fade out music

You need to assign an ID for the MP3 in the sound dialog, e.g. "MYMUSIC". Then you can access this music by using the %@MYMUSIC wildcard, e.g. like this: ... Note the Wait() call. If you don't use a short delay, the fade will be so fast that it won't be noticeable and the music will just stop right...
by emeck
Sun Mar 19, 2017 11:23 pm
Forum: General questions
Topic: Fade out music
Replies: 3
Views: 5331

Re: Fade out music

Forgot to mention this is with Designer 4 and HW 6.1 on MorphOS 3.9
by emeck
Sun Mar 19, 2017 10:17 pm
Forum: General questions
Topic: Fade out music
Replies: 3
Views: 5331

Fade out music

Hello, I have a Designer project with an mp3 as background music, loaded in the first page with id 1. I want to fade out the music in the last page, were I have this loop as code in the page: For i=64 To 0 Step -1 SetVolume(1,i) Next but when displaying the last page I get the message "Could not fin...