Jump to content

AutoIT DVBviewer Startproblem


prince67

Recommended Posts

Hallo,

Ich möchte den DVBViewer mittels ein AutoIT Scripts starten.

...

run("C:\Program FIles\DVBViewer\DVBViewer.exe")

...

Soweit sogut.

Unter Windows XP 32 und Windows 7 64 funktioniert das auch sehr gut. Also hat das Script keinen Fehler.

NUR

unter Windows 7 32 HomePremium geht es auf einmal nicht mehr.

Da kommt immer die Fehlermeldung:

Runtime error 217 at 004B1149

Ich habe WINDOWS 7 HomePremium DVBViewer schon neu installiert. Hat nichts geholfen.

Wo liegt der Fehler?

 

Ich verzweifle gerade!

Edited by prince67
Link to comment

Führst Du das als Script oder als compilierte Exe aus? 64 oder 32 Bit plattform? Compiliert als 64 oder 32 Bit exe?

 

Muss man in AutoIt bei Strings die Backslashes nicht durch einen 2. escapen?

Link to comment

- zum Testen besteht das Script nur aus dieser einen Zeile => trotzdem der Fehler

- es ist egal ob als EXE oder als Script, immer der gleiche Fehler

- compaliert habe ich auf dem Betriebssystem auf dem es auch ausgeführt werden soll

- komisch ist doch, dass es auf Win7 64bit und WinXp 32bit funktioniert nur eben auf Win7 32bit nicht.

Edited by prince67
Link to comment

Hallo,

 

könnte man nicht dasselbe über eine normale Batch-Datei (Run_DVBViewer.bat: C:\Program FIles\DVBViewer\DVBViewer.exe) erreichen, die man wenn nötig über ein AutoIT-Script starten lassen kann.

 

Ich würde auch einmal AutoHotkey als Alternative zu AutoIT versuchen. Ich benutze dieses in der Regel um mit DVBViewer Videotext- oder EPG-Daten automatisch abzurufen. AutoHotkey ist ähnlich wie AutoIT und benutzt zum Teil dieselben Tools.

 

 

Viele Grüße

 

Webturtle

Link to comment

Den Pfad der DVBViewer.exe kannst du automatisch so ermitteln:

 

Func _Get_DVBV_Path($fullpath = False)

; nuts (www.autoit.de)

;

;$fullpath: false => return DVBViewer directory

; true => return full path of DVBViewer.exe

;

;@error; 1 => path not found

Local $path = RegRead('HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\DVBViewer Pro_is1', 'Inno Setup: App Path')

If Not FileExists($path) Then $path = RegRead('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall\DVBViewer Pro_is1', 'Inno Setup: App Path')

If Not FileExists($path) Then Return SetError(1, 0, 0)

Switch $fullpath

Case False

Return $path

Case True

$path &= '\DVBViewer.exe'

If Not FileExists($path) Then Return SetError(1, 0, 0)

Return $path

EndSwitch

#cs

Beschreibung laut Lars

HKLM + Software\Microsoft\Windows\CurrentVersion\Uninstall\DVBViewer Pro_is1' -> 'Inno Setup: App Path' oder

HKCU + Software\Microsoft\Windows\CurrentVersion\Uninstall\DVBViewer Pro_is1' -> 'Inno Setup: App Path' oder

indem man den registry zweig der registrierten COM klasse des DVBCOMServers abfragt und daraus den pfad ermittelt

#ce

EndFunc ;==>_Get_DVBV_Path

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...