Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
87 user(s) are online (31 user(s) are browsing Forums)

Members: 0
Guests: 87

more...

Support us!

Headlines

Forum Index


Board index » All Posts (thomas)




Re: Writing Tool Types in Arexx
Not too shy to talk
Not too shy to talk


@daveyw

This example actually is a bad one. It completely ignores the file format and does a textual search in the file contents. It neither considers future format changes nor custom file formats like PNG icons.

With this method you could probably change an existing tooltype if you maintain the length field and alignment. Or even insert a new one behind or in front of an existing one. But you cannot add a new tooltype without knowing of one which already exists.

The only proper way to access icon data is through icon.library. Unfortunately it does not have an ARexx interface, so you won't get around using an external helper. Either a library or a shell command.

Go to top


Re: Running Status from an arexx script
Not too shy to talk
Not too shy to talk


There are three 'd' in your 'adddress' command.

Go to top


Re: SMBFS / SMBMOUNTER Bug
Not too shy to talk
Not too shy to talk


@rjd324

Quote:
If I also have a VNC window open to the same remote machine and then merely move the mouse cursor, the copying comes back to life.


This sounds like the remote machine has gone into some kind of standby which stops network traffic. By waking it up the network traffic is resumed.

Go to top


Re: MouseBlanker
Not too shy to talk
Not too shy to talk


Quote:
turn off immediate pointer blank once i press a key


That's the only purpose of the program. Why do you run it if you want to turn it off?

Go to top


Re: Bug in 3.2?
Not too shy to talk
Not too shy to talk


@Nuder_Try
Quote:
Expected (3.1) behavior:
A dialog window appears asking for a retry, canceling from that allows the script to continue.


That's not true. A requester only appears if you try to access a non-existing assign.

For a misspelled assign command you get an error message in the console window and a failure return code (20). The script then ends or continues depending on the current FailAt value.


Go to top


Re: Library communication port
Not too shy to talk
Not too shy to talk


You could add private volume fields to your library base. The mixer would write the new volume values into these fields and the next time an AHI program issues a sound command the driver can check the volume fields and insert new volume commands into the command stream if needed.


Go to top


Re: Library communication port
Not too shy to talk
Not too shy to talk


@geennaam
Quote:
I have a library which can be opened by one program only because it gains exclusive access over hardware.


You would normally not implement this via OpenLibrary/CloseLibrary.

You would rather allow the library to be opened by everybody. The library would have a gain_access and a release_access function. The gain_access function grants exclusive access for the first caller and fails for any successive caller until the first caller calls release_access.

For those callers where gain_access fails it could have a third function to supply data to the first caller.

How you implement this internally is up to you. For example the gain_access function could spawn a background process which listens to a message port. The supply_data function would then send the data to the port.


Go to top


Re: AmigaOS 4.1 on WinUAE
Not too shy to talk
Not too shy to talk


@tekmage

Quote:
At that point I was able to ping the WinUAE gateway but not the DNS IP's.


WinUAE's built-in NAT router does not supprt ICMP. This means that Ping, Traceroute and similar utilities won't work.

But normal network traffic should work. So if your laptop is connected to the internet just try to open https://www.google.com in a web browser. Or http://www.amiga-news.de if SSL is not working yet.


Go to top


Re: Getting into ZIP JAR files?
Not too shy to talk
Not too shy to talk



RP9 ist not JAR. Both JAR and RP9 are ZIP.

A JAR is a ZIP containing Java classes.
A RP9 is a ZIP which contains files used for emulation.

http://www.retroplatform.com/kb/15-122


Go to top


Re: How to use Amiga4000T OS3.9 with no startup reboots
Not too shy to talk
Not too shy to talk



I think that Cloanto's 3.X ROM would remove the need for a reset to run OS 3.9.

https://www.vesalia.de/e_kickstart.htm

Go to top


Re: Window class, gadgets and blitting
Not too shy to talk
Not too shy to talk



You can trigger GM_RENDER when needed. Either use RefreshGList or DoMethod.

Go to top


Re: how hide empty console output of C:IconX
Not too shy to talk
Not too shy to talk


@kas1e

Quote:
But when i run it from workbench, then while it all runs fine too, it also bring me some empty window from IconX, which i want to hide.


1) you don't need the script bit if you use IconX

2) add WINDOW=NIL: to the tool types.



Go to top


Re: NAS (with RAID capabilities)
Not too shy to talk
Not too shy to talk



I think what you are looking for is JBOD. It's not a RAID but just concatenates all drives into one big volume. Every HDD case with RAID functionality should be able to do this. Just make sure that the description mentions it.

You should be aware that without any redundancy, if one of the drives dies the whole array will be lost. So better make backups.


Go to top


Re: timemeasure function give 0ms ?
Not too shy to talk
Not too shy to talk



Probably because your time stamp calculation overflows. Your GetTimeStamp() function always returns -1.

It works better if you use (tNow.tv_sec % 86400), but might give wrong results around midnight.

Go to top


Re: Waiting a SystemTags() for terminating?
Not too shy to talk
Not too shy to talk


No, that's not true. SystemTags() definitely is syncronous unless you set SYS_Async to TRUE.

Maybe the program you run as mycommand detaches itself from the shell. Then you'll have a hard time to wait for its end.

A normal program which blocks the shell until it is finished will also let SystemTags block until the program returns.

Go to top


Re: Passing a variable to function by reference
Not too shy to talk
Not too shy to talk



For IDOS->Printf %d is a 16 bit integer, but the compiler puts a 32 bit integer on the parameter, so you print only the upper half of the 32 bits which is always zero for numbers below 65536. You have to use %ld to print it properly.

You should consequently use either printf or Printf everywhere, but don't mix them. You only get confused like in this case.


Go to top


Re: Pointer API
Not too shy to talk
Not too shy to talk



No and no. The function is not in intuition.library and it is not relative to a window.

You can send a IECLASS_NEWPOINTERPOS event to input.device to move the mouse pointer to a given position in the screen.

Example: http://os4depot.net/index.php?functio ... ty/workbench/midmouse.lha


Go to top


Re: AREXX question
Not too shy to talk
Not too shy to talk


@Raziel

/* rexx */

address command
'version >ram:version.txt'

if Open(in,"ram:version.txt",readthen do
   
test ReadLn(in)
   
call Close(in)
end

say 
"version = <"test">"



Go to top


Re: ILBM or IFF
Not too shy to talk
Not too shy to talk



I would say the opposite.

First of all do not use .lbm. This is from stupid M$-DOS crowd who have to pack everyting into three letters. It has no meaing for an Amiga person except for a bad smell.

.ilbm would be most meaningful but is unusual.

.iff is used by most programs and people, although it does not uniquely identify a picture file.




Go to top


Re: Unusual AREXX behaviour
Not too shy to talk
Not too shy to talk



If Setting is always 0 or 1 you could use 1-Setting to swap it.

Length + 1 - Setting makes more sense anyway IMHO because it needs to translate between string and number only once.


Go to top



TopTop
(1) 2 3 4 ... 15 »



Polls
Running AmigaOS 4 on?
AmigaOne SE/XE or microA1 12% (26)
Pegasos2 3% (8)
X5000 22% (48)
X1000 14% (30)
A1222 8% (19)
Sam 440/460 18% (40)
Classic PowerPC Amiga 2% (6)
WinUAE emulation 7% (16)
Qemu emulation 9% (21)
Total Votes: 214
The poll closed at 2025/12/1 12:00
6 Comments


Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project