Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
125 user(s) are online (109 user(s) are browsing Forums)

Members: 0
Guests: 125

more...

Support us!

Headlines

 
  Register To Post  

[Solved] Commodity events
Supreme Council
Supreme Council


See User information
Is there any way to make a commodity to not consume a hotkey input event?

That is, I want to listen to a certain hotkey. But I don't want to trap the event in my application but also let other applications/commodities to listen to the specific input event as well.


(in this instance I'm listening to mouse buttons, but do not want to block other apps from listening to mouse buttons)


Edited by orgin on 2009/5/5 16:15:13
Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: Commodity events
Supreme Council
Supreme Council


See User information
@orgin

anyone?

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: Commodity events
Not too shy to talk
Not too shy to talk


See User information
@orgin

I'm pretty sure it can be done. if you don't get a reply by the time i get home from work i'll dig out my RKMs.

Go to top
Re: Commodity events
Supreme Council
Supreme Council


See User information
@orgin

This is going to be very difficult to describe without typing in the whole chapter, but I'll have a go...

When you set up the commodity, normally you install a CxFilter object to trap the hotkey. A CxSender would then be set up to send that hotkey to the commodity MsgPort.
In order to swallow the key input, a CxTranslate object would then be attached to the sender, with an input event of NULL.

By removing this CxTranslate object, the hotkey will be transmitted throughout the system, as there is nothing to stop it.

I heartedly suggest you try to obtain a copy of the RKRM Libraries (Third Edition) is these are still the Amiga programming bible.

Simon


Edited by Rigo on 2009/5/5 13:40:35
Go to top
Re: Commodity events
Just popping in
Just popping in


See User information
@orgin

Searching the internet I found this link quite a while ago:

http://pub.elowar.com/AmigaDev/Libraries_Manual.html

Not sure if it helps here but it might come handy for someone.

And looking for the root-dir you'll find some more interesting links.

http://pub.elowar.com/AmigaDev/

Go to top
Re: Commodity events
Supreme Council
Supreme Council


See User information
@all

I've already read the RKRM chapter for commodities. It didn't help much.

If noone else has any concrete suggestions on what to do I'll try removing the CxTranslate object as Rigo suggested.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: Commodity events
Supreme Council
Supreme Council


See User information
@Rigo&all

Removing the translator made it work. Thanks.

Vacca foeda. Sum, ergo edo

Mr Bobo Cornwater
Go to top
Re: Commodity events
Just popping in
Just popping in


See User information
@Rigo

Revisiting this thread..

For the Workbench lock utility I am working on, I have read the commodities section DevCD but I couldn't understand well as a beginner

How can I limit key and mouse input for a specific window using this CX commands ?

I wish there was some commodity example that can be compiled for OS4 SDK.

Thanks

Go to top
Re: Commodity events
Supreme Council
Supreme Council


See User information
@Sinan

The button swapper commodity example in the RKRMs still compiles and runs fine under OS4.

Simon

Comments made in any post are personal opinion, and are in no-way representative of any commercial entity unless specifically stated as such.
----
http://codebench.co.uk
Go to top

  Register To Post

 




Currently Active Users Viewing This Thread: 2 ( 0 members and 2 Anonymous Users )




Powered by XOOPS 2.0 © 2001-2024 The XOOPS Project