Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 03/13/2022 in all areas

  1. Version 3.0.2.5 was released today. 1. Fixed code broken by newly released AutoIt stable version v3.3.16.0. An error occured at line #428 (While $oPlayer.playState <> $iPlaying) which meant that the WMP object was not duly created. It was solved by replacing _IEAction ($myIE_Obj, "refresh") with _IEAction ($myIE_Obj, "scrollintoview") in MyWMPlayer() function. Thanks go to @pixelsearch for his help in finding the cause. 2. Redundant re-creation of shell.application object in MyFileProperties() function was eliminated.
    1 point
  2. Blue Berry Hill, Jambalaya... My favorites, too.
    1 point
  3. @CYCho I also got the unneeded scrollbars in 3.3.16.0 (but not in 3.3.14.5) The following fix worked for me. At the very end of the script, instead of this line : _IEAction ($myIE_Obj, "refresh") Try that line _IEAction ($myIE_Obj, "scrollintoview") It made scrollbars disappear. Is it working for you too ?
    1 point
  4. What seems to work too is to move the entire line 308 like this : ; Create a Windows Media Player object embedded in Internet Explorer Global $IEControl, $oIE = MyWMPlayer() ; Global $oPlayer = _IEGetObjById($oIE, "objWMPlayer") ; <=== move this line 308... and place it here, after the @SW_HIDE / @SW_SHOW trick (if you place it before it doesn't work) : GUISetState(@SW_HIDE, $winMain) ; without these 2 lines of code, the $winMain is randomly minimized GUISetState(@SW_SHOW, $winMain) ; when the "Close" box of $winListView is clicked WinSetTitle($winMain, "", "zPlayer by C. Y. Cho") ; caption of $winMain sometimes synchronizes to that of $winListView Global $oPlayer = _IEGetObjById($oIE, "objWMPlayer") ; <========= line 308 moved here Main() Func Main() $oPlayer.Settings.Volume = $nVolume $oPlayer.Settings.autoStart = True $oPlayer.uiMode = "none"
    1 point
  5. @CYCho I read your post and checked. The same problem appears on my computer with AutoIt 3.3.16.0 and zPlayer (no matter its version, even an old version of zPlayer gives the same error) So this is the error I encounter with the last version of zPlayer (3.0.2.4) when I run it with AutoIt 3.3.16.0 : zPlayer_3024_source\zPlayer.au3" (428) : ==> The requested action with this object has failed.: While $oPlayer.playState <> $iPlaying While $oPlayer^ ERROR >Exit code: 1 After several tries, I was lucky to have it working like this : Original line 308 : Global $oPlayer = _IEGetObjById($oIE, "objWMPlayer") Changed to : Global $oPlayer Then define $oPlayer directly at 1st line in Main() Func Main()     $oPlayer = _IEGetObjById($oIE, "objWMPlayer") ; <======= moved it here     $oPlayer.Settings.Volume = $nVolume     $oPlayer.Settings.autoStart = True     $oPlayer.uiMode = "none" I also tried to add a com error handler to your original script (when $oPlayer is defined outside Main) and it intercepted errors on each line in Main() where $oPlayer is encountered, starting with original line 392 : $oPlayer.Settings.Volume = $nVolume ; original line 392, com error is "access denied" I don't know why this change made it work but it worked. Let's hope a guru will investigate to find why everything was working fine with AutoIt 3.3.14.5 when $oPlayer was defined outside Main(), but now it seems it has to be defined inside Main() when using AutoIt 3.3.16.0, very strange. Let's hope it will work same on your computer
    1 point
×
×
  • Create New...