Jump to content
Jos

27 November 2019: Uploaded a new SciTe4AutoIt3.exe v19.1127.1402.0 installer.

Recommended Posts

Hi Jos,

How would you disable the combo hotkey for this message that is very  annoying to me

I didn't get a chance to yet figure what combo exactly triggers it so much 

Versioning program information is not found yet.
Do you want to initialize the versioning setting based on using TortoiseSVN ?

You will get an UAC prompt in case this is needed.

Thanks
Deye

Edited by Deye

Share this post


Link to post
Share on other sites

Hey @Jos, I am having a very strange issue. It's got me completely stumped. I have no idea if you'll be able to help cus it is freakin weird, but I'm at my wits end.

So, I've just moved to a fresh Windows 10 install so I did a clean install of AutoIt3 (3.3.14.5) and SciTe4AutoIt3, and now I have this weird problem where SciTe is only sometimes using the proper user directory.

For example:

  • If I launch SciTe from a shortcut on my desktop, then hit Options > Open User Options File, the file it opens is "C:\Users\Therks\AppData\Local\AutoIt v3\SciTE\SciTEUser.properties"
  • But if I launch SciTe in any other way, and Open User Options File, the file it opens is "C:\Program Files\AutoIt3\SciTE\SciTEUser.properties"
    • I've tried right-click > Edit on an .au3 file, navigating directly to the program folder and double-clicking the .exe, using Run() from within an AutoIt script, even if I copy the shortcut to another folder and run it from there, or EVEN if I navigate Explorer to my desktop folder, and double click the file from there... all of these methods result in SciTe not loading the proper user directory.

Do you have any idea what the heck is going on here?

Share this post


Link to post
Share on other sites

The way it internally works is that SciTE will check for 2 environment variables: SCITE_HOME and SCITE_USERHOME.
These are used to determine what the user home directory is to allow SciTE to be portable.

So check those settings by typing this in de SciTE outputpane:  set sc  (and enter)

Are you sure you only have one SciTE installed?
Let me know what you do to make it fail so I can test the same scenario.

Jos

Edited by Jos

Share this post


Link to post
Share on other sites
5 minutes ago, Jos said:

So check those settings by typing this in de SciTE outputpane:  set sc  (and enter)

If I run it from the shortcuts it says, "SCITE_USERHOME=C:\Users\Therks\AppData\Local\AutoIt v3\SciTE"

Otherwise it says, "Environment variable sc not defined"

Share this post


Link to post
Share on other sites

mmm  .....   thought I asked a few more questions. ;) 
I am not sure how you would have different environment settings for the two ways of starting SciTE, but just check your general environment settings to makes sure it is there as well?

Jos

Share this post


Link to post
Share on other sites

When you open a simple script in SciTE, like :

msgbox(0, "", "")

and do e.g. F7 (Build), the SciTE outputpane shows :

...

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

...

Are there different values, depending on how you started SciTE ?


Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Share this post


Link to post
Share on other sites

Sorry @Jos, I'm sure I only have one SciTe installed. I'm not sure how to answer your other questions though. I did check my environment variables and I do see the whole SCITE_USERHOME line. 

As for running in SciTe, I tried this:

ConsoleWrite('==============================' & @LF)
ConsoleWrite('SCITE_USERHOME=' & EnvGet('SCITE_USERHOME') & @LF)
ConsoleWrite('==============================' & @LF)

I hit F5 in the error prone launch and got this:

>"C:\Program Files\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "D:\Documents\Desktop\Test.au3" /UserParams    
+>11:53:11 Starting AutoIt3Wrapper (19.1127.1402.0} from:SciTE.exe (4.2.0.0)  Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files\AutoIt3\SciTE   UserDir => C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper
>Running AU3Check (3.3.14.5)  from:C:\Program Files\AutoIt3  input:D:\Documents\Desktop\Test.au3
+>11:53:12 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files\AutoIt3\autoit3.exe "D:\Documents\Desktop\Test.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop.
==============================
SCITE_USERHOME=
==============================
+>11:53:12 AutoIt3.exe ended.rc:0
+>11:53:12 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 0.9017

In the normal launch I get this:

>"C:\Program Files\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /run /prod /ErrorStdOut /in "D:\Documents\Desktop\Test.au3" /UserParams    
+>11:55:32 Starting AutoIt3Wrapper (19.1127.1402.0} from:SciTE.exe (4.2.0.0)  Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files\AutoIt3\SciTE   UserDir => C:\Users\Therks\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Therks\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.5)  from:C:\Program Files\AutoIt3  input:D:\Documents\Desktop\Test.au3
+>11:55:33 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files\AutoIt3\autoit3.exe "D:\Documents\Desktop\Test.au3"    
+>Setting Hotkeys...--> Press Ctrl+Alt+Break to Restart or Ctrl+BREAK to Stop.
==============================
SCITE_USERHOME=C:\Users\Therks\AppData\Local\AutoIt v3\SciTE
==============================
+>11:55:33 AutoIt3.exe ended.rc:0
+>11:55:33 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 0.8838

However the compiler output is the same: Sorry, I ran it wrong. So this version is with the environment reading right:

>"C:\Program Files\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "D:\Documents\Desktop\Test.au3"
+>11:59:21 Starting AutoIt3Wrapper (19.1127.1402.0} from:SciTE.exe (4.2.0.0)  Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files\AutoIt3\SciTE   UserDir => C:\Users\Therks\AppData\Local\AutoIt v3\SciTE\AutoIt3Wrapper   SCITE_USERHOME => C:\Users\Therks\AppData\Local\AutoIt v3\SciTE 
>Running AU3Check (3.3.14.5)  from:C:\Program Files\AutoIt3  input:D:\Documents\Desktop\Test.au3
+>11:59:22 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe  /in "D:\Documents\Desktop\Test.au3" /out "C:\Users\Therks\AppData\Local\AutoIt v3\Aut2exe\~AUC922.tmp.exe" /nopack /comp 2
+>11:59:23 Aut2exe.exe ended.C:\Users\Therks\AppData\Local\AutoIt v3\Aut2exe\~AUC922.tmp.exe. rc:0
+>11:59:23 Created program:D:\Documents\Desktop\Test.exe
+>11:59:23 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.524

This is when it doesn't work properly:

>"C:\Program Files\AutoIt3\SciTE\..\AutoIt3.exe" "C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /NoStatus /prod /in "D:\Documents\Desktop\Test.au3"
+>12:02:21 Starting AutoIt3Wrapper (19.1127.1402.0} from:SciTE.exe (4.2.0.0)  Keyboard:00000409  OS:WIN_10/  CPU:X64 OS:X64  Environment(Language:0409)  CodePage:0  utf8.auto.check:4
+>         SciTEDir => C:\Program Files\AutoIt3\SciTE   UserDir => C:\Program Files\AutoIt3\SciTE\AutoIt3Wrapper
>Running AU3Check (3.3.14.5)  from:C:\Program Files\AutoIt3  input:D:\Documents\Desktop\Test.au3
+>12:02:21 AU3Check ended.rc:0
>Running:(3.3.14.5):C:\Program Files\AutoIt3\aut2exe\aut2exe.exe  /in "D:\Documents\Desktop\Test.au3" /out "C:\Users\Therks\AppData\Local\AutoIt v3\Aut2exe\~AU85C1.tmp.exe" /nopack /comp 2
+>12:02:22 Aut2exe.exe ended.C:\Users\Therks\AppData\Local\AutoIt v3\Aut2exe\~AU85C1.tmp.exe. rc:0
+>12:02:22 Created program:D:\Documents\Desktop\Test.exe
+>12:02:23 AutoIt3Wrapper Finished.
>Exit code: 0    Time: 2.429

 

Edited by therks
Fixed mistake

Share this post


Link to post
Share on other sites

Please also check the environment setting available in "My Computer/Properties/Advanced" where you find a button to check/update the default environment settings.

As to your shown scenario's: How did you start SciTE in all these cases?

Jos

Edited by Jos

Share this post


Link to post
Share on other sites

Ok, so when I said this, "I did check my environment variables and I do see the whole SCITE_USERHOME line." I meant I checked in the system properties.

image.thumb.png.65206085cdf821b769640dfd05b21657.png

As for the runs, every time it worked properly I ran it from a shortcut on my desktop. When it didn't run properly I ran it directly from the program folder.

 

So it seems, for some reason, unless I run the program from the shortcut on my desktop it can't read the environment variable?

Edited by therks

Share this post


Link to post
Share on other sites

Could send me the result for both the working and not working scenarios of the set command from the SciTE outputpane via PM? 

Jos

Share this post


Link to post
Share on other sites

So apparently I'm just the biggest dummy and I hadn't actually restarted the computer like I thought I did (you know, the first thing any tech savvy person is supposed to do when they are having issues).

Sorry to be such a pain, but it seems to working totally properly now. Still very weird that it behaved like that in the first place.

Share this post


Link to post
Share on other sites

No worries, happens to all of us every now and then and am happy the mystery is resolved. ;) 

Jos  

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

×
×
  • Create New...