| Plugin Development Extend the functionality of Centrafuse by developing plugins |
 |
|
April 4th, 2008, 06:01 AM
|
#11 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
Quote:
Originally Posted by tired
Hello Zorro, I have 2 questions about CFInjector. First of all, is there any way to catch events from injected labels. I need to catch clicks on that labels somehow. If CFInjector don't have such api, maybe you can point me to some winapi way ? And the second question, how can I change already injected label text in runtime ? call InjectText again for exsting label id and then call DrawInjectedControls ? Or am I missing something ?
|
As of yet, there's no regular way to click them as CFinjector doesn't create labels, it rather draws directly into the Main screen.
You could evaluate clicks if you create a Mouse Hook, such as CF does for the gesture recognition. Have a look into the GlobalHook class of the cfplugin interface.
But rather than setting up a hook, I'd use a timer to display the different values. Most likley, you already have one to read out the measured values.
To change the value of a injected text or image simply call InjectText or InjectImage once again.
DrawInjectedControls will traverse through all controls assigned and redraw the current values/images. This method is supposed to be used from a timer routine.
If you use a timer, you have to be careful with the timeout value you use. I don't recommend any values below 2 seconds because it might slow down CF with all the redrawing (assuming you have more than one text/image). Eventually, the timer is used only to update the injections in case CF redraws the main screen for some reason.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
|
|
|
April 8th, 2008, 07:07 PM
|
#12 (permalink)
|
|
Administrator
Join Date: Mar 2006
Location: Detroit, Michigan
Vehicle: 2006 CTS
Posts: 3,823
|
Quote:
Originally Posted by Reagan
I've been thinking of something similar to this for some time. This is great work Zoran! Brilliant!
|
I agree, excellent work.
|
|
|
April 9th, 2008, 02:53 AM
|
#13 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
Thanks Scott.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
|
|
|
May 9th, 2008, 12:20 PM
|
#14 (permalink)
|
|
5 Farad - High Capacity
Join Date: Mar 2008
Posts: 61
|
Hi Zorro!
Do you know why I am getting this Issue using CF_Injection(see the attachment)? It seems to me that's a problem with transparent background.
Btw when I sent 120% large fonts - I don't have this issue.
Regards, ALexy
|
|
|
May 9th, 2008, 01:52 PM
|
#15 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
Quote:
Originally Posted by A__l
Hi Zorro!
Do you know why I am getting this Issue using CF_Injection(see the attachment)? It seems to me that's a problem with transparent background.
Btw when I sent 120% large fonts - I don't have this issue.
Regards, ALexy
|
The only thing I'm aware of is that this happens if your skin is not rendered with 96 DPI. You may check that.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
|
|
|
July 31st, 2008, 05:24 AM
|
#16 (permalink)
|
|
5 Farad - High Capacity
Join Date: Mar 2008
Posts: 61
|
Quote:
Originally Posted by Zorro
The only thing I'm aware of is that this happens if your skin is not rendered with 96 DPI. You may check that.
|
Thanks. That's really was the reason (sorry for delay with answer). Problem is fixed
|
|
|
March 25th, 2009, 10:20 AM
|
#17 (permalink)
|
|
Newbie - Zero Capacity
Join Date: Mar 2009
Posts: 2
|
Hello,
sorry, this is my second post and i have a problem with CFInjector and with english...
CFInjetor works fine for me only at a Resolution of 848x480, and on all other Resolutions the Label is on THE SAME postion on the screen.
Some Screen shots:
At 848x480 the Icon is displayed correct:
At 1024x768 the icon is on the same place because of the bigger resolution the icon is over the song title..
|
|
|
March 25th, 2009, 10:38 AM
|
#18 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
This may happen because CFInjector doesn't support stretched skins. What you need is a native 1024x768 skin containing the CFInjector definitions.
I may look into this and change it, as I find some time.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
|
|
|
March 29th, 2009, 08:52 AM
|
#19 (permalink)
|
|
10 Farad - Flux Capacity
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
|
Updated. See first post for details.
__________________
Skinning to go... VD2
My Plugins: BluetoothControl, Contacts, Scribble, MWConn, Phidgets, Skype, PluginBrowser, LogoDashboard, SkinBrowser
My Tools: CFInjector
My Skins: Street WS, Gizmo, Cyclone, Drive
|
|
|
|
The Following User Says Thank You to Zorro For This Useful Post:
|
|
April 4th, 2009, 01:53 PM
|
#20 (permalink)
|
|
5 Farad - High Capacity
Join Date: Aug 2008
Posts: 89
|
there is any difference between this plugin and logodashboard like I'm using in the header?
Thanks
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|