Jump to content

Define Channel as Favourite


alex.ba

Recommended Posts

Hi all,

 

a question which would help me for favorite management. Would it be possible to define a running (which is running) as favorite. If so I would then define a remote key for it and so it would be a lot easier to maka his own favorite list. To write into the favourite.xml while DVBViewer is open is not a good idea I guess, but perhaps there's another possibility

 

Regards,

 

Alex

Link to comment
  • 2 weeks later...

Hallo NOchmals,

 

bin nun einiges weiter gekommen. Das Hinzufügen eines Senders zu den Favoriten klappt schon mal.

Als nächsten Schritt möchte ich gerne die vorhandenen Gruppen auslesen:

 

Dazu habe ich in der Doku folgendes gefunden:

 

 

function GetGroupsList(out List: OleVariant): Integer; 
Returns a list of all groups in the favorite list as a two-dimensional variant safearray. 

   List[x,0] := ID;
   List[x,1] := Name;

Parameters
List 
A variant to be filled with the array. 
Returns
The count of the arrayitems in the first dimension.

 

Was ich nachvollziehen kann ist die Ausgabe in der ersten Dmension - die Anzahl der Gruppen.

 

Daz nutze ich folgenden Code (hier in der Scriptsprache AutoIt)

 

dim $test, $x

$DVBViewer = ObjGet ("", "DVBViewerServer.DVBViewer")

if @error Then
exit
Else
EndIf


$test = $DVBViewer.FavoritesManager.GetGroupsList($x)
MsgBox(4096,"",$test)

 

Als Rückgabe bekomme ich in $test die ANzahl der Gruppen. Nun möchte ich aber an die entsprechende IB bzw. den Namen. Weiß jemand wie ich das bekomme?

 

Danke und Grüße

 

Alex

Link to comment

Das (Array Rückgabe vom COM-Objekt) funktioniert outofthebox mit autoit nicht.

 

Was kann man da tun?

1. Auf Funktionen zurückgreifen bei denen kein Array zurückgegeben wird (Anzahl der Gruppen holen und durchloopen)

2. Auf VBS innherhalb autoit umsteigen: http://www.autoit.de/index.php?page=Thread&postID=167403&highlight=Objekt#post167403

3. AutoItObject: http://www.autoit.de/index.php?page=Thread&threadID=17920 (wird aber ziemlich kompliziert)

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...