Jump to content
Sign in to follow this  

(Resolved) Random failure of Help to open examples

Recommended Posts


This has been bugging me for awhile and I finally resolved it.

I use other applications  to search for *.au3 files ( voidtools Search Everything, Scooter Beyond Compare )
R-Click a file and choose "Edit", and SciTE opens the file correctly.

Now press F1 ( Help ), search for some api documentation, and press "Open this script"
and sometimes the script opens in SciTE, and often it fails silently.  What's going on?

I used sysinternals procmon to track it down. The problem is the Examples directory placement in the AutoIt3 directory:

  •  AutoIt3
  • AutoIt3\SciTE

There is no Examples directory under SciTE, so when SciTE.exe is launched from \SciTE directory it can't find Examples
I even had situations where Help was looking in Windows directory.
I don't know the algorithm for search, but I finally resolved this with an SciTE.bat file
placed in the AutoIt3 directory.  It's tailored to my local install location.

@echo off
start " " /d "C:\Tools\AutoIt3" /b "C:\Tools\AutoIt3\SciTE\SciTE.exe" %*


Then I modified this Registry entry so the Edit dialog invokes SciTE.bat,  not SciTE.exe
This sets the current working directory so that directory Examples is directly visible.

Command: "C:\Tools\AutoIt3\SciTE.bat" "%1"

And now everything (pun intended)  works correctly.
This should probably resolved internally, but I didn't want to wait for a fix.

Edited by vmguy
improved SciTE.bat

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
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.