Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

eg.WinApi liefert fehlermeldungen!?

Allgemeines zum Thema EventGhost
Post Reply
bhpeuker
Posts: 1
Joined: Thu Dec 31, 2009 11:14 am

eg.WinApi liefert fehlermeldungen!?

Post by bhpeuker »

Ich habe unter http://www.eventghost.org/forum/viewtopic.php?f=1&t=511 wie Mute im OSD darstellen kann.
Nun m├Âchte ich das Mute solange angezeigt wird, bis es deaktiviert wird, das habe ich auch erreicht:

Code: Select all

<Action>
          EventGhost.ShowOSD(u'{("", "Mute")[int(eg.result)]}', u'0;-48;0;0;0;700;0;0;0;0;3;2;1;66;Comic Sans MS', (128, 255, 0), (0, 0, 0), 1, (0, 0), 0, 0.0, False)
</Action>
Nur bei jeder anderen OSD Anzeige wird "Mute" entfernt wenn es noch aktiv ist.
Deshalb habe ich die folgenden gefunden und verwendet um nach andren Anzeigen Mute wieder herzustellen:

Code: Select all

<Action>
         EventGhost.ShowOSD(u'Stumm {eg.WinAPI.SoundMixer.GetMute()}', u'0;-48;0;0;0;700;0;0;0;0;3;2;1;66;Comic Sans MS', (128, 255, 0), (0, 0, 0), 1, (0, 0), 0, 0.0, False)
</Action>
leider bekomme ich dabei immer fehlermeldungen.
  • Fehler in Befehl: "Zeige OSD: Stumm {eg.WinAPI.SoundMixer.GetMute()}"
    Traceback (most recent call last) (1262):
    File "C:\Programme\EventGhost\eg\Classes\ActionBase.py", line 168, in CallWrapper
    File "C:\Programme\EventGhost\plugins\EventGhost\ShowOSD.py", line 385, in __call__
    File "C:\Programme\EventGhost\eg\Utils.py", line 204, in ParseString
    File "<string>", line 1, in <module>
    File "C:\Programme\EventGhost\eg\__init__.py", line 44, in __getattr__
    AttributeError: 'eg' object has not attribute 'WinAPI'
Ich verwende EG 0.3.7.r1262 mit Windows-XP-5.1.2600-SP2

W├ñre sch├Ân wenn mir jemand helfen kann.

P.S.:
- gibt es ein PlugIn f├╝r Pinnacle Media Center?
- Ich habe auch das Doppeltastenproblem, die hier aufgef├╝hrten fehlerm├Âglichkeiten habe ich schon gepr├╝ft.
ich habe den neusten Treiber (X19 USB Wireless Transceiver V2.36) irgendwelche HID-Treiber sind im Geräte-
manager nicht zu finden.
Post Reply