Search found 115 matches

by amyren
Fri Sep 11, 2020 12:57 pm
Forum: Newbie questions
Topic: CountJoysticks() reports one joystick to much
Replies: 2
Views: 107

Re: CountJoysticks() reports one joystick to much

Is this consistent for all Amiga systems?
So that I can use a workaround by simply using -1 when an Amiga system is detected?
by amyren
Fri Sep 11, 2020 12:53 pm
Forum: Newbie questions
Topic: maxchrs setting is ignored
Replies: 2
Views: 88

Re: maxchrs setting is ignored

Ok.Thanks for the clarification.
by amyren
Wed Sep 09, 2020 2:29 pm
Forum: Newbie questions
Topic: CountJoysticks() reports one joystick to much
Replies: 2
Views: 107

CountJoysticks() reports one joystick to much

When I query for joysticks on MorphOS CountJoysticks() will return 1 if no joysticks are connected, and reports 3 if 2 joysticks are present. I even tried to disconnect both mouse and keyboard to be sure they didnt interfere. Also in OS3.9 under WinUAE it does report 1 joystick present when none are...
by amyren
Wed Sep 09, 2020 2:12 pm
Forum: Newbie questions
Topic: maxchrs setting is ignored
Replies: 2
Views: 88

maxchrs setting is ignored

I use stringrequest to get a numerical value, and I use maxchrs to limit the number of digits allowed. When running the program on Windows it works, I can only enter 1 digit. But running it on MorphOS or OS3 it seem to ignore the maxchrs setting, and accepts any numer of digits to be entered. Does t...
by amyren
Thu Aug 13, 2020 12:40 pm
Forum: Newbie questions
Topic: How to find system drive on windows?
Replies: 4
Views: 658

Re: How to find system drive on windows?

Thanks. GetSystemInfo() does not seem to have option to get the Desktop path (user or common), nor the system drive.¨ But in my case I think CommonAppData and MyDocuments will do what I want this time. %windir% is already covered by the GetSystemInfo() command %systemdrive% is also used in windows, ...
by amyren
Wed Aug 12, 2020 9:31 pm
Forum: Newbie questions
Topic: How to detect if the program already is running?
Replies: 4
Views: 314

Re: How to detect if the program already is running?

Thanks. CreatePort() works for me, even without actually using the port to send anything. The first copy of the program creates the port, then double-starting the next program will throw an error when it tries to create a port that already exists. So I now just set ExitOnError(false) and make my own...
by amyren
Wed Aug 12, 2020 12:39 pm
Forum: Newbie questions
Topic: How to find system drive on windows?
Replies: 4
Views: 658

How to find system drive on windows?

On Amiga systems we can use sys: to adress the system drive.

But how to find the system drive on a window system, in the odd cases this is not c: ?
The same question also applies for locations like Desktop, Appdata, Documents etc for current user
by amyren
Wed Aug 12, 2020 12:14 pm
Forum: Newbie questions
Topic: How to detect if the program already is running?
Replies: 4
Views: 314

Re: How to detect if the program already is running?

Thanks for the reply. Actually I was looking for a solution that will work on windows too. I have a workaround plan in case Hollywood dont have an internal way to detect it. Just let the program create a file at startup, and then delete the file when quitting. Then check if this file exists on every...
by amyren
Wed Aug 12, 2020 12:15 am
Forum: Newbie questions
Topic: How to detect if the program already is running?
Replies: 4
Views: 314

How to detect if the program already is running?

Is there a way to check if the program is running, to avoid the possibility of starting two copies of the program?

I found this discussed in an old feature request, but I couldnt find if it have been adressed yet.
viewtopic.php?p=15375
by amyren
Sat May 23, 2020 1:03 pm
Forum: Newbie questions
Topic: Window position when toggling Borderless
Replies: 1
Views: 399

Window position when toggling Borderless

When running the included Hollywood example named DisplayStyle you can tick and untick the borderless flag. For each cycle the window will move up and left the same number of pixels that the size of the borders. Repeating this and it will eventually move until you no longer can reach that button. If...