Jump to content

Recommended Posts

Posted

I downloaded the latest AutoIt release and Scite4AutoIt as well. Installed them and opened my scripts. When I press F5 (for Go), it gives me this error. 

"This file does not have a program associated with it for performing this action. Please install a program or, if one is already installed, create an association in the Default Programs control panel."

If I right click on the script file I can select "Edit Script" or "Run Script" and they both work fine, but trying to run it using Scite isn't working.

Any ideas what could be the problem? 

Posted

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\MyName\Desktop\AutoIt Test\Tool.au3" /UserParams    
+>15:24:45 Starting AutoIt3Wrapper v.19.102.1901.0 SciTE v.4.1.2.0   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\MyName\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\MyName\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.5)  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\MyName\Desktop\AutoIt Test\Tool.au3
+>15:24:47 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\MyName\Desktop\AutoIt Test\Tool.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
+>15:24:51 AutoIt3.exe ended.rc:0
+>15:24:51 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 5.945

Posted

This is what I do and everything works well:

1.  Download and Install AutoIT latest version from: https://www.autoitscript.com/site/autoit/downloads/

     >>>>>>>>>> Direct download link: https://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe

2.  Download and Install AutoIt Script Editor (SciTE4AutoIt3) latest version  from: https://www.autoitscript.com/site/autoit-script-editor/downloads/

     >>>>>>>>>> Direct download link: https://www.autoitscript.com/cgi-bin/getfile.pl?../autoit3/scite/download/SciTE4AutoIt3.exe

I wait for a version with editor autoit full but that will probably never be.
Please try reinstalling the order, I'm sure it will work :) Maybe :P
Good luck (:

 

 

Regards,
 

  • Developers
Posted (edited)
38 minutes ago, Warsaw said:

>"C:\Program Files (x86)\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "C:\Users\MyName\Desktop\AutoIt Test\Tool.au3" /UserParams    
+>15:24:45 Starting AutoIt3Wrapper v.19.102.1901.0 SciTE v.4.1.2.0   Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files (x86)\AutoIt3\SciTE   UserDir => C:\Users\MyName\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\MyName\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.5)  from:C:\Program Files (x86)\AutoIt3  input:C:\Users\MyName\Desktop\AutoIt Test\Tool.au3
+>15:24:47 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files (x86)\AutoIt3\autoit3_x64.exe "C:\Users\MyName\Desktop\AutoIt Test\Tool.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+Break to Stop
+>15:24:51 AutoIt3.exe ended.rc:0
+>15:24:51 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 5.945

I don't see any error there and seems to start you script fine.
How/When is that Error displayed exactly? 
Is it when your script runs?
Are you also doing the Right/Mouse/Click Run Script (x64) when testing as you seem to have defaulted to x64 in stead of x86?

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.
  :)

Posted

OK, I found the issue. I started using ConsoleWrite to determine if the script actually started running and if so, when it was stopping. This led me to a section of code near the beginning that I have where it restarts itself with elevated rights if it doesn't have it already. It seems it was trying to do this on the AU3 script itself instead of only doing it when compiled. I made some changes and it's working now. 

Not sure if this error started happening because of the new version of AutoIt, Scite, or Windows since all three are different than before. 

Thanks for the help, and sorry for bothering you about it.  

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
  • Recently Browsing   0 members

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