Sign in to follow this  
Followers 0

AutoIt Path Switcher

31 posts in this topic

Posted (edited)

This script allows you to switch between different AutoIt versions.

APS_Image.png

Features list:

  • Useful to check the new changes that was made in the latest AutoIt release/beta.
  • Allows to maintain the old scripts that was design to work on old AutoIt version (when it's extremely hard to rewrite them for new version).
  • Allows to develop few projects for different AutoIt versions (functionality/convenience reasons).
  • Multi-language support (at the moment only English and Russian languages available).
Usage:

Just run it, select AutoIt path, press "OK" or "Switch", and then all *.au3 files will be associated with the selected AutoIt instance (path).

This app also is available from the system tray menu (when minimized).

Note:

Ā«Set local compilerĀ» option designed to use local resources, for example, you can add modified AutoItSC.bin file (Script_Dir_Name.bin) or an icon (Icon.ico) to the script dir, and the compiler will use these resources to compile the script.

ChangeLog:

v1.7

+ Added AutoIt version suffix to "Run script" option.

* Fixed issue when "Run x64" item was added on x86 system.

* Fixed issue with wrong detected AutoIt path (because the new usage of AutoIt3Wrapper).

* Fixed issue with compiled AutoIt_Path_Switcher.exe as x64.

v1.6

+ Added icon to the compiled version.

* Run script option in shell context menu now executes AutoIt3Wrapper.exe (if available) instead of AutoIt3.exe.

- If AutoIt3Wrapper.exe not found, and AutoIt3_x64.exe found, then additional item added to the shell context menu.

v1.5

* Fixed issue with administrator rights.

* Fixed bug with hard crash when config file not loaded properly.

v1.4

+ AutoIt 3.3.6.1 compatible.

+ x64 system compatible.

+ AutoIt3Wrapper support.

* Code cleanup.

v1.3

* Improved icon refresh for au3-files after association procedure.

+ Added option to refresh system icons cache.

+ Added option to open settings file from program's main window.

* Code cleanup.

Download:

AutoIt_Path_Switcher.zip

AutoIt_Path_Switcher.zip

AutoIt_Path_Switcher.zip

Edited by MrCreatoR

Share this post


Link to post
Share on other sites



Posted

Found a bug in Language button!

When you select English all except "Refresh icons for au3-files" and "Open Prefs File" will not be changed to English but after restart everything is in English.

Currently I've only one version installed.

Br,

UEZ

Share this post


Link to post
Share on other sites

Posted

Thanks for sharing, I'll check it out!

Are you aware of my version of a similar thing -> Autoit Version Switcher

It's a bit behind the times perhaps, but still does the job for me ... mind you I tend to only use v3.2.4.9 or v3.3.0.0 of AutoIt these days ... I'm still a bit behind as usual.

;)

Share this post


Link to post
Share on other sites

Posted

UEZ

Found a bug in Language button!

Thanks, fixed, version is the same.

TheSaint

Are you aware of my version of a similar thing

Yes, but when i wrote mine i didn't knew about yours, it was something like 3 years ago ;)

Share this post


Link to post
Share on other sites

Posted

TheSaint

Yes, but when i wrote mine i didn't knew about yours, it was something like 3 years ago :)

Yours possibly predates mine then. ;)

I'm actually surprised I (we) haven't seen more ... so very handy. ;)

Share this post


Link to post
Share on other sites

Posted

Just curious: Why would you want to update the AutoIt3 Defaults in stead of using the #AutoIT3Wrapper directives to set the AutoIt3 directory to use for this particular script?

(at least that is what I understand your script does... right?)

Jos ;)

Share this post


Link to post
Share on other sites

Posted

Why would you want to update the AutoIt3 Defaults in stead of using the #AutoIT3Wrapper directives to set the AutoIt3 directory to use for this particular script?

Whell, it's a good question. When i wrote this script i didn't use AutoIt3Wrapper, so i needed to switch between version.

Also as i wrote in the Features List, it is usefull to check new changes made in the latest AutoIt version, it's quick and no need to set directives every time.

Btw, there is a small issue when i adding #AutoIt3Wrapper_Autoit3Dir directive:

Posted Image

Share this post


Link to post
Share on other sites

Posted

what version autoit3wrapper are you running?

Share this post


Link to post
Share on other sites

Posted

I agree with Jos the wrapper approacht my favorite at the moment, together with the x64 / x32 switch

#AutoIt3Wrapper_Autoit3Dir=C:\_\AutoitOld\AutoIt3.2.8.1\beta3.2.13.13\

#AutoIt3Wrapper_usex64=N

Great feature Jos ;)

Rgds

ptrex

Share this post


Link to post
Share on other sites

Posted

what version autoit3wrapper are you running?

2.0.1.24. It's from the downloads page.

Share this post


Link to post
Share on other sites

Posted

Oh yes, it's a GUI version, and it's 2.0.0.8.

Share this post


Link to post
Share on other sites

Posted (edited)

You only need the first line for a generic override of the AutoIt3 directory. The other 2 are specific overrides for those EXE's

I just tested with the version from the latest SciTE4AutoIt3 installer and get this:

+>14:33:51 Starting AutoIt3Wrapper v.2.0.1.25    Environment(Language:0409  Keyboard:D0010413  OS:WIN_7/  CPU:X64 OS:X64)
- Skipping #AutoIt3Wrapper_Autoit3Dir because the Directory is not found:D:\AutoIt_Versions\AutoIt_3.2.8.1

Can you copy/paste your SciTE output lines in a reply?

edit:

also downloaded fro the link you used and get:

+>14:38:28 Starting AutoIt3Wrapper v.2.0.1.24    Environment(Language:0409  Keyboard:D0010413  OS:WIN_7/  CPU:X64 OS:X64)
- Skipping #AutoIt3Wrapper_Autoit3Dir because the Directory is not found:D:\AutoIt_Versions\AutoIt_3.2.8.1

So they all recognised the directive.

Edited by Jos

Share this post


Link to post
Share on other sites

Posted

Jos

I use Gui vesrion (2.0.0.8), i supose it's not supporting this derictive?

Share this post


Link to post
Share on other sites

Posted (edited)

Jos

I use Gui vesrion (2.0.0.8), i supose it's not supporting this derictive?

Correct, It was actually an old option that I activated again through a Directive in version v.2.0.1.24 for this very purpose. Jon wanted a simple way to test the development versions without having to go through hoops.

By the way:I am not saying using AutoIt3wrapper is "better" but I have always been against to Prod/Beta switcher as well because to me that is confusing. I prefer that by default the latest production version is used and use the directives for the specials.

Jos

Edited by Jos

Share this post


Link to post
Share on other sites

Posted

Correct, It was actually an old option that I activated again through a Directive in version v.2.0.1.24 for this very purpose.

Can this be added to the Gui version?

P.S

And i can't find the download link for gui version, ot it's dropped now?

Share this post


Link to post
Share on other sites

Posted (edited)

Can this be added to the Gui version?

P.S

And i can't find the download link for gui version, ot it's dropped now?

The GUI is merged back into Autoit3Wrapper so there is no separate script anymore. (you can delete the old gui exe.)

Just use the installer and all settings will be set correctly including Ctrl+F7 and "Compile with Options"

Jos

Edited by Jos

Share this post


Link to post
Share on other sites

Posted

Is it will be enough if i just add this to the source:

Case $i_Rec_Param = "#AutoIt3Wrapper_Autoit3Dir"
                If StringReplace($i_Rec_Value, '"', '') <> "" Then
                    $INP_AutoitDir = StringReplace($i_Rec_Value, '"', '')
                    If Not FileExists($INP_AutoitDir) Then
                        ConsoleWrite("- Skipping #AutoIt3Wrapper_Autoit3Dir because the Directory is not found:" & $INP_AutoitDir & @CRLF)
                        $INP_AutoitDir = ""
                    ElseIf Not StringInStr(FileGetAttrib($INP_AutoitDir), "D") Then
                        ConsoleWrite("- Skipping #AutoIt3Wrapper_AUTOIT3 because it is not a direcoty:" & $INP_AutoitDir & @CRLF)
                        $INP_AutoitDir = ""
                    EndIf
                EndIf

?

Share this post


Link to post
Share on other sites

Posted

The GUI is merged back into Autoit3Wrapper so there is no separate script anymore

Oh i see, but what is the command line to run it with GUI? i don't want to install now because i made few tweeks to the source.

Share this post


Link to post
Share on other sites

Posted

Your choice to maintain your own version but I can't really help making things work in older version. ;)

This is the command for Ctrl+F7 which you can find in au3.properties:

command.compile.$(au3)="$(SciteDefaultHome)\AutoIt3Wrapper\AutoIt3Wrapper.exe" /ShowGui /in "$(FilePath)"

So, what are these tweaks you did in your own version that makes it indispensable?

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  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.