Centrafuse Carputer, CarPC & UMPC Forums

Go Back   Centrafuse Carputer, CarPC & UMPC Forums > 3rd Party Development > Plugin Development

Plugin Development Extend the functionality of Centrafuse by developing plugins


Reply
 
LinkBack (1) Thread Tools Display Modes
Old April 4th, 2008, 06:01 AM   #11 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
Quote:
Originally Posted by tired View Post
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
Zorro is offline   Reply With Quote
Old April 8th, 2008, 07:07 PM   #12 (permalink)
Administrator
Scott's CarPC Specs
 
Scott's Avatar
 
Join Date: Mar 2006
Location: Detroit, Michigan
Vehicle: 2006 CTS
Posts: 3,823
Scott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond repute
Quote:
Originally Posted by Reagan View Post
I've been thinking of something similar to this for some time. This is great work Zoran! Brilliant!
I agree, excellent work.
Scott is offline   Reply With Quote
Old April 9th, 2008, 02:53 AM   #13 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
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
Zorro is offline   Reply With Quote
Old May 9th, 2008, 12:20 PM   #14 (permalink)
5 Farad - High Capacity
 
Join Date: Mar 2008
Posts: 61
A__l is on a distinguished road
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
Attached Images
File Type: jpg img.jpg (67.7 KB, 297 views)
Highslide JS
A__l is offline   Reply With Quote
Old May 9th, 2008, 01:52 PM   #15 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
Quote:
Originally Posted by A__l View Post
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
Zorro is offline   Reply With Quote
Old July 31st, 2008, 05:24 AM   #16 (permalink)
5 Farad - High Capacity
 
Join Date: Mar 2008
Posts: 61
A__l is on a distinguished road
Quote:
Originally Posted by Zorro View Post
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
A__l is offline   Reply With Quote
Old March 25th, 2009, 10:20 AM   #17 (permalink)
Newbie - Zero Capacity
Nelix's CarPC Specs
 
Join Date: Mar 2009
Posts: 2
Nelix is on a distinguished road
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..
Attached Images
File Type: jpg 848.jpg (10.2 KB, 309 views)
Highslide JS
File Type: jpg 1024.jpg (18.9 KB, 306 views)
Highslide JS
Nelix is offline   Reply With Quote
Old March 25th, 2009, 10:38 AM   #18 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
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
Zorro is offline   Reply With Quote
Old March 29th, 2009, 08:52 AM   #19 (permalink)
10 Farad - Flux Capacity
Zorro's CarPC Specs
 
Zorro's Avatar
 
Join Date: Nov 2004
Location: Munich, Germany
Vehicle: Audi A3
Posts: 1,024
Zorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of lightZorro is a glorious beacon of light
Send a message via Skype™ to Zorro
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
Zorro is offline   Reply With Quote
The Following User Says Thank You to Zorro For This Useful Post:
Old April 4th, 2009, 01:53 PM   #20 (permalink)
5 Farad - High Capacity
Txori82's CarPC Specs
 
Join Date: Aug 2008
Posts: 89
Txori82 will become famous soon enoughTxori82 will become famous soon enough
there is any difference between this plugin and logodashboard like I'm using in the header?

Thanks
Txori82 is offline   Reply With Quote
Reply

Bookmarks

Tags
cfinjector, developers, plugin, tool

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


LinkBacks (?)
LinkBack to this Thread: http://forums.fluxmedia.net/plugin-development/2395-cfinjector-tool-plugin-developers.html
Posted By For Type Date
Add custom label on main screen - MP3Car.com This thread Refback June 30th, 2008 01:32 AM



All times are GMT -4. The time now is 12:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2009 Flux Media, Inc. All rights reserved.Ad Management plugin by RedTyger