Jump to content

Visual Studio Code and running AutoIt

Recommended Posts

Have downloaded and installed AutoIt as well as ScITE and can run scripts with no issue in ScITE.

Have also installed VSC (Visual Studio Code) and have installed Damien's extension for AutoIT.

When trying to do various operations in VSC, I see:

  • F5 = command 'extension.runScript' not found
  • CTRL+F5 = command 'extension.check' not found
  • CTRL+F6 = command 'extension.launchInfo' not found
  • ALT+M = command 'extension.LaunchKoda' not found


Share this post

Link to post
Share on other sites

I see there are 2 others available for VSC .... But this one seems to be the most extensive ...


I just installed it and it runs fine 

Keyboard Shortcuts :

  • Run Script: F5
  • AutoIt Check: Ctrl+F5
  • Compile Script: Ctrl+F7
  • Build Script: F7
  • Run AutoIt Help: Ctrl+F1
  • Run Au3Info: Ctrl+F6
  • Debug to MsgBox: Ctrl+Shift+D
  • Debug to Console: Alt+D
  • Run Koda: Alt+M


PS :

After installing the extension don't forget to RESTART VSC.




Share this post

Link to post
Share on other sites
Posted (edited)
Excuse me, I do not know if I can keep asking about this thread.
It is the error more similar to mine that I found looking for internet and I can not solve it.
The error it gives me when I execute any script in Autoit from the vscode is the following:
"Running the contributed command: 'extension.runScript' failed"
If someone knew how to solve it, I would appreciate it
Edited by Melba23
Set standard formatting

Share this post

Link to post
Share on other sites

@yayoo I faced the same issue when accidentally deleted my "User" folder

Please follow these steps:

  1. Uninstall VS Code
  2. Go to C:/Users/%USERNAME%/AppData/Roaming (%USERNAME% is your login name) and delete these two folders: Code and Visual Studio Code
  3. Reinstall VS Code & AutoIT extension (I recommend using Damiens's extension rather than 4ern's because 4ern's can't track console output realtime - however, 4ern has better code syntax)

These actions work in my Windows 7 PC. Hope they would work in your case,too!


Share this post

Link to post
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

  • Similar Content

    • By v120
      Rapid Fire Mouse Hack Script
    • By nooneclose
      Good morning, I am trying to figure out if it is possible to check if these invoice lines exist or not. 
      Here are the table and column name: INVOICELINE.INVOICELINENUM (a required field if created)
      Here is a picture of what I am talking about. (Do not worry about security. the picture is from a demo test site so all information is fake)
      is there any way to check if these fields exist or not? (they do not exist unless the user clicks on "New Row")
      Example: line 11 does not exist right now. How would I go about to see if it did or not? 
      This is what I have so far:
      SELECT DISTINCT iv.invoicenum, iv.description FROM invoice AS iv JOIN invoiceline AS ivl ON iv.invoicenum = ivl.invoicenum AND iv.siteid = ivl.siteid /* = 'nothing' and yet somehow not null? */ WHERE iv.invoicenum NOT IN (SELECT invoicelinenum FROM invoiceline WHERE invoicelinenum IS NOT NULL) I get 0 results where I should get more than 0. 
    • By Kruxe
      Hello Everyone,
      I am very green when it comes to AutoIT, I have recently started using it to automate a job that i perform using MS Excel and that is working great. Recently I have been faced with a challenge I which i need to copy a specific set of lines from one .txt file and past them, overwriting a specific set of lines in a different .txt file. I honestly have no clue how I can copy the specified lines and transfer them. What functions / commands could I use and how could I lay them out I AutoIT? Any and all help will be appreciated. 
    • By Saravanan2213
      Hi everyone,
      i just need your help. i have script for cleaning browsing history and other unwanted file but the problem is i don't want to see the GUI i have attached below. It should not show anything on the screen. is it possible to do it in autoit. thanks in advance.
      So for i have tried flag
      Run("rundll32.exe InetCpl.cpl,ClearMyTracksByProcess 255", "", @SW_HIDE)
      Looking forward your help.........

    • By cptHark
      Hello I want to conect to a Network with DriveMapAdd.
      This worked just fine but when you restart the Computer the Mapped drive is gone.
      So i used the persistent mapping flag and that seemed to work, too.
      However when the Computer is restarted I cant connect to the Network because it doesnt remember the Username and password I ave it the first time.
      How do I fix this?
      My Code:Func
          DriveMapAdd("M:", GUICtrlRead($driveM),1, GUICtrlRead($netzuser),GUICtrlRead($netzpassword) )
      $netzuser and $netzpassword are set earlier in the gui and it works right after executing the script but i want it to stay connected
  • Create New...