drbyte Posted May 21, 2021 Share Posted May 21, 2021 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 More sharing options...
Musashi Posted May 21, 2021 Share Posted May 21, 2021 1 hour ago, drbyte said: How can i solve this? Hard to say without the source code. "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 More sharing options...
Developers Jos Posted May 21, 2021 Developers Share Posted May 21, 2021 (edited) 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 May 21, 2021 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 More sharing options...
drbyte Posted May 21, 2021 Author Share Posted May 21, 2021 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. expandcollapse popup#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 More sharing options...
Developers Jos Posted May 21, 2021 Developers Share Posted May 21, 2021 mmm.. source file , not source code! 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 More sharing options...
drbyte Posted May 21, 2021 Author Share Posted May 21, 2021 20 minutes ago, Jos said: mmm.. source file , not source code! Sorry Jos........ 🙂 test3.au3 Link to comment Share on other sites More sharing options...
Developers Jos Posted May 21, 2021 Developers Share Posted May 21, 2021 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 More sharing options...
drbyte Posted May 21, 2021 Author Share Posted May 21, 2021 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 More sharing options...
Developers Jos Posted May 21, 2021 Developers Share Posted May 21, 2021 Please try the current Beta version of Autoit3Wrapper.au3 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 More sharing options...
drbyte Posted May 21, 2021 Author Share Posted May 21, 2021 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 !! Jos 1 Link to comment Share on other sites More sharing options...
drbyte Posted May 25, 2021 Author Share Posted May 25, 2021 On 5/21/2021 at 2:49 PM, Jos said: Please try the current Beta version of Autoit3Wrapper.au3 Hello Jos, It also works on my pc at work (W10-X64) Thnx !!🙂 Link to comment Share on other sites More sharing options...
ruderik Posted May 16, 2023 Share Posted May 16, 2023 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 More sharing options...
Developers Jos Posted May 16, 2023 Developers Share Posted May 16, 2023 So you were using an UTF16 encoded input scriptfile? Quite uncommon in our country/area. 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 More sharing options...
ruderik Posted May 19, 2023 Share Posted May 19, 2023 Actually, I recorded it using Au3Recorder, then adapted it using SciTE. #region --- Au3Recorder generated code Start (v3.3.9.5 KeyboardLayout=00020409) --- Tried it again, made a recording, and saved the file in AU3Record 3.3 (so no editing) BOM = FF FE --> UTF-16LE 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