Poster | Thread |
Chris_Y
| |
Re: New software releases by OnyxSoft Posted on 16-Mar-2006 21:01:18
| | [ #21 ] |
|
|
|
Elite Member |
Joined: 21-Jun-2003 Posts: 3205
From: Beds, UK | | |
|
| @FuZion
You can do it with STATUS. You would need something like (as usual, untested so might need tweaking):
/* AmigaAmp Play/Pause */ address amigaamp options results
status
if result="PLAY" then pause else play
/* end */
The other thing I can't help with much, but I can tell you there are certain rawkey codes defined for such buttons - if the players wanted, they could install their own commodities input handler to listen to them and react accordingly (@Bean - maybe this is a good idea for TuneNet?)
Here are the codes etc from the includes which you ought to translate them to (perhaps as well as the current action):
/* The following keys can exist on CDTV, CD32 and "multimedia" keyboards: * * Rawkey |CD32 color&key |CDTV key |Comment * ---------------+-------------------+----------+----------- * 0x72 Stop |Blue Stop |Stop | * 0x73 Play/Pause|Grey Play/Pause|Play/Pause| * 0x74 Prev Track|Charcoal Reverse |<< REW | * 0x75 Next Track|Charcoal Forward |>> FF | * 0x76 Shuffle |Green Shuffle | |Random Play * 0x77 Repeat |Yellow Repeat | | */
Of course, you could just define an ARexx script for each button which runs through and issues the necessary commands to each program.
Chris Last edited by Chris_Y on 16-Mar-2006 at 09:24 PM. Last edited by Chris_Y on 16-Mar-2006 at 09:06 PM. Last edited by Chris_Y on 16-Mar-2006 at 09:04 PM.
_________________ "Miracles we do at once, the impossible takes a little longer" - AJS on Hyperion Avatar is Tabitha by Eric W Schwartz
|
|
Status: Offline |
|
|
AmigaClyde
| |
Re: New software releases by OnyxSoft Posted on 16-Mar-2006 21:02:39
| | [ #22 ] |
|
|
|
Elite Member |
Joined: 8-Mar-2003 Posts: 2007
From: Noranda Canada | | |
|
| Thanks. Great work on all the softwares updates. _________________ --------- AmigaClyde
µA1-C 750GX@800 using OS4.1
|
|
Status: Offline |
|
|
Tuxedo
| |
Re: New software releases by OnyxSoft Posted on 16-Mar-2006 22:15:29
| | [ #23 ] |
|
|
|
Elite Member |
Joined: 28-Nov-2003 Posts: 2349
From: Perugia, ITALY | | |
|
| @Denil
Quote:
Yes, that is planned for the next version. Or perhaps the very next version which will be release very soon, but later...
|
GREAT NEWS!
GOOD WORK!
Tuxedo. _________________ Simone"Tuxedo"Monsignori, Perugia, ITALY.
|
|
Status: Offline |
|
|
Deniil715
| |
Re: New software releases by OnyxSoft Posted on 16-Mar-2006 22:16:33
| | [ #24 ] |
|
|
|
Elite Member |
Joined: 14-May-2003 Posts: 4237
From: Sweden | | |
|
| @FuZion
Chris_Y answered your arexx issues, but about executing more commands on the same key you can do two things:
1. Add the key twice (or more) in the prefs file and set different commands for them.
2. Execute an arexx (or CLI) script and put all commands in there.
Note though that it is MUCH more efficient to execute an arexx command directly from AllKeys (using RXCOMMAND) than to execute the command directly with "rx" or even slower to put it in a script and execute the script. Normally the A1 is fast enough so you wouldn't notice the difference, but during very high load it gets apparent that RXCOMMAND is A LOT faster than COMMAND rx ... .
I put COMMAND rx "address MIXER PCMUP" on my volume wheel and started rotating it and I saw a 30% CPU load.
Then I put RXPORT=MIXER RXCOMMAND=PCMUP on the same wheel and started spinning it but couldn't generate more than 3% CPU usage.
That's a 10-fold increase in efficiency, and then I never even executed a real script. _________________ - Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes) > Amiga Classic and OS4 developer for OnyxSoft.
|
|
Status: Offline |
|
|
Severin
| |
Re: New software releases by OnyxSoft Posted on 17-Mar-2006 23:18:32
| | [ #25 ] |
|
|
|
Elite Member |
Joined: 18-Aug-2003 Posts: 2740
From: Gloucestershire UK | | |
|
| I have a problem with allkeys, it's running the programs twice, eg I have a little magnifying glass MM key so I assigned Find to it with the following:
CODE=$80000221 CLASS=XKEY COMMAND=wbrun Sys:System/Find
My first line is:
PRI=65 EATALL FLUSHUPSTROKES
I press the button and hold the button and find starts, as soon as I release the button another copy is started
I'm using a Logitech DiNovo usb keyboard. _________________ OS4 Rocks X1000 beta tester, Sam440 Flex (733)
Visit the Official OS4 Support Site for more help.
It may be that your sole purpose is to serve as a warning to others.
|
|
Status: Offline |
|
|
PEB
| |
Re: New software releases by OnyxSoft Posted on 17-Mar-2006 23:20:36
| | [ #26 ] |
|
|
|
Cult Member |
Joined: 8-Mar-2003 Posts: 504
From: Unknown | | |
|
| [edit]@Severin[/edit]
Stupid question, but: Is it possible that you have two instances of AllKeys running? Last edited by PEB on 17-Mar-2006 at 11:21 PM.
|
|
Status: Offline |
|
|
Severin
| |
Re: New software releases by OnyxSoft Posted on 18-Mar-2006 0:03:30
| | [ #27 ] |
|
|
|
Elite Member |
Joined: 18-Aug-2003 Posts: 2740
From: Gloucestershire UK | | |
|
| No I don't, for some reason my keyboard returns only the upstroke twice or the keypress twice, so some keys are only upstroke, some are only keypress.
media, stop, play/pause, rew, ffwd, vol up & vol down only return upstrokes
web, mail, search only return keypresses
sleep and the F-Locked function keys don't work at all. _________________ OS4 Rocks X1000 beta tester, Sam440 Flex (733)
Visit the Official OS4 Support Site for more help.
It may be that your sole purpose is to serve as a warning to others.
|
|
Status: Offline |
|
|
Deniil715
| |
Re: New software releases by OnyxSoft Posted on 19-Mar-2006 23:52:04
| | [ #28 ] |
|
|
|
Elite Member |
Joined: 14-May-2003 Posts: 4237
From: Sweden | | |
|
| @Severin
Wierd. What does AllKeys LEARN give you when you hit that key? Do you get two presses? One for down and one equal code for up? If so, I don't think there is much to do except to make a script or something that makes sure only every other event is used. _________________ - Don't get fooled by my avatar, I'm not like that (anymore, mostly... maybe only sometimes) > Amiga Classic and OS4 developer for OnyxSoft.
|
|
Status: Offline |
|
|
Severin
| |
Re: New software releases by OnyxSoft Posted on 20-Mar-2006 16:01:30
| | [ #29 ] |
|
|
|
Elite Member |
Joined: 18-Aug-2003 Posts: 2740
From: Gloucestershire UK | | |
|
| Yes, thats what I get, the same code for key down and key up. I think this keyboard sends extra data that usb now ignores (it used to just be detected as babble and cause a reset). _________________ OS4 Rocks X1000 beta tester, Sam440 Flex (733)
Visit the Official OS4 Support Site for more help.
It may be that your sole purpose is to serve as a warning to others.
|
|
Status: Offline |
|
|