Search found 105 matches

by bitRocky
Mon Jun 17, 2019 2:38 pm
Forum: Newbie questions
Topic: Math operator to return the same value regardless if it is minus or plus.
Replies: 2
Views: 207

Re: Math operator to return the same value regardless if it is minus or plus.

I think what you are looking for is Abs()!

Code: Select all

distance = distance + Abs(C)
by bitRocky
Sun May 19, 2019 8:34 am
Forum: Newbie questions
Topic: List and strings
Replies: 15
Views: 1005

Re: List and strings

You have to use parenthesis:

Code: Select all

			If not (loadedline$ = "unwanted") ;dont load this entry
				InsertItem(myvar$, loadedline$)
			EndIf
by bitRocky
Mon Apr 15, 2019 2:05 pm
Forum: General programming
Topic: How to know if a directory or Path is valid?
Replies: 5
Views: 479

Re: How to know if a directory or Path is valid?

Have a look at this https://www.hollywood-mal.com/docs/html ... dling.html.
It doesn't helps you to check if the path is correct, but if the functions fails the script won't abort!
You can check the error yourself and message the user to choose a valid path.
by bitRocky
Sat Apr 06, 2019 3:18 pm
Forum: MUI Royale
Topic: Using MUI's built-in images
Replies: 3
Views: 399

Re: Using MUI's built-in images

You can use "\33I[6:38]" for an up arrow for example!
by bitRocky
Wed Apr 03, 2019 1:14 am
Forum: General programming
Topic: Peek, Poke and Big / Little endians.
Replies: 5
Views: 511

Re: Peek, Poke and Big / Little endians.

hmm, which Hollywood version are you using?
See here https://www.hollywood-mal.com/docs/html ... /Peek.html
by bitRocky
Tue Apr 02, 2019 2:21 pm
Forum: General programming
Topic: Peek, Poke and Big / Little endians.
Replies: 5
Views: 511

Re: Peek, Poke and Big / Little endians.

You used TRUE/FALSE as the "endian" argument, you should use the constants #BIGENDIAN, #NATIVEENDIAN or #LITTLEENDIAN.

Code: Select all

DebugPrint(HexStr(Peek(1, 0, #SHORT, #BIGENDIAN)))
DebugPrint(HexStr(Peek(1, 0, #SHORT, #LITTLEENDIAN)))
by bitRocky
Mon Mar 18, 2019 3:11 pm
Forum: APK Compiler
Topic: How to include XML files on the Android device or into the APK compiler.
Replies: 7
Views: 663

Re: How to include XML files on the Android device or into the APK compiler.

You have to do it this way: moai.CreateDialog([[<?xml version="1.0" encoding="iso-8859-1"?> <dialog id="dlg" title="Ajouter un Article" width="300"> <vgroup> <colgroup columns="2"> <label># Item</label> <textentry id="item"/> <label>Nom</label> <textentry id="Nom"/> <label>Prix</label> <textentry id...
by bitRocky
Mon Mar 11, 2019 2:19 pm
Forum: Hollywood bugs
Topic: SendRexxCommand(): Issues with quotes in the command
Replies: 4
Views: 553

Re: SendRexxCommand(): Issues with quotes in the command

I think it's ARexx itself that gets confused. Try putting the whole string inside other kinds of quotes (if you use " in the string, put it in ', or vice versa). Try adding this before your debugprint line: str$="'" .. str$ .. "'" That did it! Strange, its not neccessary if I use RxCmd to show a bu...
by bitRocky
Sun Mar 10, 2019 7:44 pm
Forum: Hollywood bugs
Topic: SendRexxCommand(): Issues with quotes in the command
Replies: 4
Views: 553

SendRexxCommand(): Issues with quotes in the command

Hi, I can't use quotes in SendRexxCommand(), it seems so that they get removed before the command is send to the rexx port!? Function p_MOSToast(text$, t) Local str$ str$ = "BUBBLE \""..text$.."\"" If HaveItem(t, "x") Then str$ = str$.." X "..t.x If HaveItem(t, "Y") Then str$ = str$.." Y "..t.y If H...
by bitRocky
Fri Mar 08, 2019 3:51 pm
Forum: Amiga IDE questions
Topic: FlowStudio
Replies: 8
Views: 1095

Re: FlowStudio

Hi tolkien, here http://igracki.square7.ch/dl.php?file=FlowStudio-Hollywood-Scripts.lha is the archive. I included also some external shell commands I use in the scripts, please copy all the files from the "Hollywood" directory to Hollywood: and the files from "sys" to sys: manually. You also have t...