Search found 131 matches
- Thu Aug 13, 2020 12:40 pm
- Forum: Newbie questions
- Topic: How to find system drive on windows?
- Replies: 4
- Views: 1163
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, ...
- Wed Aug 12, 2020 9:31 pm
- Forum: Newbie questions
- Topic: How to detect if the program already is running?
- Replies: 5
- Views: 913
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...
- Wed Aug 12, 2020 12:39 pm
- Forum: Newbie questions
- Topic: How to find system drive on windows?
- Replies: 4
- Views: 1163
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
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
- Wed Aug 12, 2020 12:14 pm
- Forum: Newbie questions
- Topic: How to detect if the program already is running?
- Replies: 5
- Views: 913
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...
- Wed Aug 12, 2020 12:15 am
- Forum: Newbie questions
- Topic: How to detect if the program already is running?
- Replies: 5
- Views: 913
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
I found this discussed in an old feature request, but I couldnt find if it have been adressed yet.
viewtopic.php?p=15375
- Sat May 23, 2020 1:03 pm
- Forum: Newbie questions
- Topic: Window position when toggling Borderless
- Replies: 1
- Views: 609
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...
- Mon May 11, 2020 8:46 pm
- Forum: Newbie questions
- Topic: AmigaOS3: selected audio channel is out of range
- Replies: 5
- Views: 1557
Re: AmigaOS3: selected audio channel is out of range
Ah. I see now. I should use HaveFreeChannel to check if the channel can be used.
Perhaps it could be mentioned in the docs that those channels are reserved?
Perhaps it could be mentioned in the docs that those channels are reserved?
- Sat May 09, 2020 10:37 pm
- Forum: Newbie questions
- Topic: AmigaOS3: selected audio channel is out of range
- Replies: 5
- Views: 1557
Re: AmigaOS3: selected audio channel is out of range
That explains the error. But why does getchannels report that there are 8 available channels?
- Tue May 05, 2020 11:28 am
- Forum: Newbie questions
- Topic: AmigaOS3: selected audio channel is out of range
- Replies: 5
- Views: 1557
AmigaOS3: selected audio channel is out of range
I have this game, where my previous version just played its samples without specifying an audio channel. Then I ran into issues with the android version, so I did change this so they all had audio channel specified. like this: PlaySample(2, {Channel = 2}) This worked well for android and windows ver...
- Thu Apr 23, 2020 12:07 pm
- Forum: Newbie questions
- Topic: Audio files problem
- Replies: 2
- Views: 1360
Audio files problem
I have this LCD game that uses 8 different wav files for sound effects. I have compiled it for both amiga, windows and android and it was working normally on all platforms. Now I have got the permission to use some wav files from an italian website, that are more accurate to the original sounds. So ...