bear Posted May 22, 2006 Share Posted May 22, 2006 (edited) I have a compiled script Test.exe. If i put it on win98's shared folder and try to run it in winXP through LAN.It will fail.I am sorry i can't show that message here, because i am not in english environment.But that message seems like to say:"Can't run this application because its configuration is not correct. Reinstall it may solve this problem."I have no idea about that."Any" compiled script will occur this problem.But if i put script itself in the same place, it will be fine.My Autoit3 version is 3.1.1.124 beta.thanks.PS: Another problem i occurred is this statement:Eval("RunWait(""xxx.exe"")")will do nothing....... ?but RunWait("xxx.exe")works? Edited May 22, 2006 by bear Link to comment Share on other sites More sharing options...
Micha1405 Posted May 22, 2006 Share Posted May 22, 2006 Post your script and we can help you My TrayToolBar Link to comment Share on other sites More sharing options...
Lapo Posted May 22, 2006 Share Posted May 22, 2006 PS: Another problem i occurred is this statement: Eval("RunWait(""xxx.exe"")") will do nothing....... ? $aWat = Eval(RunWait("notepad.exe")) MsgBox(262144, "","error "& @error) MsgBox(262144, "", $aWat) Eval -------------------------------------------------------------------------------- Return the value of the variable defined by an string. Eval ( string ) Parameters string string representing name of the variable. Return Value Success: Returns the value of the variable. Failure: Returns "" (blank string) with @error set not to 0. Remarks If there is a need to use Eval() to to read a variable, the in most situations Assign() should be used to create/write to the variable and IsDeclared() should be used to check that the variable exists. Link to comment Share on other sites More sharing options...
bear Posted May 22, 2006 Author Share Posted May 22, 2006 Post your script and we can help you This problem will occur in "Any" script i compiled, including AutoIt3 examples.In other words, this error happended before any script code being executed.For instance, AutoIt3\Examples\calculator.au3 compiled to calculator.exe, and i put it in another machine and ran it in my computer.if my computer is WinXP, that machine is Win98, this error will happend.otherwise, it will work correctly.I think this problem is in the AutoIt3 stub.thanks. Link to comment Share on other sites More sharing options...
bear Posted May 22, 2006 Author Share Posted May 22, 2006 $aWat = Eval(RunWait("notepad.exe")) MsgBox(262144, "","error "& @error) MsgBox(262144, "", $aWat) Eval -------------------------------------------------------------------------------- Return the value of the variable defined by an string. Eval ( string ) ...... Thank you! In other scripting languages, eval() will evaluate any statement including function call. so i think AutoIt3 is the same . But i found another function "Execute" in AutoIt3 help. Maybe that is what i want. Link to comment Share on other sites More sharing options...
Micha1405 Posted May 22, 2006 Share Posted May 22, 2006 Try it like in helpfile $val = RunWait("Notepad.exe", "C:\WINDOWS", @SW_MAXIMIZE) ; script waits until Notepad closes MsgBox(0, "Program returned with exit code:", $val) My TrayToolBar Link to comment Share on other sites More sharing options...
Lapo Posted May 23, 2006 Share Posted May 23, 2006 But i found another function "Execute" in AutoIt3 help.Maybe that is what i want.download scite there are many debug functionshttp://www.autoitscript.com/autoit3/scite/ 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