Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

ActiveX IE scriptfehler


  • Please log in to reply
3 replies to this topic
garry
  • Members
  • 2951 posts
  • Last active: Sep 12 2014 10:05 AM
  • Joined: 19 Apr 2005

Guten abend community ,

Ich erhalte IE-scriptfehler wenn ich TV starte ( SRF-1 oder SRF-info) , TV kann man dennoch anschauen

Rest scheint ok

Bemerkung: VLC kann man weglassen , dies ist nur für Radio und template ist nur schwarzer Hintergrund beim ersten Start

modified=20130123

;-- scriptfehler InternetExplorer  bei TV srf-1  und srf-info



;- *  ActiveX plays /  TV  /  youtube  /  radio

;-- AHK_L  /  windows XP  /  IE or Mozilla Firefox / netbook ----
;-- for VLCPlugin = http://wiki.videolan...ation:WebPlugin
;--

#NoEnv              ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input      ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode 2
SetBatchLines, -1
gosub,createmplate

   Menu,S1,add,srf-1       ,MH1
   Menu,S1,add,srf-info    ,mh1

   Menu,S2,add,calypso     ,MH2
   Menu,S2,add,YeLaiXiang  ,MH2
   Menu,S2,add,Delicado    ,MH2
   Menu,S2,add,radio       ,MH2

   Menu,S3,add,Calender-India ,MH3

   ;----------------------------
   menu,myMenuBar,Add,Television         ,:S1
   menu,myMenuBar,Add,Youtube            ,:S2
   menu,myMenuBar,Add,Diverse            ,:S3

   ;----------------------------
   gui,2:menu,MyMenuBar
   ;----------------------------

filename1=TV-SRF %a_scriptname%  %modified%
Gui,2: Color, 000000
Gui,2:Font,  S10 CDefault , FixedSys
Gui,2:Add,ActiveX, x0 y0 w0 h0    vVlcx, VideoLAN.VLCPlugin.2
Gui,2:Add,ActiveX, x10 y10 w800 h550 vWB1, Shell.Explorer
;Gui,2:Add,ActiveX, x10 y10 w700 h450 vWB1 ,Mozilla.Browser
F1:= "file:///" RegExReplace(Fhtm,"\\","/")
WB1.Navigate(F1)
Gui,2: Show,x0 y0 w850 h570,%filename1%
FormatTime, Time,a_now, yyyy/dMMyyyy
aav:=0
sleep,500
gosub,test1
return

2Guiclose:
exitapp

test1:
WB1.Navigate("http://www.youtube.com/watch_popup?v=sx3kec6I3V4&hd=1") ; ylx
return

mh1:
gui,2:submit,nohide
if (aav<>"0")
  vlcx.playlist.stop()
if A_thisMenuItem=srf-1
   WB1.Navigate("http://www.srf.ch/livestream/player/srf-1")
if A_thisMenuItem=srf-info
   WB1.Navigate("http://www.srf.ch/livestream/player/srf-info")
return

mh2:
gui,2:submit,nohide
if (aav<>"0")
  vlcx.playlist.stop()
if A_thisMenuItem=yelaixiang
   WB1.Navigate("http://www.youtube.com/watch_popup?v=sx3kec6I3V4")
if A_thisMenuItem=calypso
   WB1.Navigate("http://www.youtube.com/watch_popup?v=a502on4D_1k")
if A_thisMenuItem=delicado
   WB1.Navigate("http://www.youtube.com/watch_popup?v=qBheHiGkS4k")
if A_thisMenuItem=radio
   {
   url:="http://130.166.82.14:8006"
   WB1.Navigate(url)
   gosub,streaming
   }
return

mh3:
gui,2:submit,nohide
if (aav<>"0")
  vlcx.playlist.stop()
if A_thisMenuItem=Calender-India
   WB1.Navigate("http://www.tamildailycalendar.com/" Time ".jpg")
return

streaming:
gui,2:submit,nohide
aav:=0
  options=""
  vlcx.playlist.add(url,"", options)
  vlcx.playlist.next()
gosub,aas1
settimer,aas1,1000
return

aas1:
aav:=vlcx.input.state
return

createmplate:
;--- create a black template for IE ---
fhtm=%a_scriptdir%\TVSRF_%a_scriptname%_template.htm
e4x=
(Ltrim Join`r`n
<style type="text/css">
  body {
       background-color: #000000;
       margin: 10px;
       padding: 100px;
       color: #fff;
       overflow-y: hidden;
       }
</style>
)
ifnotexist,%fhtm%
   fileappend,%e4x%`r`n,%fhtm%
return


IsNull
  • Moderators
  • 990 posts
  • Last active: May 15 2014 11:56 AM
  • Joined: 10 May 2007
Mit einen gescheiten Browser - z.B. Chrome - kannst du JavaScript direkt im Browser debuggen.
Dir bleibt wohl nichts anderes übrig, als herauszufinden, was da schief läuft.

Das JavaSkript ist ja nicht von dir, daher muss irgendetwas an deiner Einbindung nicht 100% korrekt sein.

garry
  • Members
  • 2951 posts
  • Last active: Sep 12 2014 10:05 AM
  • Joined: 19 Apr 2005

danke IsNull

habe keine Ahnung vom programmieren ( Java, microsoft etc.. )

habe nur gesehen , Shell.explorer = IE , Mozilla.Browser =Firefox

kann ich Chrome einbinden und denn versuchen zu debuggen ?

n.B. Mozilla.Browser bringt keine Fehlermeldung aber Program stürzt ab

anderseits script läuft soweit mit IE , muss Fehlermeldung wegklicken ( egal ob ja/nein ) , es funktioniert soweit

 

und danke für den script exe2ahk_L  , kann man dies auf die Hauptseite integrieren oder nicht gewollt  ?

Gui,2:Add,ActiveX, x0 y0 w0 h0    vVlcx, VideoLAN.VLCPlugin.2   ; vlc.exe
Gui,2:Add,ActiveX, x10 y10 w800 h550 vWB1, Shell.Explorer       ; IE
;Gui,2:Add,ActiveX, x10 y10 w700 h450 vWB1 ,Mozilla.Browser     ; Firefox


termi84
  • Members
  • 4 posts
  • Last active: Jan 07 2014 08:28 PM
  • Joined: 16 May 2013

;-- scriptfehler InternetExplorer  bei TV srf-1  und srf-info
;WB1.Silent := True    ;<---Scriptfehler ausschlaten


;- *  ActiveX plays /  TV  /  youtube  /  radio

;-- AHK_L  /  windows XP  /  IE or Mozilla Firefox / netbook ----
;-- for VLCPlugin = http://wiki.videolan...ation:WebPlugin
;--

#NoEnv              ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input      ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%
SetTitleMatchMode 2
SetBatchLines, -1
gosub,createmplate

   Menu,S1,add,srf-1       ,MH1
   Menu,S1,add,srf-info    ,mh1

   Menu,S2,add,calypso     ,MH2
   Menu,S2,add,YeLaiXiang  ,MH2
   Menu,S2,add,Delicado    ,MH2
   Menu,S2,add,radio       ,MH2

   Menu,S3,add,Calender-India ,MH3

   ;----------------------------
   menu,myMenuBar,Add,Television         ,:S1
   menu,myMenuBar,Add,Youtube            ,:S2
   menu,myMenuBar,Add,Diverse            ,:S3

   ;----------------------------
   gui,2:menu,MyMenuBar
   ;----------------------------

filename1=TV-SRF %a_scriptname%  %modified%
Gui,2: Color, 000000
Gui,2:Font,  S10 CDefault , FixedSys
Gui,2:Add,ActiveX, x0 y0 w0 h0    vVlcx, VideoLAN.VLCPlugin.2
Gui,2:Add,ActiveX, x10 y10 w800 h550 vWB1, Shell.Explorer
;Gui,2:Add,ActiveX, x10 y10 w700 h450 vWB1 ,Mozilla.Browser
WB1.Silent := True    ;<---Scriptfehler ausschlaten

WB1.Navigate(F1)
Gui,2: Show,x0 y0 w850 h570,%filename1%
FormatTime, Time,a_now, yyyy/dMMyyyy
aav:=0
sleep,500
gosub,test1
return

2Guiclose:
exitapp

test1:
WB1.Navigate("http://www.youtube.c...x3kec6I3V4&hd=1") ; ylx
return

mh1:
gui,2:submit,nohide
if (aav<>"0")
  vlcx.playlist.stop()
if A_thisMenuItem=srf-1
   WB1.Navigate("http://www.srf.ch/li...am/player/srf-1")
if A_thisMenuItem=srf-info
   WB1.Navigate("http://www.srf.ch/li...player/srf-info")
return

mh2:
gui,2:submit,nohide
if (aav<>"0")
  vlcx.playlist.stop()
if A_thisMenuItem=yelaixiang
   WB1.Navigate("http://www.youtube.c...p?v=sx3kec6I3V4")
if A_thisMenuItem=calypso
   WB1.Navigate("http://www.youtube.c...p?v=a502on4D_1k")
if A_thisMenuItem=delicado
   WB1.Navigate("http://www.youtube.c...p?v=qBheHiGkS4k")
if A_thisMenuItem=radio
   {
   url:="http://130.166.82.14:8006"
   WB1.Navigate(url)
   gosub,streaming
   }
return

mh3:
gui,2:submit,nohide
if (aav<>"0")
  vlcx.playlist.stop()
if A_thisMenuItem=Calender-India
   WB1.Navigate("http://www.tamildailycalendar.com/" Time ".jpg")
return

streaming:
gui,2:submit,nohide
aav:=0
  options=""
  vlcx.playlist.add(url,"", options)
  vlcx.playlist.next()
gosub,aas1
settimer,aas1,1000
return

aas1:
aav:=vlcx.input.state
return

createmplate:
;--- create a black template for IE ---
fhtm=%a_scriptdir%\TVSRF_%a_scriptname%_template.htm
e4x=
(Ltrim Join`r`n
<style type="text/css">
  body {
       background-color: #000000;
       margin: 10px;
       padding: 100px;
       color: #fff;
       overflow-y: hidden;
       }
</style>
)
ifnotexist,%fhtm%
   fileappend,%e4x%`r`n,%fhtm%
return