Go Back   Quintessential Forum > Plug-ins and Development > Plug-in Development

Reply
 
Thread Tools
  #1  
Old 05-24-2005, 01:34 AM
Paul's Avatar
Paul Paul is offline
qmp = Quinn-Matt-Paul?
 
Join Date: Sep 2003
Posts: 1,546
Paul is on a distinguished road
Default QCDHotKeys source code

This is probably considered by most an indispensible plugin for QCD. But it needs some TLC! For one, it needs Win key support.
Can you guys make it into everything that could be wanted?


Please post back modified project source back in this thread.
Attached Files
File Type: zip QCDHotKeys.zip (27.2 KB, 149 views)
Reply With Quote
  #2  
Old 05-24-2005, 01:59 AM
Tokelil's Avatar
Tokelil Tokelil is offline
Firesoul?
 
Join Date: Nov 2003
Posts: 3,864
Tokelil is on a distinguished road
Send a message via ICQ to Tokelil Send a message via MSN to Tokelil
Default

I dont think this is the right place to post requests to the Hotkey plug-in (for who ever takes it), a seperate thread should be made for that. (Or the forum searched.)
Never the less I would like to surgest that an API for other plug-ins to add global hotkeys is created. (Maybe through RegisterWindowMessage(_T("GlobalHotkeys"))?)
This brings plug-in dependency which is quite uncommon in QCD atm. but it would great IMO. But it's you call in the end Paul, so some indication about what you think about this would be good.
__________________
My QMP plug-ins page
Reply With Quote
  #3  
Old 05-24-2005, 02:07 AM
Paul's Avatar
Paul Paul is offline
qmp = Quinn-Matt-Paul?
 
Join Date: Sep 2003
Posts: 1,546
Paul is on a distinguished road
Default

Making the HotKeys plugin take HotKey requests from other plugins? I don't have anything against that, although I'm not sure about the reason for it (other than being able to see all registered HotKeys in the same window, which I guess is legitimate). But it's easy enough for other plugins to register their own hotkeys.

It's my call as to whether I use the updates in QCD, but I encourage anyone to take the plugin in any directions they want.
Reply With Quote
  #4  
Old 05-24-2005, 08:13 AM
Rex_Mundi_Incarnit Rex_Mundi_Incarnit is offline
See you on the other side
 
Join Date: Nov 2003
Location: Australia
Posts: 9,165
Rex_Mundi_Incarnit is on a distinguished road
Send a message via MSN to Rex_Mundi_Incarnit
Default

OKay, this is cool. Im no programmer so i'll just post the feature requests

Can we have hotkeys to restore and minimise qcd? Would these actions be controlled by the application itself? Afterall there is a hotkey to close qcd.
__________________

My Picasa
Reply With Quote
  #5  
Old 05-24-2005, 08:14 PM
teedoff087's Avatar
teedoff087 teedoff087 is offline
Foreman
 
Join Date: Dec 2003
Location: Hudson, TX
Posts: 199
teedoff087 is on a distinguished road
Send a message via AIM to teedoff087 Send a message via MSN to teedoff087
Default

EDIT: Moved to feature request thread.

Last edited by teedoff087; 05-25-2005 at 12:00 AM.
Reply With Quote
  #6  
Old 05-24-2005, 09:31 PM
Tokelil's Avatar
Tokelil Tokelil is offline
Firesoul?
 
Join Date: Nov 2003
Posts: 3,864
Tokelil is on a distinguished road
Send a message via ICQ to Tokelil Send a message via MSN to Tokelil
Default

Lets keep this thread for development talk and post feature requests here:
http://www.quinnware.com/forum/showthread.php?p=37274

@teedoff087: A hotkey for the playlist isn't possible atm. because it depends on the skin used.
__________________
My QMP plug-ins page
Reply With Quote
  #7  
Old 05-24-2005, 11:58 PM
Tropics's Avatar
Tropics Tropics is offline
Virtual Reality Editor
 
Join Date: Nov 2003
Location: Graz, Austria
Posts: 377
Tropics is on a distinguished road
Send a message via ICQ to Tropics Send a message via AIM to Tropics Send a message via MSN to Tropics
Default

at least i have downloaded it (and the other one too) ... if nobody else steps in i might be able to at least begin the work
Reply With Quote
  #8  
Old 09-26-2006, 12:45 AM
Tropics's Avatar
Tropics Tropics is offline
Virtual Reality Editor
 
Join Date: Nov 2003
Location: Graz, Austria
Posts: 377
Tropics is on a distinguished road
Send a message via ICQ to Tropics Send a message via AIM to Tropics Send a message via MSN to Tropics
Default

finally some news here ... i was able to get the WIN key working (took 2 days!). additionally there is the possibility of plugins registering their hotkeys.

paul: i need two message (maybe more later) ints which are currently unused and will stay unused. i don't want to use RegisterWindowsMessage to keep the interface as simple as possible. i was thinking about 41030 and 41031. any preferences?
Attached Thumbnails
Click image for larger version

Name:	ClipBoard-1.jpg
Views:	97
Size:	16.4 KB
ID:	2000  
__________________
crashing qmp since 11.5.2005

http://www.tropictech.de
Reply With Quote
  #9  
Old 09-26-2006, 12:51 AM
Paul's Avatar
Paul Paul is offline
qmp = Quinn-Matt-Paul?
 
Join Date: Sep 2003
Posts: 1,546
Paul is on a distinguished road
Default

What's the use-case for the new messages?

BTW: good job on the Win key. I knew it would be a PIA, which is why I prioritized it low.
Reply With Quote
  #10  
Old 09-26-2006, 01:21 AM
Tropics's Avatar
Tropics Tropics is offline
Virtual Reality Editor
 
Join Date: Nov 2003
Location: Graz, Austria
Posts: 377
Tropics is on a distinguished road
Send a message via ICQ to Tropics Send a message via AIM to Tropics Send a message via MSN to Tropics
Default

Code:
// send this msg to qcd/qmp
// note: you can't (shouldn't) send this msg in the entry point, as it
// might not have an effect then. the safe place to do this is in the
// Initialize function (that means for general plugins you need the
// QMP interface).
//
// WPARAM: the instance handle of your plugin
// LPARAM: a pointer to QCDInitHotkey struct
// returns 1 on success
#define QCD_CREATEHOTKEY 41030

// send this message to remove this plugin from the list
// WPARAM: the instance handle of your plugin
// return value 1: the plugin has been removed from the hotkey list
//              2: the plugin was not in the list because it didn't register callbacks 
#define QCD_REMOVEALLHOTKEYS 41031
thanks ... i had to write a whole new hotkey control for the win key to work correctly
__________________
crashing qmp since 11.5.2005

http://www.tropictech.de
Reply With Quote
  #11  
Old 09-26-2006, 02:21 AM
Paul's Avatar
Paul Paul is offline
qmp = Quinn-Matt-Paul?
 
Join Date: Sep 2003
Posts: 1,546
Paul is on a distinguished road
Default

Are you creating the plugin to respond to those two message? Or do you want QMP to respond to them, and in what fashion?
Reply With Quote
  #12  
Old 09-26-2006, 09:18 AM
Tropics's Avatar
Tropics Tropics is offline
Virtual Reality Editor
 
Join Date: Nov 2003
Location: Graz, Austria
Posts: 377
Tropics is on a distinguished road
Send a message via ICQ to Tropics Send a message via AIM to Tropics Send a message via MSN to Tropics
Default

ah no, the hotkeys plugin does the work. other plugins send those messages to the qmp window, and my plugin catches them and acts accordingly. its just that the messages need to be unused by qmp, as qmp would never get them.
__________________
crashing qmp since 11.5.2005

http://www.tropictech.de
Reply With Quote
  #13  
Old 02-10-2007, 09:41 AM
Paul's Avatar
Paul Paul is offline
qmp = Quinn-Matt-Paul?
 
Join Date: Sep 2003
Posts: 1,546
Paul is on a distinguished road
Default

Hey Tropics, how is this plug-in looking? I haven't personally used your updates yet but I would like to make them part of the official builds. Let me know how things stand.

Also, regarding the devoted message ID's - I think using RegisterWindowsMessage is actually a cleaner way to go as you just need to publish the message name the plug-in uses. It's the only way to guarantee it remains working in the future.

Thanks.
Reply With Quote
  #14  
Old 02-10-2007, 02:44 PM
Tropics's Avatar
Tropics Tropics is offline
Virtual Reality Editor
 
Join Date: Nov 2003
Location: Graz, Austria
Posts: 377
Tropics is on a distinguished road
Send a message via ICQ to Tropics Send a message via AIM to Tropics Send a message via MSN to Tropics
Default

The plugin is released and stable. Currently no update is planned. Would be nice to see it included in the release. The only problem i see is that i guess you want to have the source code and i feel like you when it comes to giving away source code of things that i made.

You are correct about the RegisterWindowsMessage stuff, and i am always using that functionality when it comes to internals. So far i think 41030 and 41031 are safe bets as the numbers that are used throughout QMP are nowhere near that range (all are < 41000). But i could change the behaviour in an update, of course.
__________________
crashing qmp since 11.5.2005

http://www.tropictech.de
Reply With Quote
  #15  
Old 02-22-2007, 08:21 PM
Paul's Avatar
Paul Paul is offline
qmp = Quinn-Matt-Paul?
 
Join Date: Sep 2003
Posts: 1,546
Paul is on a distinguished road
Default

Quote:
Originally Posted by Tropics View Post
The only problem i see is that i guess you want to have the source code and i feel like you when it comes to giving away source code of things that i made.
I almost understand, but you didn't make, you modified. I think this sets a bad precedent with regards to me releasing source to plug-ins.

I can't include plug-ins with the QMP installer that I can't vouch 100% for the contents of the source code.
Reply With Quote
  #16  
Old 01-27-2008, 02:11 PM
shaohao's Avatar
shaohao shaohao is offline
Maharajah
 
Join Date: Nov 2003
Location: Shanghai, China
Posts: 511
shaohao is on a distinguished road
Send a message via MSN to shaohao
Default

Hi, Tropics:
Is it possible for you make your HotKey open source? I want to help you improve the plug-in's UI.
__________________
QPlug-ins -- An Expansion of QMP.
Reply With Quote
  #17  
Old Today, 12:04 AM
jklm105 jklm105 is offline
Junior Mint
 
Join Date: Sep 2009
Posts: 22
jklm105 is on a distinguished road
Unhappy ugg boots

Ugg bootscheap ugg boots
__________________
Nike air max tn
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:46 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.


close window
join the community sep
Username:
Password:
remember me