Jump to content

Error: Couldn't open input file


Recommended Posts

Hello all,

I started again after a long time to use Autoit, installed version autoit-v3.3.14.5.

When i press Build, i get the error below.
How can i solve this?

Running on Windows 10-64 bit.

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /Prod /AU3check /in "C:\AutoIt\test3.au3"
+>11:40:24 Starting AutoIt3Wrapper (21.316.1639.1) from:SciTE.exe (4.4.6.0)  Keyboard:00020409  OS:WIN_10/2009  CPU:X64 OS:X64  Environment(Language:0413)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\username\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\username\AppData\Local\AutoIt v3\SciTE 
!Main script  C:\AutoIt\test3.au3 contains Unicode characters so copy for processing to C:\Temp\AutoIt3WrapperRunTmpFiles\test3.au3
!$ScriptFileName = C:\AutoIt\test3.au3 $nScriptFileName = C:\Temp\AutoIt3WrapperRunTmpFiles\test3.au3
>Running AU3Check (3.3.14.5)  from:C:\Program Files (x86)\AutoIt3  input:C:\AutoIt\test3.au3
Error : couldn't open input file: 
!>11:40:24 AU3Check ended. Press F4 to jump to next error.rc:3
+>11:40:24 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 0.7446

 

Link to comment
Share on other sites

1 hour ago, drbyte said:

How can i solve this?

Hard to say without the source code.

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to comment
Share on other sites

  • Developers

I would need to get the original sourcefile as attachment, as this is an au3check error, which points to an unsupported file encoding, but that is just a guess as that should be reported as such. Somehow au3check has issues opening the sourcefile.

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

39 minutes ago, Jos said:

I would need to get the original sourcefile as attachment, as this is an au3check error, which points to an unsupported file encoding, but that is just a guess as that should be reported as such. Somehow au3check has issues opening the sourcefile.

Jos

Below the source code.

 

#region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00020409)  ---

#region --- Internal functions Au3Recorder Start ---
Func _Au3RecordSetup()
Opt('WinWaitDelay',100)
Opt('WinDetectHiddenText',1)
Opt('MouseCoordMode',0)
Local $aResult = DllCall('User32.dll', 'int', 'GetKeyboardLayoutNameW', 'wstr', '')
If $aResult[1] <> '00020409' Then
  MsgBox(64, 'Warning', 'Recording has been done under a different Keyboard layout' & @CRLF & '(00020409->' & $aResult[1] & ')')
EndIf

EndFunc


Func _WinWaitActivate($title,$text,$timeout=0)
    WinWait($title,$text,$timeout)
    If Not WinActive($title,$text) Then WinActivate($title,$text)
    WinWaitActive($title,$text,$timeout)
EndFunc

_AU3RecordSetup()
#endregion --- Internal functions Au3Recorder End ---

_WinWaitActivate("Program Manager","")
MouseClick("left",371,1058,1)
_WinWaitActivate("Map1 - Excel","")
MouseClick("left",196,327,1)
Send("123{ENTER}")
Sleep (500)
Send("456{ENTER}")
Sleep (500)
Send("={UP}{+}")
Sleep(750)
Send("{UP}{UP}{ENTER}")

#endregion --- Au3Recorder generated code End ---

 

Link to comment
Share on other sites

  • Developers

This is an issue with AutoIt3Wrapper I need to sort out. 
Thanks for the example scriptfile so I can test this and will get back with a fix soon.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

6 minutes ago, Jos said:

This is an issue with AutoIt3Wrapper I need to sort out. 
Thanks for the example scriptfile so I can test this and will get back with a fix soon.

Jos

Thank you Jos,

I will wait for your answer/solution🙂

Link to comment
Share on other sites

3 hours ago, Jos said:

Please try the current Beta version of Autoit3Wrapper.au3

Jos,

I did a quick check on mij home computer (W7-x64, with also the same error), and used the  beta version Autoit3Wrapper.au3
No errors, it worked perfect!
Next week (Tuesday) i'm going to check the beta version on my pc at work, where i did the testing today.

I let you know!

Thnx a lot !!

Link to comment
Share on other sites

  • 1 year later...

Hello,

I had the same problem, and same solution. Script version "22.611.2153.17", as suggested here:

On 5/21/2021 at 2:49 PM, Jos said:

Please try the current Beta version of Autoit3Wrapper.au3

So problem is still in the software.

Just wanted to let other users know who stumble on this thread, like I did.

Regard,

Ruud

 

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...