Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development


Reply
 
Share Thread Tools Display Modes
Old 11-22-2006, 03:20 PM   #1
Constant Bitrate
 
Join Date: Sep 2006
Location: Cornwall, England
Posts: 154
portreathbeach is an unknown quantity at this point
Getting current frequency from Radiator

Hi,

I am currently writing a front-end for my CarPC, but cannot get the current frequency form radiator. I can control every part of it apart from getting the Frequency from it. I am coding in Visual Basic .NET 2005. I looked around on the internet and it looks like GetWindowText.

When you change the frequency in Radiator, the windows title changes and has the frequency in it....


eg. 99.30 FM - Radiator (Muted)


I have used the code below to get the windowtext, so I can take the first part of the returned string to give me the frequency........




Public Function Radiator_GetFrequency() as String

Dim buf As String
Dim Title As String
Dim Length As Integer

Length = GetWindowTextLength(hWndRadiator)
buf = Space$(Length)
Length = GetWindowText(hWndRadiator, buf, Length + 1)
Title = buf.Substring(0, 5)

Return Title

End Function



...but all I get back from the function is the string "Radiator", why is this, has anybody else managed to get the frequency from Radiator?

Thanks for any help
portreathbeach is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 11-28-2006, 04:50 PM   #2
Constant Bitrate
 
Join Date: Sep 2006
Location: Cornwall, England
Posts: 154
portreathbeach is an unknown quantity at this point
Sorted!

After a lot of searching on the internet I have found a way to get the frequency. The actual window that contains the frequency information is the parent to the Radiator window. You simply use the GetWindowLong to find the parent window handle and then use GetWindowText to get its title.

Hope this is some help to someone.
portreathbeach is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Release new phoco integration preview Robby BMW Road Runner 544 09-12-2009 06:29 AM
No sound with radiator (PCMCIA Medion TV-tuner 7134 card) sabri Road Runner 1 12-21-2005 05:29 PM
radiator problem / radiator keeps playing superbowl Centrafuse 1 06-14-2005 12:57 PM
Problem with Radiator: can you help me ? pgiordano RR Bug Tracker 29 03-22-2005 12:29 PM
People with tuners who work with radiator NATIVELY. nappyjim General Hardware Discussion 4 02-18-2005 10:24 PM



All times are GMT -5. The time now is 12:37 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.2
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics