Marcus Posted October 5, 2005 Share Posted October 5, 2005 Hello folks.This is a real stumper, and an OLD problem.Here's a quote taken from a query which was posted all the way back in January:Can someone please help me with the following avi problem?If I open my script (small window with one avi clip) manually I have no errors. The avi plays without any errors. But I receive an error if I try to let windows open the script using the function:RegWrite ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run", "AUTO", "REG_SZ", "C:\MyScript.exe")Upon reboot I receive the following error message: "The application or DLL C:\MyAvi.avi is not a valid Windows image. Please check this against your installation diskette."Thanks in advance.(Taken from: http://www.autoitscript.com/forum/index.php?showtopic=8103)10 months and over 100 lookers so far; with no savvy The same phenomena occurs when a .avi is fired off from an AutoIt script when working without the Explorer.exe shell in XP.Launch the script again from the Task Manager, and everything is suddenly just fine.Real showstopper for us out here who like working without a net...WHAT IS THIS??? Any guesses/workarounds???Thanks again. [center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center] Link to comment Share on other sites More sharing options...
this-is-me Posted October 5, 2005 Share Posted October 5, 2005 Please attach an example avi and script. Who else would I be? Link to comment Share on other sites More sharing options...
Marcus Posted October 5, 2005 Author Share Posted October 5, 2005 Here 'tis.#include <GUIConstants.au3> GUICreate("AVI Test", 263, 65) $AVI = GUICtrlCreateAvi("Test.avi", -1, -1, -1) GUISetState(@SW_SHOW) GUICtrlSetState($AVI, 1) While 1 $msg = GUIGetMsg() Select case $msg = $GUI_EVENT_CLOSE ExitLoop EndSelect WEndRun it from the XP registry at startup (as Shell or (reportedly) HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run) and it will bail every time...BTW -- using an "intermediate" script as Shell to launch the above script doesn't make any difference: it still fails.Thanks -- [center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center] Link to comment Share on other sites More sharing options...
this-is-me Posted October 5, 2005 Share Posted October 5, 2005 (edited) I am going to look into it. EDIT: Did you compile the script or not? Edited October 5, 2005 by this-is-me Who else would I be? Link to comment Share on other sites More sharing options...
Marcus Posted October 5, 2005 Author Share Posted October 5, 2005 @this-is-me: Yup. Compiled and tested. Segmented from a larger (functional) program... No dope on XP SP2 as Shell ... reported to be the same under reg RUN. Thanks for looking. [center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center] Link to comment Share on other sites More sharing options...
this-is-me Posted October 5, 2005 Share Posted October 5, 2005 No dope? Do you mean no problems, or do you mean it doesn't run? Who else would I be? Link to comment Share on other sites More sharing options...
Marcus Posted October 5, 2005 Author Share Posted October 5, 2005 Will not run . . . [center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center] Link to comment Share on other sites More sharing options...
this-is-me Posted October 5, 2005 Share Posted October 5, 2005 OK. As soon as I can get to a system that I can reboot I will see what happens. Who else would I be? Link to comment Share on other sites More sharing options...
Marcus Posted October 5, 2005 Author Share Posted October 5, 2005 Thanks again. [center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center] Link to comment Share on other sites More sharing options...
Marcus Posted October 6, 2005 Author Share Posted October 6, 2005 A Bug Report has been posted here for this issue:http://www.autoitscript.com/forum/index.php?showtopic=16632Confirmed no launch under RUN or Shell with either XP or 9.x . . . [center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center] Link to comment Share on other sites More sharing options...
seandisanti Posted October 6, 2005 Share Posted October 6, 2005 A Bug Report has been posted here for this issue:http://www.autoitscript.com/forum/index.php?showtopic=16632Confirmed no launch under RUN or Shell with either XP or 9.x . . .i know when i play an avi, a sperate codec program is run. perhaps executing the script the way you are, it's running before a service or codec is loaded to handle the file? if that's the case you could just add a loop that checks for necessary service or application is running in memory before gui is created... Link to comment Share on other sites More sharing options...
Marcus Posted October 6, 2005 Author Share Posted October 6, 2005 I was thinking that something similar was happening, too However, the "Bug" was in the helpfile:Parametersfilename -- The filename of the video. Only .avi files are supported. ...As it turns out, something as simple as a fully qualified path to the AVI file (whether or not it is in the same dir as the .exe) resolves the matter.The real answer was very simple A couple of regulars at the Bug Reports forum (http://www.autoitscript.com/forum/index.php?showtopic=16632) kindly helped solve the mystery once and for all...Have a great day! [center][font="Courier"][quote]Which end do you put the cheesecake in?[/quote][/font][/center] Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now