Jump to content

Recommended Posts

Posted

I have SciTE.session 

and

SciTEUser.properties
SciTE.session
au3UserAbbrev.properties
au3abbrev.properties
au3.UserUdfs.properties
au3.user.calltips.api
au3.keywords.user.abbreviations.properties
abbrev.properties
 

stored in

c:UsersMy_name

I would like to store them in

c:UsersMy_nameDocumentsScite

Does anyone know how to do that?  :sweating:

Posted (edited)

Sorry M23, hope this doesn't mess up your splitting of the thread.

To answer remin's question. Use EnvSet() to set SciTE_HOME to the directory they wish and then using Run(), run the SciTE executable. It's what I do in AutoIt Portable (see signature.)

Edited by guinness

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

@guinness,

(btw my favorite beer till I found out that they put HFCS in their beer :))

Thank you for replying.

I tried to find out where to write EnvSet() but couldn't find it (did a text search in all files in the autoit directory and subdirectories).

Can you please tell where to put EnvSet()?

I suppose in the general autoit config file? 

Sorry but I've never done this.

Something like this?

EnvSet(SciTE_HOME, "c:UsersMy_nameDocumentsScite")

Edited by remin
Posted

It's in the help file that comes with AutoIt. Just search EnvSet and then use Run afterwards e.g.

EnvSet('SciTE_HOME', @ScriptDir)
Run('SciTE.exe')

UDF List:

  Reveal hidden contents

Updated: 22/04/2018

Posted (edited)

Sorry, I just started to use autoit intensively a few months ago.

Still don't get it.

I created a new .au3 file with 

EnvSet('SciTE_HOME', "c:UsersMy_nameDocumentsScite")

Run('SciTE.exe')

Inside but nothing happens when I run it.

BTW Do I have to run this every time I want to start SciTE?

(Why didn't the creators of SciTE add the script location in Options or in a config file?)

Edited by remin
  • Moderators
Posted

remin,

I would open a DOS command window and use "set" to get the variable into your main environment. Then it will be a permanent addition and you need not reset it each time. :)

 

  Quote

Why didn't the creators of SciTE the script location in Options/config file?

Ask them. All we do is modify SciTe slightly to help coding in Autoit - the basic app is nothing to do with us at all. Besides, setting an environmental variable is a one-off matter and so hardly onerous. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

Posted (edited)

  On 11/5/2013 at 9:03 AM, Melba23 said:

 

Ask them. All we do is modify SciTe slightly to help coding in Autoit - the basic app is nothing to do with us at all. Besides, setting an environmental variable is a one-off matter and so hardly onerous. ;)

 

 

Yes I know it has nothing to do with autoit. I just was asking why such a seemingly simple thing is made so difficult. ;)

Btw.. thank you very much for your reply. :)

Wish you all a great day today.

Edited by remin
Posted (edited)

I did start a dos command and inserted this:

set SciTE_HOME = "c:\Users\'myname'\Documents\Scite"

It seems that SciTE still doesn't recognize this directory, but maybe I have to restart my pc.

Hope I did well. :)

Edited by remin
  • Moderators
Posted

remin,

I do not use that environment variable in my SciTE setup so I cannot comment further. And see Jos' comment here - I am afraid you cannot expect full support from us if you start changing the installation parameters. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

  Reveal hidden contents

 

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