Is there any way to quit a commodity? I've looked through the library and the only thing that looks to do the job is the hidden BrokerCommand() function.
I can't even see a way to find out if a commodity exists without trying to create one.
Even the CxExchange program cannot be told to do it nor does it have an Arexx port.
Hello,
I am creating a unique ARexx port with the CreateRexxHostPort() call which will append a value of 1-9 after the basename followed by a period.
This works fine, but I can't for the life of me work out how to find what that particular slot number is.
Can anyone help me on determining the actual ARexx portname created after using the CreateRexxHostPort() call?
Is there a proper way to detect if your application's dock icon is displayed?
I know that you could simply check if the AMIDOCK AREXX port exists (or if AmiDock is registered as a commodity), but I'm wondering if there's a better way directly through the application.library. IIRC, RegisterApplication() will return success even if AmiDock isn't running.
Some of the older applications have a feature where when it is running a filedrop icon appears on the workbench. Using that you can open files in the app by drag 'n dropping them at the icon. It is quite useful especially if the app is opened on a different screen. If I recall correctly, CodeBench does that as well.
I'd like to add that feature to one of my applications, but I don't know the logic of how this is working nor have I managed to find any info anywhere.
Has anyone done that before? Do you guys have any info to share or any documentation to point me to?
I hope somebody can help me understand this. I'm "playing around" with a 68000 disassembler. It was originally written in C to run on an Amiga. I'm converting it to Microsoft Visual C++. My specific target is a very old Amiga game, namely "conquest". It's written in very basic 68000 code. My specific question involves the way motorola integer format differs from x86 format. The low order and high order bytes and words are reversed. I've run into this in the past when trying to read .BMP image files created on an Amiga. The integers need to be swapped to produce a recognizable .BMP file.
ZitaFTP Server's install script currently uses WBRun to start the installer. Unfortunately, WBRun doesn't wait for completion (it isn't supposed to), and AmiUpdate will delete the installer's files right from under its nose.
I don't see a command line option to make WBRun wait for completion before returning. Is this possible? If not, what's an alternative way to run something as if it were started from Workbench that will wait for completion?
For the last few days I am interested in unit testing and I am learning how to do it with my C projects. I found a few libraries that help a lot with that. Some of them are huge and some are pretty minimal.
But I wanted to ask you if you do create unit tests for your applications, and if you do, what do you like to use?
So I'm wondering if there is an easy way to query mouse button status?
That is without having a window. Such as for a windowless commodity. I don't see anything in commodities.library that would help.
I know the input.device can be used with PeekQualifier() but it's a bit of work setting up a device and then getting a library interface just to use one function.