Jump to content

Recommended Posts

Posted (edited)

  Quote

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

Thanks, now i can use the standart version.

  Quote

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

I have changed the script backup procedure.

I didn't like the recycle method, so i use this:

;FileRecycle($ScriptFile_In)
        FileMove($ScriptFile_In, $ScriptFile_In & ".bak", 1)
        FileSetAttrib($ScriptFile_In & ".bak", "+H")
Edited by MrCreatoR

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • Developers
Posted

  On 10/16/2010 at 4:14 PM, 'MrCreatoR said:

Thanks, now i can use the standart version.

I have changed the script backup procedure.

I didn't like the recycle method, so i use this:

;FileRecycle($ScriptFile_In)
        FileMove($ScriptFile_In, $ScriptFile_In & ".bak", 1)
        FileSetAttrib($ScriptFile_In & ".bak", "+H")

This is not really a backup process but used in the 2 parts where the source is update with either the new version number or the updated Directives.

Are you worried you would loose the original script because, when you actually have done this at both places, the change you lose your original is much bigger... or didn't you like the many recyclebin versions?

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

  Quote

Are you worried you would loose the original script because, when you actually have done this at both places, the change you lose your original is much bigger

Yes, i don't like the idea that my script is dissapeard when compiling ;) . You saing that if i use FileCopy the source can be lost, how?

  Quote

didn't you like the many recyclebin versions?

Yes, this is one of the reasons (but not the main). I also like to keep my recycle bin empty, don't ask why, i don't know the answer myself :)

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • Developers
Posted

  On 10/16/2010 at 5:57 PM, 'MrCreatoR said:

Yes, i don't like the idea that my script is dissapeard when compiling ;) . You saing that if i use FileCopy the source can be lost, how?

What I meant is that if AutoIt3Wrapper for any reason corrupt your scriptfile in the step where the directives are updated and then does the Version update in the seconds step, this would mean with your change, that the BAK file will contain the corrupted version from the first step after the run is completed and you lost the original. (I hope this still makes some sence)

Any way, sorry for kinda highjacking your thread which wasn;t my intention, just tried to understand the reason for deviating from standard available stuff.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

  Quote

What I meant is that if AutoIt3Wrapper for any reason corrupt your scriptfile in the step where the directives are updated and then does the Version update in the seconds step, this would mean with your change, that the BAK file will contain the corrupted version from the first step after the run is completed and you lost the original. (I hope this still makes some sence)

Oh i see now, but is it mean that FileRecycle as well will put the "crrupted" file to the recycle bin?

Can we backup it only on one of the steps (set some variable to see if it's been backuped on the first step)?

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted
  Quote

Any way, sorry for kinda highjacking your thread which wasn;t my intention, just tried to understand the reason for deviating from standard available stuff.

No no, it's ok, if we can use only AutoIt3Wrapper, then why not, iv'e made AutoIt Path Switcher only because i didn't use AutoIt3Wrapper, and it was long time ago ;).

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

  Quote

Can we backup it only on one of the steps (set some variable to see if it's been backuped on the first step)?

Like this:

#Region Declare variables
...
$bMake_Source_Backup = True
...
#EndRegion Declare variables

Func Add_Constants()
    ...
    If $bMake_Source_Backup Then
        $bMake_Source_Backup = False
        ;FileRecycle($ScriptFile_In)
        FileMove($ScriptFile_In, $ScriptFile_In & ".bak", 1)
        FileSetAttrib($ScriptFile_In & ".bak", "+H")
    EndIf
    ...
EndFunc
...
Func GUI_Show()
    ...
        If $bMake_Source_Backup Then
            $bMake_Source_Backup = False
            ;FileRecycle($ScriptFile_In)
            FileMove($ScriptFile_In, $ScriptFile_In & ".bak", 1)
            FileSetAttrib($ScriptFile_In & ".bak", "+H")
        EndIf
    ...
EndFunc

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • Developers
Posted

  On 10/16/2010 at 11:52 PM, 'MrCreatoR said:

Oh i see now, but is it mean that FileRecycle as well will put the "crrupted" file to the recycle bin?

Can we backup it only on one of the steps (set some variable to see if it's been backuped on the first step)?

Well, The first recycled file will be the original script so, if for any reason the script is corrupted in one of these two steps, the original is always retrievable.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

  • 2 years later...
Posted

Small update...

 

  Quote

v1.5

* Fixed issue with administrator rights.

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

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

  • 1 month later...
Posted

Update...

  Quote

 

v1.6
* 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.

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

Posted

Another update...

  Quote

 

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.

 

  Reveal hidden contents

 

 

AutoIt is simple, subtle, elegant. © AutoIt Team

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